Formula Assistance

Arts

Well-known Member
Joined
Sep 28, 2007
Messages
770
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi all

I did an Index match formula which for all intents and purposes works. INDEX(G16:P25,MATCH(T17,F16:F25,FALSE),MATCH(S17,G15:P15,FALSE))
I look up an individuals name across data (sample copied in below)

AreaAaronLouiseMario
Brazil
Egypt5.95
Holland4.95

<colgroup><col><col span="3"></colgroup><tbody>
</tbody>


The initial issue I had which I managed to solve was if I was to type in the name "Louise" against "Egypt" this would return me 0. So I tailored the formula as

=IF(INDEX(G16:P25,MATCH(T17,F16:F25,FALSE),MATCH(S17,G15:P15,FALSE))=0,"No Value",INDEX(G16:P25,MATCH(T17,F16:F25,FALSE),MATCH(S17,G15:P15,FALSE)))

Is there a way I can include an ISNA aspect within the formula as well? So if I was to type in "Harry" against "Egypt" where a "N/A" is thrown up instead of a zero this can be caught as well?

Thanks
Arts
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
After mixing up the order I came up with the following formula (By having the ISNA first, I was attempting to place this within the second if at first) which seems to work. Not the most efficient of formulas so if there is a more efficient way please post otherwise the below seems to work for me

=IF(ISNA(INDEX(G16:P25,MATCH(T17,F16:F25,FALSE),MATCH(S17,G15:P15,FALSE))),"Error",IF(INDEX(G16:P25,MATCH(T17,F16:F25,FALSE),MATCH(S17,G15:P15,FALSE))=0,"No Value",INDEX(G16:P25,MATCH(T17,F16:F25,FALSE),MATCH(S17,G15:P15,FALSE))))
 
Upvote 0

Forum statistics

Threads
1,216,126
Messages
6,129,021
Members
449,480
Latest member
yesitisasport

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
Back
Top