# Index \ Match

#### t0ny84

##### Board Regular
Hi All,

I am hoping someone can point me in the right direction before I pull my hair out. I currently have a workbook with 2 sheets.

Sheet 1 - Home has blank cells except for A1 which is where a user enters the date they want to use.
Sheet 2 - Has a Table (named Table1) with 3 columns - Date, Event, Frequency

I am trying to figure out the INDEX\MATCH formula to have the values from Sheet 2 - Table 1 show on Sheet 1 based on the date entered into A1.

On another spreadsheet which was setup similar I used the formula below but whenever I modify it (change Table1[Title] to Table1[Event] it errors.

Used before - =IFERROR(INDEX(Table1[Title],SMALL(IF(Calendar!\$K\$3=INT(Table1[Date]),MATCH(ROW(Table1[Date]),ROW(Table1[Date])),""),ROW(A1))),"")
Modified - =IFERROR(INDEX(Table1[Event],SMALL(IF(A1=INT(Table1[Date]),MATCH(ROW(Table1[Date]),ROW(Table1[Date])),""),ROW(A1))),"")

If a copy of the spreadsheet or screenshots would make figuring this out easier let me know and I can upload when I am at work tomorrow (Australian Time)

t0ny84

### Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

#### RoryA

##### MrExcel MVP, Moderator
I don't see how it could error when you have IFERROR there.

If you have 365, can you use the new FILTER function, or does this have to work with other versions?

#### t0ny84

##### Board Regular
I don't see how it could error when you have IFERROR there.

If you have 365, can you use the new FILTER function, or does this have to work with other versions?

Hey RoryA,

Thanks for replying though it seems to be my luck when I ask for help something clicks in my head!

I figured out below using this video (Moderator Note - I do not own or have any link with this Youtuber)

In the video it mentioned having to use Control + Shift and Enter when applying the formula instead of just enter. Once I got the formula above I retried the modified one (below) but instead of just Enter I pushed Control + Shift + Enter and it worked!

=IFERROR(INDEX(Table1[Title],SMALL(IF(Calendar!\$K\$3=INT(Table1[Date]),MATCH(ROW(Table1[Date]),ROW(Table1[Date])),""),ROW(A1))),"")

Thanks again,
t0ny84

Replies
3
Views
62
Replies
8
Views
281
Replies
1
Views
47
Replies
1
Views
39
Replies
1
Views
77