1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

What's the best way to add specific cells depending on which checkbox is checked, without a super long nested IF statement?

I'm trying to put together some basic scheduling spreadsheets for my lab techs where we want to show 6-months at once so we can forecast out, but also only want to display the hours for the active week. I've currently got it setup where we can see all weeks at once, with a checkbox labelled "Active Week", and am trying to input a formula where the total hours displayed will only calculate based on which week is active.

For example in the screenshot, I want to see the physical schedule for weeks 1-3 but if I click on the Active Week checkbox for week 2, for example, I only want to see the total hours for week 2 (Mon-Sun) in the lefthand column.

The only way I can fire out to do this is a nested IF statement, but with 26 weeks, thats going to be a hell of a long formula. Is there an easier way to do this using filter or lookup commands?

https://preview.redd.it/v5zpy4cuni2h1.png?width=1694&format=png&auto=webp&s=ba869cc21adbcb02789c18be83265cd4bc4fab53

submitted by /u/acousticado
[link] [comments]

Want to read more?

Check out the full article on the original site

View original article

Tagged with

#natural language processing for spreadsheets
#Excel alternatives for data analysis
#generative AI for data analysis
#financial modeling with spreadsheets
#AI formula generation techniques
#formula generator
#rows.com
#big data management in spreadsheets
#AI-native spreadsheets
#Excel compatibility
#cloud-based spreadsheet applications
#predictive analytics in spreadsheets
#cloud-native spreadsheets
#Excel alternatives
#active week
#scheduling
#total hours
#spreadsheets
#checkbox
#formula