Index \ Match

t0ny84

Board Regular
Joined
Jul 6, 2020
Messages
205
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
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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?
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,213,552
Messages
6,114,278
Members
448,559
Latest member
MrPJ_Harper

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