Match Function Not returning the correct row address

SanjayGMusafir

Well-known Member
Joined
Sep 7, 2018
Messages
1,438
Office Version
  1. 2021
Platform
  1. MacOS
I have a table that carries multiple entries of same date - Sorted in Ascending Order.

I'm using following formula to get Cell address that contains today's date

Excel Formula:
=ADDRESS(MATCH(TODAY(),Banks[Dt],1),3,4,1)

But it returns cell address 2 to 3 cells above the desired cell.
  • I have tried using "0" in match function, but that doesn't help.
  • Also, occasionally current date goes missing in the table, thus using "1" for approximate match becomes, probably, mandatory.
Can someone help me identify where I'm going wrong and also help improve the formula.

Thanks
 

Attachments

  • Screenshot 2021-02-24 at 21.17.14.png
    Screenshot 2021-02-24 at 21.17.14.png
    69.5 KB · Views: 24

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
MATCH returns the position within a range, not its row number. The two may happen to be the same if your range starts in row 1, but that won't be the case with a table since the headers are usually in row1.
 
Upvote 0
Solution
MATCH returns the position within a range, not its row number. The two may happen to be the same if your range starts in row 1, but that won't be the case with a table since the headers are usually in row1.

Hi RoryA

Exactly that is happening. I realized it after you replied. Actually my range starts from Row 5, that's why it was giving the error of exactly five rows.

Now probably I know the work around

Thanks

 
Upvote 0
You might also want to replace the 3 in your formula with COLUMN(Banks[Dt]) so it will adjust automatically if you move the table.
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,446
Members
449,083
Latest member
Ava19

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