Formual Help - Duplicate Dates

ststern45

Well-known Member
Joined
Sep 17, 2005
Messages
974
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Hi everyone,

Need help with a formula.

In cell range A1:A365 I have the numbers 1 through 365

In cell range B1:B365 I have the dates. Most recent date in cell B1 March 1, 2019

In cell B2 I have the same date March 1, 2019

Cell B3 = February 28, 2019
Cell B4 = February 28, 2019
etc. etc. all the way down to cell B365

My question is this.

In cell C1 = March 1, 2019
In cell C2 = March 1, 2019

In cell D1 I would like to enter a formula similar to index/match that will give me the value of 1 (match the 1st instance of March 1, 2019)
In cell D2 I would like to enter a formula similar to index/match that will give me the value of 2 (match the 1st instance of March 1, 2019)

Thanks in advance!!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Because you specifically mention index/match I think you already know how to do this. For D1:

Code:
=INDEX($A$1:$A$365,MATCH($C1,$B$1:$B$365,0))

and copy down.
 
Upvote 0
Maybe
=INDEX($A$1:$A$28,AGGREGATE(15,6,ROW($A$1:$A$228)-ROW($A$1)+1/($B$1:$B$28=C1),ROWS($1:1)))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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