Row Number

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,838
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
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Do you mean the row of the last occurrence of 4-Jan-18 in column A?

If so, control+shift+enter, not just enter:

=MATCH(9.99999999999999E+307,1/($A$1:INDEX(A:A,MATCH(9.99999999999999E+307,A:A))=$D4))

This yields essentially the relative row number.
 
Upvote 0
Thanks for that Alan and Aladin. Nice to see you still around Aladin, I hope you are well.
 
Upvote 0
Thanks for that Alan and Aladin. Nice to see you still around Aladin, I hope you are well.

How come you missed me?

Note that my suggestion does avoid testing a definite range.
Note also that you need to think about whether a native row is required or a relative one.

Regards,

Aladin
 
Upvote 0
I've not been around as much recently Aladin. Just saying hello especially as you have helped me out lots of times over the years which is of course greatly appreciated.
 
Upvote 0
I have got myself a little confused now. If I used the following to find how my records of interest there are , how would I find the row of the 1st and last record of interest please. All 51 returns could be the same date in the middle of Jan - 1918 in you see what I mean.

By Year and Month

GHIJ

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:83px;"><col style="width:83px;"><col style="width:83px;"><col style="width:83px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]7[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=c0c0c0]#c0c0c0[/URL] , align: right"]Jan-1918[/TD]
[TD="align: right"]01-Jan-18[/TD]
[TD="align: right"]31-Jan-18[/TD]
[TD="align: right"]51[/TD]

</tbody>

Spreadsheet Formulas
CellFormula
G7=C11&"-"&$J$4
H7=G7 +0
I7=EOMONTH(H7,0)
J7=SUMPRODUCT(--(Date_of_Death>=H7),--(Date_of_Death<=I7))

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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