+ Reply to Thread
Results 1 to 3 of 3

Nasty nested IF function will only return "value if false"

  1. #1
    Registered User
    Join Date
    04-13-2013
    Location
    Geneva, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    29

    Question Nasty nested IF function will only return "value if false"

    Hello everybody!

    Once again I am spending a Saturday on my Excel Form that still needs improvements...

    Just now I am trying to tell a cell that it should translate VAT rates into a certain code. But somehow it wonīt work. It might be the way I have to write the percentage - 8% vs. 0,08 vs. just 8?! I have tried various ways, but it just wonīt come around. It will always display I0.

    =IF('CH ASSA'!J7=3,"I3",IF('CH ASSA'!J6=2.5,"I25",IF('CH ASSA'!J8="8%","I8","I0")))

    This are the steps:
    IF 3% in cell J7 then rename to I3
    IF 2.5% in cell J7 then rename to I25
    IF 8% in cell J7 then rename to I8
    none if the conditions met? then return I0

    Cell J7 is formated to present its value in percentage. So you will see 8% aso. The value is a return of a a nested IF and VLOOKUP using a name range.

    OK, all ideas are highly appreciated!

    Thanks,
    Kim

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Nasty nested IF function will only return "value if false"

    Try this,
    =IF('CH ASSA'!J7=3%,"I3",IF('CH ASSA'!J7=2.5%,"I25",IF('CH ASSA'!J7=8%,"I8","I0")))

    Your post says the cell to check is J7, for all 3 values but your formula is testing cells J7,J6 and J8.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    04-13-2013
    Location
    Geneva, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Nasty nested IF function will only return "value if false"

    OMG...
    well, guess that happens when you stare at formulas for too long - canīt see the obvious any more...

    Thanks a lot!

    Cheers,
    Kim

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1