Index \ Match

t0ny84

Board Regular
Joined
Jul 6, 2020
Messages
117
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
  2. Mobile
  3. Web
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
 

Some videos you may like

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
Joined
May 2, 2008
Messages
35,676
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
  2. MacOS
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
Joined
Jul 6, 2020
Messages
117
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
  2. Mobile
  3. Web
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)

=INDEX(Table1[Event],AGGREGATE(15,6,(Table1[Date]=Calendar!$AG$7)/(Table1[Date]=Calendar!$AG$7)*ROW(Table1[Date])-ROW(Table1[#Headers]),1))

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
 

Watch MrExcel Video

Forum statistics

Threads
1,114,362
Messages
5,547,473
Members
410,797
Latest member
mlfuson
Top