Row Number

How_Do_I

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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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
7Jan-191801-Jan-1831-Jan-1851

<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>
</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,215,446
Messages
6,124,895
Members
449,194
Latest member
JayEggleton

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