Using IF formula to reference any change in cell (adding a value)
Hello Experts!
I was wondering if a formula like this is possible:
=IF([Confirmation #]@row = "any value", "Confirmed")
When a confirmation number is added to a cell, that means the item is confirmed. What can I put in place of "any value'? I am just not sure how to do this in the context of my larger status formula:
=IFERROR(IF([Ordered Date]@row = "", "New", IF(TODAY() > [Arrival Date]@row, "Received", IF([Confirmation #]@row > 1, "Confirmed", IF([Ordered Date]@row <= TODAY(), "Ordered")))), "")
This formula works with existing data but doesn't work with new data (when add todays date to Ordered Date column, switches to Received (no other date columns are filled out))
Any help would be amazing!
Nicole
Best Answer
-
For the first part of your question I would use the ISBLANK and NOT function:
=IF(NOT(ISBLANK([Confirmation #]@row)), "Confirmed", *****you need a false value here******)
Although your formula above with the greater than 1 should work.
If I understand what you're describing in the second part of this post, it might just be the order of your formula. Today will always be greater than nothing. Since that is your second IF statement, you will always get a "Received" even if Arrival date is blank and you will never get the rest of your IF statements. I would try changing the order. You could also use for the Today part:
IF(AND(NOT(ISBLANK([[Arrival Date]@row)), TODAY()>[Arrival Date]@row, "Received", IF....
This one will then give you the false value if the arrival date is blank and the true value if today is greater than the arrival date. You could even simplify this to just using NOT(ISBLANK() for arrival date if you never have any instance where someone might put in an anticipated date of arrival that is in the future.
Answers
-
For the first part of your question I would use the ISBLANK and NOT function:
=IF(NOT(ISBLANK([Confirmation #]@row)), "Confirmed", *****you need a false value here******)
Although your formula above with the greater than 1 should work.
If I understand what you're describing in the second part of this post, it might just be the order of your formula. Today will always be greater than nothing. Since that is your second IF statement, you will always get a "Received" even if Arrival date is blank and you will never get the rest of your IF statements. I would try changing the order. You could also use for the Today part:
IF(AND(NOT(ISBLANK([[Arrival Date]@row)), TODAY()>[Arrival Date]@row, "Received", IF....
This one will then give you the false value if the arrival date is blank and the true value if today is greater than the arrival date. You could even simplify this to just using NOT(ISBLANK() for arrival date if you never have any instance where someone might put in an anticipated date of arrival that is in the future.
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!