Calculate total cost based on department selection
I want to calculate the total price based on the department selection, in this case if select "PO" as department its should take the Handling fee SBS, and other department it should take handling fee others
=SUMIFS([Cost Price]@row * [Total Quantity Requested ]@row + [Handling Fee SBS]@row, Department@row, "PO", Collected@row, 1)
Joseph Aloysias| Solutions Lead
vSaaS Global
Book a Meeting
Phone: +91-8148459084
Answers
-
@Genevieve P. @Paul Newcome any workaround to calculate based on the selection?
FYI. I have item master in other sheet where I maintain the pricing. Please help me with the formula to calculate based on the department selection
Joseph Aloysias| Solutions Lead
vSaaS Global
Book a Meeting
Phone: +91-8148459084 -
You would need to do some of the calculations on the row before using the SUMIFS function. For example, this would be in your Total Price column:
=([Cost Price]@row * [Total Quantity Requested ]@row) + [Handling Fee SBS]@row
Then since you have a total price in each row, you can SUM that total column based on your criteria:
=SUMIFS([Total Price]:[Total Price], Department:Department, "PO", Collected:Collected, 1)
Let me know if that makes sense and will work for you!
Cheers,
Genevieve
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
-
Thank you @Genevieve P.
Joseph Aloysias| Solutions Lead
vSaaS Global
Book a Meeting
Phone: +91-8148459084
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.9K Get Help
- 474 Global Discussions
- 208 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 84 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!