Formula will function in Excel but not SmartSheet
For some reason I am having trouble getting this formula to function in SmartSheet (even though it works in Excel)...
I am wanting to populate a "Y" in 'Valid Approval?' column only when one of the following 2 situations occur:
1) 'Primary Approval' says "Approved" AND 'Secondary Approval' says "Approved"
2) 'Primary Approval' says "Approved" AND 'Secondary Approval' is blank
Valid approval? Primary Approval Secondary Approval
Y Approved
N Approved Submitted
N Submitted Approved
Y Approved Approved
This is the formula I wrote that functions in Excel...
=IF((COUNTIF(C2,"Approved")+COUNTIF(D2,"Approved"))*OR(COUNTIF(D2,"Approved")+COUNTIF(D2,"")),"Yes","No")
Any tips on how I get this to function in SmartSheet?
Comments
-
-
Another option. If both are Approved, it will populated Y, otherwise, populate N
=IF([Primary Approval]1 = "Approved", IF([Secondary Approval]1 = "Approved", "Y", "N"), "N")
-
I personally put my vote to this one. I think this is probably the most efficient way to achieve the desired results.
-
Thank you so much! This is exactly what I needed & what worked!
-
Thank you so much for this! For some reason it did not work but thank you for your time!!
-
I'm kind of curious why this didn't work. Did you get an error, or did it just not function as expected? Based on your original post this should have done the trick.
-
I take that back...it is working perfectly & accounts for all variables I need to look at - this is going to work! Thanks again!
-
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!