Formual Help - Duplicate Dates

ststern45

Well-known Member
Joined
Sep 17, 2005
Messages
813
Office Version
  1. 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!!
 

Some videos you may like

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

6StringJazzer

Well-known Member
Joined
Jan 27, 2010
Messages
714
Office Version
  1. 365
Platform
  1. Windows
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.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
52,755
Office Version
  1. 365
Platform
  1. Windows
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)))
 

Watch MrExcel Video

Forum statistics

Threads
1,122,207
Messages
5,594,841
Members
413,944
Latest member
3xc3ln00b

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
Top