Formula -- If next 4 Columns say Yes/No say something
Hello,
I have a sheet with six columns. They are:
Name | Current Step | Step 1 | Step 2 | Step 3 | Step 4
Step 1 - 4 have Yes/No written in them for completion status.
Can I have a formula in Current Step to count how many "Yes" there are and print the Step?
Can someone direct me to where I can find out how to code this?
I was thinking of like =IF(COUNTIF(RIGHT, "Yes")=0, "Empty", "Test") or something like that. It is column based, but, how do I count all columns to the right? Or will I need to add them in manually?
But I am not 100% sure how to get it to be the values. I'm thinking like:
- If 0 Yes, say "None"
- If 1 Yes, say "Step 1"
- If 2 Yes, say "Step 2"
- If 3 Yes, say "Step 3"
- If 4 Yes, say "Step 4"
Edit; I'm closer =COUNTIF([Step 1]24:[Step 4]24, "Yes") is returning the number of "Yes" in my columns, ie this one would say 2.
Now how do I make the 2 say "Step 2"?
Edit 2: Maybe if I can do a =IF([Current Step]24 = 1, "QA", "No") I can make the numbercal column hidden?
Dr. St Nicholas Burrus DHA, PMP
I build Smartsheets for the US Government, State Government, and about a dozen of the US Fortune 100s.
Comments
-
Hi,
Try this.
=" Step " + COUNTIF([Step 1]@row:[Step 4]@row; "Yes")
Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.
Would that work?
Best,
Andrée Starå
Workflow Consultant @ Get Done Consulting
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
I figured out something last night after toying with it. I tried t he above it didn't work out for me. But, I did two parts.
Part 1) =COUNTIF([Step 1]24:[Step 8]24, "Yes")
Part 2) =IF([Step Count]24 = 1, "Step 1", IF([Step Count]24 = 2, "Step 2", IF([Step Count]24 = 3, "Step 3", IF([Step Count]24 = 4, "Step 4", IF([Step Count]24 = 5, "Step 5", IF([Step Count]24 = 6, "Step 6", IF([Step Count]24 = 7, "Step 7", IF([Step Count]24 = 8, "Step 8", "Not yet started"))))))))
Dr. St Nicholas Burrus DHA, PMP
I build Smartsheets for the US Government, State Government, and about a dozen of the US Fortune 100s.
-
Sorry, but I missed Step 0.
Best,
Andrée
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!