+ Reply to Thread
Results 1 to 6 of 6

Value Error (nested IF)

  1. #1
    Forum Contributor
    Join Date
    01-26-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    311

    Value Error (nested IF)

    Hi guys,

    Just wondered why I'm getting a value error in M9.

    Any questions feel free to ask

    Thanks
    Last edited by Median; 03-06-2018 at 02:08 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Value Error (nested IF)

    Hi Median,

    I think you have too many arguments in your first IF statement. Try this instead.

    =IF(L9<>"",((K9/H9)*100-100),IF(H9=K9,(((H9-0.02)/H9)*100-100),0))

    Using the Formula Tab -> Evaluation tool and stepping through your formula gives "=0,0" which Excel doesn't know how to deal with, so you get a #Value.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    01-26-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    311

    Re: Value Error (nested IF)

    Appreciated Marvin, however, 1 issue is that M9 is blank when H9 = K9.

    Ideally what I'm looking for: if H9 = K9, I want excel to minus 0.02, giving a result of -£0.89 (instead of being blank)

  4. #4
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Value Error (nested IF)

    try this way instead..

    =IF(H9=K9,((H9-0.02)/H9)*100-100,IF(L9<>"",(K9/H9)*100-100,0))

  5. #5
    Forum Contributor
    Join Date
    01-26-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    311

    Re: Value Error (nested IF)

    Ty Final, works a charm

    Really appreciated guys

  6. #6
    Forum Contributor
    Join Date
    07-06-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Value Error (nested IF)

    You are welcome. And thanks for the rep!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Nested IF statement error. Nested True statement is not triggering
    By Lucas7040 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2016, 11:41 AM
  2. [SOLVED] Nested IF #NAME error
    By scsmith in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-19-2013, 11:52 PM
  3. nested if #value error
    By carman in forum Excel General
    Replies: 1
    Last Post: 08-25-2012, 02:24 PM
  4. Next without For error in nested loop - Escaping a Nested Loop?
    By BeneRich in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2012, 06:38 PM
  5. Nested if gives #Name? Error
    By Traymond in forum Excel General
    Replies: 2
    Last Post: 01-13-2011, 09:10 PM
  6. Nested IF error #VALUE!
    By jimbosar in forum Excel General
    Replies: 3
    Last Post: 04-11-2009, 01:06 PM
  7. Nested IF error
    By Ricardo Monteiro :^) in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-05-2006, 04:45 PM

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