Autofill if a column contains vs. if true or false
trying to figure out if/how i can make a sheet auto fill a column based "if contains" not "if true"/"if false"
Ex: Door Schedule for production
Column to report on = Door Size
Reporting Column = Drop down of hinge counts
If "Door Size" contains "8-0" - Hinge Counts = 4
If "Door Size" contains "7-0" - Hinge Counts = 3
What would that Formula be?
Answers
-
Hey @zszostak
I'm assuming only the number needs to go into the Hinge Counts column and not the number + text. The formula should reside in the Hinge Counts column.
=IF([Door Size]@row="8-0", 4, IF([Door Size]@row="7-0", 3))
If "8-0" is the complete textstring in your Door Size column, you do not need to use the CONTAINS function. If the "8-0" is only part of the the textstring, ex; "8-0 partnumber ABC", then yes, you could use the CONTAINS function.
If you must use the CONTAINS function
=IF(CONTAINS("8-0", [Door Size]@row), 4, IF(CONTAINS("7-0", [Door Size]@row),3))
Let me know if you also need the text and I'll show you how to modify the formulas above.
Kelly
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!