ISERROR on GETPIVOTDATA

S

Sarah (OGI)

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($S30>V$9,"",IF($H30="",GETPIVOTDATA("GWP exc. IPT",'Company
Pivot'!$A$5,"TransactionDate",MONTH(V$9),"BrokerCompanyId",$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!
 
S

Shane Devenshire

Hi,

Try

=IF($S30>V$9,"",IF($H30="",GETPIVOTDATA("GWP exc. IPT",'Company
Pivot'!$A$5,"TransactionDate",MONTH(V$9),"BrokerCompanyId",$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("GWP 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top