Automate formula based on dropdown
So I have a sheet with multiple columns. Rows automatically appear based upon a Power Automate flow from other sources and rules. It works great, but now I need to auto populate a calculated formula in one column based on a drop down selection in another. The two things I thought of don’t seem to be working.
Example: I have a column labeled “Material”. The selections are soil, rock, concrete, DGA, ASTM, etc. In another column, I have the estimated loads. These come over from the automation. In a third column, I have the estimated tons. This is what needs to be calculated.
If the Material is soil, I want the third column to multiply the “Estimated Loads” by 30. If the material is anything else, I want it to multiply the “Estimated Loads” by 25. I also want it to auto populate when a new row is added.
Here are the things I thought of:
- Make the “Material” column a drop down to match the drop down on my other source so it’s the same when it comes over. Then, use IF functions.
- Create another column with a yes or no dropdown and add an automation that when soil is selected, that cell changes to yes. Otherwise, change to no. Then, use a simple IF formula in the column I want the calculation, turning it into a calculated column.
- Creating another Power Automate flow that will trigger it all when a new row is added.
Is there a simpler way to do this?
Best Answer
-
A simple IF statement is good. You could have the following as a column formula in the Estimated Tons column =IF([Material]@row = "Soil", [Estimated Loads]@row * 30, [Estimated Loads] * 25)
Thanks,
Aravind GP| Principal Consultant
Atturra Data & Integration
M: +61493337445
E:Aravind.GP@atturra.com
W: www.atturra.com
Answers
-
A simple IF statement is good. You could have the following as a column formula in the Estimated Tons column =IF([Material]@row = "Soil", [Estimated Loads]@row * 30, [Estimated Loads] * 25)
Thanks,
Aravind GP| Principal Consultant
Atturra Data & Integration
M: +61493337445
E:Aravind.GP@atturra.com
W: www.atturra.com
-
That worked! Thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 457 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!