ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   IF #REF then display 0 (https://www.excelbanter.com/excel-discussion-misc-queries/96554-if-ref-then-display-0-a.html)

[email protected]

IF #REF then display 0
 
I am using a PivotTable, and using the GETPIVOTDATA formula to popluate
data on a separate worksheet. The colums are days of the month, but if
i don't have any data for that date it gives me a #REF. Is there a way
i can include with my GETPIVOTDATA statement, that if it shows an error
or #REF, it will displya a 0 or leave it blank, that way it doesn't
mess up with the other data.

Let me know if you need any additional information.


Barb Reinhardt

IF #REF then display 0
 
How about

=if(ISERROR(getpivotdata()),0,getpivotdata())


" wrote:

I am using a PivotTable, and using the GETPIVOTDATA formula to popluate
data on a separate worksheet. The colums are days of the month, but if
i don't have any data for that date it gives me a #REF. Is there a way
i can include with my GETPIVOTDATA statement, that if it shows an error
or #REF, it will displya a 0 or leave it blank, that way it doesn't
mess up with the other data.

Let me know if you need any additional information.




All times are GMT +1. The time now is 07:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com