# where to put isna in this formula please

#### curiosity

##### New Member
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
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
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
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

Replies
2
Views
98
Replies
13
Views
492
Replies
3
Views
239
Replies
1
Views
175
Replies
2
Views
259

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.

### Which adblocker are you using?

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

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