Index Match formula error

jimbogarner

Board Regular
Joined
Apr 22, 2010
Messages
100
Hi,

I'm trying to get the following index match formula to work;
=IFERROR(INDEX(Lists!$H$1:$U$100,MATCH(1,(Lists!$H$1:$H$100="*"&$B19&"*")*(Lists!$I$1:$I$100=$E19),0),MATCH(H$16,Lists!$H$1:$U1),0)," ")
This part of the formula is looking up a day (IE Mon), in a list of Mon, Tue, Wed, Thu, Fri.... This is where the errors started to come into the file! However, I need this or something similar in the formula as we have similar groups depending on time slot, however, each day is different... IE 6am-10am is 'Breakfast', however, Mon, Tue & Wed is person A, Thu & Fri is person B...
(Lists!$H$1:$H$100="*"&$B19&"*")
My work security doesn't let me attach the example spreadsheet, however, snip below of the formula and the lists section i'm trying to read from;
1686745823459.png

1686745339507.png

Thanks,
James
 

Attachments

  • 1686745488170.png
    1686745488170.png
    37.8 KB · Views: 9
Last edited:

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
=FILTER(LISTS!H1:U100,ISNUMBER(SEARCH(B19,LISTS!H1:H100))*ISNUMBER(SEARCH(E19,LISTS!I1:I100)),"")

or

=IFERROR(INDEX(LISTS!H1:U100,MATCH(1,--ISNUMBER(SEARCH(B19,LISTS!H1:H100))),0)*MATCH(1,--ISNUMBER(SEARCH(E19,LISTS!I1:I100))),0),),"")

Thew first gets all records meeting the conditions and the second gets the first record meeting the condition
 
Upvote 0
Thanks, the first formula comes up with NA? the 2nd brings back the entire row but doesn't factor in the Producer 1, producer 2 etc....

IE from the top snip, Monday Breakfast would return Ollie for the Producer 1 section, Will for AP 1, Sim for AP 2 etc. etc.

Thanks,

James
 
Upvote 0
=FILTER(LISTS!H1:U100,ISNUMBER(SEARCH(B19,LISTS!H1:H100))*ISNUMBER(SEARCH(E19,LISTS!I1:I100)),"")

or

=IFERROR(INDEX(LISTS!H1:U100,MATCH(1,--ISNUMBER(SEARCH(B19,LISTS!H1:H100))),0)*MATCH(1,--ISNUMBER(SEARCH(E19,LISTS!I1:I100))),0),),"")

Thew first gets all records meeting the conditions and the second gets the first record meeting the condition
First one probably means your excel version does not have filter()

I didn't catch you wanted one specific column returned versus the whole thing.

=IFERROR(INDEX(LISTS!H1:U100,MATCH(1,--ISNUMBER(SEARCH(B19,LISTS!H1:H100))),0)*MATCH(1,--ISNUMBER(SEARCH(E19,LISTS!I1:I100))),0),MATCH(H$16,Lists!$H$1:$U1,0)),"")
 
Upvote 0
Sorry my fault I should have specified this is in google sheets, not excel. Not sure if that makes any difference?

Weirdly that works for the first line but then doesn't seem to work for any after that?
1686756119374.png

1686756160654.png


Thanks,

James
 
Upvote 0
Sorry my fault I should have specified this is in google sheets, not excel. Not sure if that makes any difference?
There are many similarities, but there are differences as well, as they are NOT the same program.
As such, you should always specify in your original posts if you are asking about Google Sheets to avoid any confusion (since we primarily are an Excel forum! ;) )
 
Upvote 0
Sorry my fault I should have specified this is in google sheets, not excel. Not sure if that makes any difference?

Weirdly that works for the first line but then doesn't seem to work for any after that?
View attachment 93591
View attachment 93592

Thanks,

James
Typo in the formula - missed a $ sign near the end

=IFERROR(INDEX(LISTS!$H$1:$U$100,MATCH(1,--ISNUMBER(SEARCH($B21,LISTS!$H$1:$H$100))),0)*MATCH(1,--ISNUMBER(SEARCH($E21,LISTS!$I$1:$I$100))),0),MATCH(H$16,Lists!$H$1:$U$1,0)),"")
 
Upvote 0
Sorry only just got around to looking at this again, it still doesn't like that? Returns the people working on breakfast for every line...
1686836167605.png
 
Upvote 0
=IFERROR(INDEX(LISTS!$H$1:$U$100,MATCH(1,--ISNUMBER(SEARCH($B21,LISTS!$H$1:$H$100))*--ISNUMBER(SEARCH($E21,LISTS!$I$1:$I$100)),0),MATCH(H$16,Lists!$H$1:$U$1,0)),"")

Changed the middle part
 
Upvote 0

Forum statistics

Threads
1,215,102
Messages
6,123,097
Members
449,096
Latest member
provoking

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