IF Text in any field between multiple columns, then equals text value
I am having some issues using the "IF" formula. I'm trying to make it so if ANY VALUE is in the "CUT, FAB, WELD" columns then it will output the text "In Progress" to the "STATUS" Column, and if there is no value in any of the columns then the "STATUS" column will say "Not Started". Along with this, I have a checkbox in the "COMPLETE" Column, and if that is checked then I would like the status to say "Complete" I've tried multiple different formulas but i cant seem to get it.
=IF(CUT@row:WELD@row = 0, "Not Started", "In Progress")
Comments
-
Try something like this:
=IF(Complete@row =1, "Complete", IF(AND(CUT@row = "", FAB@row ="", WELD@row = "", WRAP@row = ""), "Not Started", "In Progress")
-
Wow, thank you that worked great! One more thing, can you add an argument to it where only if a value in the column "Part" then it shows "Not Started?"
Right now the whole table is showing "Not Started" even if there isn't anything on that row. -
Try this: It's checking to see if part is blank and returning blank, if so...
=IF(Part@row = "", "", IF(Complete@row =1, "Complete", IF(AND(CUT@row = "", FAB@row ="", WELD@row= "", WRAP@row = ""), "Not Started", "In Progress")))
-
Thanks so much!
-
You're welcome.
-
As another option (if you plan on adding or removing columns in the future) you could replace the AND with a COUNTIFS statement. Something like...
=IF(Part@row = "", "", IF(Complete@row =1, "Complete", IF(COUNTIFS(CUT@row:WRAP@row, ISTEXT(@cell))= 0, "Not Started", "In Progress")))
What this does is looks across the range from your Cut column to your Wrap column and counts how many cells have text in them. If the result is 0 (meaning all are blank) then it will display "Not Started".
The only real difference between this and Mike's solution is that if you need to add or remove a column between Cut and Wrap, you won't have to adjust your formula.
The downside is that if you rearrange the columns it will look at EVERYTHING between Cut and Wrap. So moving the Fab column to the left of Cut or to the right of Wrap will essentially remove the Fab column from the formula.
-
Neat solution, Paul. And a simple way to check the whole range.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!