Excel Help PLease!

4
Posted 26th Feb 2023
I have a spreadsheet that is collating results from a Pivot table, that could have multiple responses.

I'm then collating those responses into a table, but I'm getting #REF! as sometimes the expected results may not appear?

e.g. In my Piviot table I may get Pass, but if Pass is not there I want to disaplay blank or 0, not #REF!

=GETPIVOTDATA("Pass/Fail", $A$17, "Pass/Fail","Pass")

So if Pass is not here, i'm getting #REF! = how can I get that resolved please??
Community Updates
Misc
New Comment

4 Comments

sorted by
's avatar
  1. Bob24601's avatar
    Bob24601
    I'm not familiar with the GETPIVOTDATA function, but couldn't you wrap it in an IFERROR.

    Something like this?

    =IFERROR(GETPIVOTDATA("Pass/Fail", $A$17, "Pass/Fail","Pass"), "Fail")

    That way if the GETPIVOTDATA errors, that should then trigger the IFERROR and return that result instead (edited)
    melmorc's avatar
    melmorc Author
    Perfect! Many many thanks this has really helped me and resolved my problem! Thank you!!!
  2. dolanduck's avatar
    dolanduck
    Getpivotdata is a rubbish function btw. If you filter the table it breaks lol.

    IFERROR is the best way, or just specific cell references. Don't even have to put IFERROR, with the specific cell references, just a classic IF (edited)
    melmorc's avatar
    melmorc Author
    I will relook once I get my initial reports out of the way and can re-educate my way. Thank you!
Discussions
Top Merchants