Calculating SUM pending on dropdown selection
Hey all,
I'm trying to calculate a sum pending two different drop down selections but having challenges with making it work. Any help would be greatly appreciated!
=IF(OR(Coverage@row = "Travel", Coverage@row = "Local", Coverage@row = "2 Locations"), (SUM([# of Shifts]@row * 12))), (OR(Coverage@row = "Planning Only"), (SUM([# of Shifts]@row * 6)))
Thanks!
Matt
Answers
-
^ It works until I add the second layer of the "Planning only."
-
You don't need the second OR since you only have one Coverage option for the second part of your formula. Instead you'll want to have another IF statement as your second statement.
You also don't need to say SUM if you're using the * function to multiply your values.
Try this:
=IF(OR(Coverage@row = "Travel", Coverage@row = "Local", Coverage@row = "2 Locations"), [# of Shifts]@row * 12, IF(Coverage@row = "Planning Only", [# of Shifts]@row * 6))
This will multiply [# of Shifts] in this row by 12 if Coverage is Travel, Local, or 2 Locations.
Otherwise, if Coverage is "Planning Only", it multiplies [# of Shifts] by 6.
Is this what you were looking to do?
Cheers!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!