ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   ISERROR on GETPIVOTDATA (https://www.excelbanter.com/excel-worksheet-functions/241736-iserror-getpivotdata.html)

Sarah (OGI)

ISERROR on GETPIVOTDATA
 
I have the following formula, but I need to factor in the ISERROR function as
well, but I'm not sure how to include it. It needs to go in just before the
2 GETPIVOTDATA functions but I've tried it and it doesn't seem to work for me.

Could someone just clarify how I should include them?

=IF($S30V$9,"",IF($H30="",GETPIVOTDATA("GWP exc. IPT",'Company
Pivot'!$A$5,"TransactionDate",MONTH(V$9),"BrokerCo mpanyId",$F30,"Group
Code","","Years",YEAR(V$9)),GETPIVOTDATA("GWP exc. IPT",'Company
Pivot'!$A$5,"TransactionDate",MONTH(V$9),"Group
Code",$H30,"Years",YEAR(V$9))))

Many thanks!

Shane Devenshire[_2_]

ISERROR on GETPIVOTDATA
 
Hi,

Try

=IF($S30V$9,"",IF($H30="",GETPIVOTDATA("GWP exc. IPT",'Company
Pivot'!$A$5,"TransactionDate",MONTH(V$9),"BrokerCo mpanyId",$F30,"Group
Code","","Years",YEAR(V$9)),IF(ISERR(GETPIVOTDATA( "GWP exc. IPT",'Company
Pivot'!$A$5,"TransactionDate",MONTH(V$9),"Group
Code",$H30,"Years",YEAR(V$9))),"",GETPIVOTDATA("GW P exc. IPT",'Company
Pivot'!$A$5,"TransactionDate",MONTH(V$9),"Group
Code",$H30,"Years",YEAR(V$9)))))

If you are using 2007 look at IFERROR instead.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Sarah (OGI)" wrote:

I have the following formula, but I need to factor in the ISERROR function as
well, but I'm not sure how to include it. It needs to go in just before the
2 GETPIVOTDATA functions but I've tried it and it doesn't seem to work for me.

Could someone just clarify how I should include them?

=IF($S30V$9,"",IF($H30="",GETPIVOTDATA("GWP exc. IPT",'Company
Pivot'!$A$5,"TransactionDate",MONTH(V$9),"BrokerCo mpanyId",$F30,"Group
Code","","Years",YEAR(V$9)),GETPIVOTDATA("GWP exc. IPT",'Company
Pivot'!$A$5,"TransactionDate",MONTH(V$9),"Group
Code",$H30,"Years",YEAR(V$9))))

Many thanks!



All times are GMT +1. The time now is 02:13 AM.

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