📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Anyone good with nested formulas?

Options
2»

Comments

  • Lil306
    Lil306 Posts: 1,692 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Combo Breaker
    Muchos gracias, I love all the replies. Helping me understand the nested and validation a lot better. Think I'm going to have to buy one of those geek books :D

    EDIT - Didn't realise I had to share it

    This link should work
    Link Me
    Owner of andrewhope.co.uk, hate cars and love them

    Working towards DFD

    HSBC Credit Card - £2700 / £7500
    AA Loans - (cleared £9700)
  • Lokolo
    Lokolo Posts: 20,861 Forumite
    Part of the Furniture 10,000 Posts
    Don't use B2=0 to mean B2 is blank. You should use B2="".

    So if you have this:

    If the value entered in Column D, was <2 - it would produce "Day-Tripper" in E
    If the value entered in Column D, was >30 - it would produce "Too Long" in E
    Otherwise, leave the column E blank

    Then you would have an if statement look like this:

    If D < 2
    ->PRINT "Day Tripper"
    Else
    ->If D > 30
    ->->PRINT "Too Long"
    ->Else
    ->->LEAVE BLANK
    ->End if
    End if

    which would equate to:

    =IF(D<2,"Day Tripper",(IF(D>30,"Too Long","")))
  • Lil306
    Lil306 Posts: 1,692 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Combo Breaker
    Lokolo wrote: »
    Don't use B2=0 to mean B2 is blank. You should use B2="".

    So if you have this:

    If the value entered in Column D, was <2 - it would produce "Day-Tripper" in E
    If the value entered in Column D, was >30 - it would produce "Too Long" in E
    Otherwise, leave the column E blank

    Then you would have an if statement look like this:

    If D < 2
    ->PRINT "Day Tripper"
    Else
    ->If D > 30
    ->->PRINT "Too Long"
    ->Else
    ->->LEAVE BLANK
    ->End if
    End if

    which would equate to:

    =IF(D<2,"Day Tripper",(IF(D>30,"Too Long","")))
    Ty, always good to learn :)
    Owner of andrewhope.co.uk, hate cars and love them

    Working towards DFD

    HSBC Credit Card - £2700 / £7500
    AA Loans - (cleared £9700)
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 351.1K Banking & Borrowing
  • 253.1K Reduce Debt & Boost Income
  • 453.6K Spending & Discounts
  • 244.1K Work, Benefits & Business
  • 599K Mortgages, Homes & Bills
  • 177K Life & Family
  • 257.4K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.