Row Number

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,843
Office Version
  1. 2010
Platform
  1. Windows
Hello, how would I find the last row with 04-Jan-18 please?

Excel Workbook
ABCDE
101-Jan-18
201-Jan-18
301-Jan-181stLast
402-Jan-1802-Jan-1804-Jan-18Last Row
5413
6
7
803-Jan-18
904-Jan-18
1004-Jan-18
1104-Jan-18
1204-Jan-18
1305-Jan-18
Sheet1
 
Aladin, month and year. These formulas seem to be doing the trick. Both CSE...

=MIN(IF(Date_of_Death>=H7,ROW(Date_of_Death)-ROW(INDEX(Date_of_Death,1))+1))

=MAX(IF(Date_of_Death<=H7,ROW(Date_of_Death)-ROW(INDEX(Date_of_Death,1))+1))
 
Upvote 0

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Are you trying to find the relative row number of the first occurrence of a month/year date? And the last occurrence?
 
Upvote 0
My final goal is two search dates say 01-Jan-14 and 01-Jan-15. I want the row of the first date equal to, or greater than 01-Jan-14, (There might not be a 01-Jan-14) and the biggest date equal to or less than 01-Jan-15. All the dates are in a range called Date_of_Death and to try and simplify it, lets put 01-Jan-14 in A1 and 01-Jan-15 in A2. I hope that clears it up Aladin.

Excel Workbook
ABCD
101-Jan-1401-Jan-1501-Jan-13
22402-Jan-14
302-Jan-14
431-Dec-14
502-Jan-15
602-Jan-15
Sheet1
 
Upvote 0
Assuming that the dates in D are chronological...

In A2 enter:

=MATCH(INDEX($D$1:$D$6,MATCH($A1,$D$1:$D$6,1)+(LOOKUP($A1,$D$1:$D$6) < $A1)),$D$1:$D$6,0)

In B2 enter:

=MATCH($B1,$D$1:$D$6,1)
 
Upvote 0
Thanks Aladin. I could get your solution to work Syed but thanks for looking.
 
Upvote 0
You are welcome. They are by the way fast working formulas.

I meant that I couldn't get Syed's formula to work, So your formulas are the fast formulas yes? Sorry to confuse everyone!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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