Formula Question
I have a list of items for sale in (column A) in a dropdown list to be used in a webform....
IE:
Dress $25
Pants $50
Shirt $30
I want to have the total cost of the selected item (single select in the column) populated (dollar amount only) in Column B automatically.
If Item 1 (Dress $25) is selected in Column A
THEN "$25" is populated in Column B (and can be used in a simple math formula at the end of the row).
Can someone help me with this basic formula?
Answers
-
Hi @KT Remus, first thing is to make sure Column B is a Text/Number column type in the column properties. Then select the column and then select the dollar sign (currency format) in the ribbon:
If the values are always two digits (i.e. between 10-99), then your formula in Column B can be:
=VALUE(RIGHT([Column A]@row, 2))
That will give you a value that appears as a dollar and can be used as a number for any math or formulas.
-
Hey @KT Remus
The formula below uses the dollar sign as the 'anchor' to find your item price. This allows for the price to vary in length, say $1 or $150.50
=VALUE(MID([Column A]@row, FIND("$", [Column A]@row) + 1, LEN([Column A]@row) - FIND("$", [Column A]@row)))
Will this work for you?
Kelly
-
WOW - THAT WORKED... I have no idea how that works or why, but it was PERFECT!!! THANK YOU KELLY!
-
Glad to help. In terms of how it works, the MID() function is doing the heavy lifting. The only thing you really need to remember is the dollar sign must be next to the numbers so that the numbers can be found.
Kelly
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 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!