IF(AND formula to be used with Star Symbol
Hello,
I have an On Time column that when conditions are met populates a colored star. If the store opens after 6 am the star does not color. If the store opens between the hours of midnight and 6 am the star is colored. I keep getting #UNPARSABLE error (the [Value_if_false] highlighted in yellow when i go into the formula.
=IF([Store Open HR]@row = 0, false, IF(AND([Store Open HR]@row > 6, [Store Open HR]@row <12, [Store Open AM/PM] @row ="A"), false, true)
Not sure how to fix this
Thank you in advance
Sharon
Best Answer
-
You have both an AND and an OR function embedded in your IF statement, but you don't close off the OR statement after the Store Open HR column:
=IF(AND(OR([Store Open HR]@row <=6, [Store Open HR]@row =12), [Store Open AM/PM]@row ="A"), 1, 0)
^ That's likely the cause for the error, you're missing a closing parenthesis after the 12.
Now, this is only looking for if the cell has exactly the letter "A" in it, since you put that in quotes. Does the Store Open AM/PM have exactly "A", or are you looking to see if it contains the letter A?
If the column as "AM" instead of A, you can add in the CONTAINS function as well:
=IF(AND(OR([Store Open HR]@row <= 6, [Store Open HR]@row = 12), CONTAINS("A", [Store Open AM/PM]@row)), 1, 0)
Let me know if this makes sense or if you need any further help!
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Answers
-
I am still getting an unparsable error (Incorrect Argument Set).
=IF(AND(OR([Store Open HR]@row <=6, [Store Open HR]@row =12, [Store Open AM/PM]@row ="A"), 1, 0)
Could it have something to do with the "A" as opposed to "AM". I have to use the "A" designation for time formulas
-
You have both an AND and an OR function embedded in your IF statement, but you don't close off the OR statement after the Store Open HR column:
=IF(AND(OR([Store Open HR]@row <=6, [Store Open HR]@row =12), [Store Open AM/PM]@row ="A"), 1, 0)
^ That's likely the cause for the error, you're missing a closing parenthesis after the 12.
Now, this is only looking for if the cell has exactly the letter "A" in it, since you put that in quotes. Does the Store Open AM/PM have exactly "A", or are you looking to see if it contains the letter A?
If the column as "AM" instead of A, you can add in the CONTAINS function as well:
=IF(AND(OR([Store Open HR]@row <= 6, [Store Open HR]@row = 12), CONTAINS("A", [Store Open AM/PM]@row)), 1, 0)
Let me know if this makes sense or if you need any further help!
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Well Genevieve,
You are a gem. Worked FABULOUSLY. Such a silly error on my part. Learned something new too. You get 👍️👍️👍️👍️👍️
-
Hi Sharon,
Haha no problem at all!! I'm glad it works for you 😊
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!