+ Reply to Thread
Results 1 to 5 of 5

IFERROR still returns #VALUE, Needs to be "" or 0

Hybrid View

BeachRock IFERROR still returns #VALUE,... 10-22-2012, 11:53 AM
dwint Re: IFERROR still returns... 10-22-2012, 11:58 AM
NBVC Re: IFERROR still returns... 10-22-2012, 12:02 PM
:) Sixthsense :) Re: IFERROR still returns... 10-22-2012, 12:03 PM
BeachRock Re: IFERROR still returns... 10-22-2012, 03:00 PM
  1. #1
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    IFERROR still returns #VALUE, Needs to be "" or 0

    Happy Monday!

    I have a formula that returns a #VALUE error when no data is available and I need it to either be nothing or 0. The error states that a value in the formula is of the wrong data type. I don't understand why the IFERROR doesn't work for this...

    =IF(E34="","",IFERROR(INDEX(WPnStats!$E$1:$E$3458,MATCH($G$1&$E34,WPnStats!$B$1:$B$3458&WPnStats!$A$1:$A$3458,0)),0))+IFERROR(INDEX(WPnStats!$E$1:$E$3458,MATCH($G$1&$M34,WPnStats!$B$1:$B$3458&WPnStats!$A$1:$A$3458,0)),0)

    The same formula for other cells works fine and return the correct values when their E cell has data in it.

    Does anyone have an idea of how I can fix this?

    Thanks very much for your help!
    -------------
    Tony

  2. #2
    Forum Contributor
    Join Date
    10-02-2012
    Location
    Bumi Nusantara
    MS-Off Ver
    Excel 2010; Excel 2016
    Posts
    136

    Re: IFERROR still returns #VALUE, Needs to be "" or 0

    change with this one
    =IFERROR(IF(E34="","",INDEX(WPnStats!$E$1:$E$3458,MATCH($G$1&$E34,WPnStats!$B$1:$B$3458&WPnStats!$A$1:$A$3458,0))+INDEX(WPnStats!$E$1:$E$3458,MATCH($G$1&$M34,WPnStats!$B$1:$B$3458&WPnStats!$A$1:$A$3458,0)),0)
    click the star if it solves your problem

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IFERROR still returns #VALUE, Needs to be "" or 0

    You need to enclose the second part in brackets...

    Formula: copy to clipboard
    =IF(E34="","",(IFERROR(INDEX(WPnStats!$E$1:$E$3458,MATCH($G$1&$E34,WPnStats!$B$1:$B$3458&WPnStats!$A$1:$A$3458,0)),0))+IFERROR(INDEX(WPnStats!$E$1:$E$3458,MATCH($G$1&$M34,WPnStats!$B$1:$B$3458&WPnStats!$A$1:$A$3458,0)),0))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: IFERROR still returns #VALUE, Needs to be "" or 0

    It seems to be an array formula and requires Ctrl+Shift+Enter.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: IFERROR still returns #VALUE, Needs to be "" or 0

    Hi everyone, thanks for all of the quick replies. Yes, I had used Ctrl+Shift+Enter. As it turns out, NBVC's formula in post #3 fixed it. Thanks, NBVC!

+ 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