Return value in column "A" of a row containing certain value in column "I"

dprows

New Member
Joined
Nov 4, 2009
Messages
2
I have a spreadsheet with dates in column A. I am trying to find a way to return that date of the last occurance of a specific value in column I.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi, welcome to the board!

You didn't say what you were looking for in column I, so in this example we are returning the date for the last occurrence of N:

=INDEX(A1:A20,MAX(IF(I1:I20="N",ROW(I1:I20)-ROW(I1)+1)))

Confirm with CTRL-SHIFT-ENTER rather than just Enter.
Format as date.

Excel Workbook
ABCDEFGHIJKL
18/27/1977J3/15/1996
28/16/1970G
37/12/1990L
42/21/2002R
51/15/1984U
64/25/1995B
71/19/1973X
82/18/2000O
912/23/1984U
103/8/1987K
115/9/1977S
123/19/2006Y
1312/30/1976L
147/22/2002A
156/4/2009O
165/9/1993N
178/22/1996J
183/15/1996N
194/30/1985Y
2012/9/1981T
Sheet1
 
Upvote 0
Here's another one...

Return the date from column A that corresponds to the *last* instance of "x" in column I.

=LOOKUP(2,1/(I2:I20="x"),A2:A20)

Format as Date
 
Upvote 0
Here's another one...

Return the date from column A that corresponds to the *last* instance of "x" in column I.

=LOOKUP(2,1/(I2:I20="x"),A2:A20)

Format as Date

I ended up using this one. Thank you both for your help.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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