Welcome to the Smartsheet Forum Archives


The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.

Nested IF formula using additional AND/OR logical functions

Ladislav
Ladislav
edited 12/09/19 in Archived 2016 Posts

Hello everybody,

 

I am struggling with creation of formula for defining Invoice Status Symbol (RYG). Geeting the UNPEARSEABLE error message.

 

My formula is right now as follows:

 

=IF(TODAY-[INVOICE DUE DATE]11>30,"Red",IF(AND(TODAY-[INVOICE DUE DATE]11>5,TODAY-[INVOICE DUE DATE]11<=30),"Yellow", IF(OR(TODAY-[INVOICE DUE DATE]11<=5, [INVOICE FULLY PAID]11=1),"Green")))

 

Maybe it is somehow related to parenthesis but I have tried a lot of combinations.

Can anybody help ?

 

Thank you. Ladislav

Comments

  • Tracy Helms
    Tracy Helms ✭✭✭

    you are so close.

     

    today is written TODAY()

     

    =IF(TODAY() - [INVOICE DUE DATE]11 > 30, "Red", IF(AND(TODAY() - [INVOICE DUE DATE]11 > 5, TODAY() - [INVOICE DUE DATE]11 <= 30), "Yellow", IF(OR(TODAY() - [INVOICE DUE DATE]11 <= 5, [INVOICE FULLY PAID]11 = 1), "Green")))

  • Tracy, it works now ! Thank you. Smartsheet does have smart sheets but few things are so different from standard (Excel, Google) sheets, I am just getting into. My formula has another, logical mistake but this I have to solve on my own.

  • To whom it may concern, it works like this:

    =IF(AND(TODAY() - [INVOICE DUE DATE]11 > 5, TODAY() - [INVOICE DUE DATE]11 <= 30), "Yellow", IF(OR(TODAY() - [INVOICE DUE DATE]11 <= 5, [INVOICE FULLY PAID]11 = 1), "Green", "Red"))

This discussion has been closed.