Index / Match Help

J

Jasmine

I am using the following formula to grab a specific amount from another Excel
worksheet. Can't use the SUMPRODUCT because I want the value a line down from
where it finds CSFS Totals.

=(INDEX('C:\Trend Cards\All New Renewed\[April New
Renew.xls]Sheet1'!$H$3:$H$5000,MATCH("CSFS Totals",'C:\Trend Cards\All New
Renewed\[April New Renew.xls]Sheet1'!$B$3:$B$5000,0)+1))/1000

This value will not always show up on the other Excel file, which makes it
display a #N/A. Is there anyway for it to display a 0 instead when it can't
find it? Any help would be appreciated. Thanks!
 
S

SiC

Hi Jasmine,

Try this:
=IF(ISNA(MATCH("CSFS Totals",'C:\Trend Cards\All New
Renewed\[April New Renew.xls]Sheet1'!$B$3:$B$5000,0)),0,(INDEX('C:\Trend
Cards\All New Renewed\[April New
Renew.xls]Sheet1'!$H$3:$H$5000,MATCH("CSFS Totals",'C:\Trend Cards\All New
Renewed\[April New Renew.xls]Sheet1'!$B$3:$B$5000,0)+1))/1000)
Basically I just added the IF and ISNA function to your original formula.
This should change any #N/A to 0. Hope this helps.

-Simon
 
S

SteveG

Jasmine,


=IF(ISNA((INDEX('C:\Trend Cards\All New Renewed\[April New
Renew.xls]Sheet1'!$H$3:$H$5000,MATCH("CSFS Totals",'C:\Trend Cards\All
New
Renewed\[April New Renew.xls]Sheet1'!$B$3:$B$5000,0)+1))/1000),0,
(INDEX('C:\Trend Cards\All New Renewed\[April New
Renew.xls]Sheet1'!$H$3:$H$5000,MATCH("CSFS Totals",'C:\Trend Cards\All
New
Renewed\[April New Renew.xls]Sheet1'!$B$3:$B$5000,0)+1))/1000)

HTH

Steve
 
J

Jasmine

That works perfectly! I am not exactly sure I understand why, but thank you
very much! That solves a huge problem for me.

SiC said:
Hi Jasmine,

Try this:
=IF(ISNA(MATCH("CSFS Totals",'C:\Trend Cards\All New
Renewed\[April New Renew.xls]Sheet1'!$B$3:$B$5000,0)),0,(INDEX('C:\Trend
Cards\All New Renewed\[April New
Renew.xls]Sheet1'!$H$3:$H$5000,MATCH("CSFS Totals",'C:\Trend Cards\All New
Renewed\[April New Renew.xls]Sheet1'!$B$3:$B$5000,0)+1))/1000)
Basically I just added the IF and ISNA function to your original formula.
This should change any #N/A to 0. Hope this helps.

-Simon

Jasmine said:
I am using the following formula to grab a specific amount from another Excel
worksheet. Can't use the SUMPRODUCT because I want the value a line down from
where it finds CSFS Totals.

=(INDEX('C:\Trend Cards\All New Renewed\[April New
Renew.xls]Sheet1'!$H$3:$H$5000,MATCH("CSFS Totals",'C:\Trend Cards\All New
Renewed\[April New Renew.xls]Sheet1'!$B$3:$B$5000,0)+1))/1000

This value will not always show up on the other Excel file, which makes it
display a #N/A. Is there anyway for it to display a 0 instead when it can't
find it? Any help would be appreciated. Thanks!
 

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