ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formula MATCH error (https://www.excelbanter.com/excel-worksheet-functions/5922-formula-match-error.html)

peterfc2

Formula MATCH error
 

Hi,
Can someone please change this code so that I dont get an ERROR when
the 1 (one) in the MATCH bit is not found. For some reason my brains
not working today.
Cheers, Peter





=INDEX(meal!$A5:$A9,MATCH(1,meal!B5:B9,0))


--
peterfc2
------------------------------------------------------------------------
peterfc2's Profile: http://www.excelforum.com/member.php...fo&userid=4285
View this thread: http://www.excelforum.com/showthread...hreadid=276273


Domenic


=IF(ISNA(MATCH(1,meal!B5:B9,0)),"",INDEX(meal!$A5: $A9,MATCH(1,meal!B5:B9,0)))

Hope this helps!

peterfc2 Wrote:
Hi,
Can someone please change this code so that I dont get an ERROR when
the 1 (one) in the MATCH bit is not found. For some reason my brains
not working today.
Cheers, Peter





=INDEX(meal!$A5:$A9,MATCH(1,meal!B5:B9,0))



--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=276273



All times are GMT +1. The time now is 11:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com