IF/AND Formula

kwheeler
kwheeler
edited 12/09/19 in Formulas and Functions

I am trying to create a formula to track invoices that are completed under 30 days. 

If the number in the "Invoice Duration" is less than 30 I'd like the next column "<30 Days" to populate with "Yes" 

If the number in "Invoice Duration" is more than 30 I'd like it to populate "No"

 

Thank you for all the help!

Comments

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Hi,

    Try something like this.

    The formula will show Yes if the cell is empty. Is that ok?

    =IF([Invoice Duration]1 >= 30; "No"; IF([Invoice Duration]1 < 30; "Yes"))

    The same version but with the below changes for your and others convenience.

    =IF([Invoice Duration]1 >= 30, "No", IF([Invoice Duration]1 < 30, "Yes"))

    Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.

    Did it work?

    Have a fantastic weekend!

    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: [email protected] | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me about help with Smartsheet, integrations, general workflow advice, or something else entirely.

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭
    edited 05/07/19

    Hi again,

    Added an alternative.

    This will be empty if the invoice duration is empty and I also added the @row function so you need not think about the rows.

    =IF([Invoice Duration]@row = ""; ""; IF([Invoice Duration]@row >= 30; "No"; IF([Invoice Duration]@row < 30; "Yes")))

    The same version but with the below changes for your and others convenience.

    =IF([Invoice Duration]@row = "", "", IF([Invoice Duration]@row >= 30, "No", IF([Invoice Duration]@row < 30, "Yes")))

    Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.

    Did it work?

    Have a fantastic week!

    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: [email protected] | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me about help with Smartsheet, integrations, general workflow advice, or something else entirely.

  • Yes! Thank you so much!

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Excellent!

    Happy to help!

    Best,

    Andrée

     

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E: [email protected] | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me about help with Smartsheet, integrations, general workflow advice, or something else entirely.