where to put isna in this formula please

curiosity

New Member
Joined
Oct 11, 2006
Messages
9
G'day all,

ok i have this formula

=INDEX($C$2:$C$425,MATCH(D2,IF($B$2:$B$425=E2,$A$2:$A$425),0))


which works fine, I only have one problem I cannot for the life of me work out where or how to insert the IsNA to give me a 0 value if no match found so that I can sum my results-

Any and all help appreciated..


Steve
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

acw

MrExcel MVP
Joined
Feb 13, 2004
Messages
4,814
Steve

Try

=IF(ISNA(MATCH(D2,IF($B$2:$B$425=E2,$A$2:$A$425),0)),0,INDEX($C$2:$C$425,MATCH(D2,IF($B$2:$B$425=E2,$A$2:$A$425),0)))


Tony
 

curiosity

New Member
Joined
Oct 11, 2006
Messages
9
yes yes yes yes and yes


Tony thank you very much that worked like an absolute gem !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Cant thank you enough - and wow less than 5 minutes for the solution...


Stoked and greatful...


Steve
 

acw

MrExcel MVP
Joined
Feb 13, 2004
Messages
4,814
Steve

What sort of data is in column C? If it is numeric, then you could use the SUMPRODUCT function which would evaluate to 0 if there was no match.


Tony
 

Forum statistics

Threads
1,140,912
Messages
5,703,128
Members
421,276
Latest member
davidfrommke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top