Find the last populated cell in a date range

raccoon588

Board Regular
Joined
Aug 5, 2016
Messages
118
In column A i have a whole year of dates. In column L i have number. How do i look for the last number entered in column L per each month. so in one cell i would put January and (38) should show and for December (17484) should show.
Example.PNG
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
For the last used cell in column B

VBA Code:
Dim lRow As Long

Sub LastRow()
lRow = Cells(Rows.Count, 2).End(xlUp).Row
MsgBox "Last row " & lRow
End Sub
 
Upvote 0
you might be able to manipulate this function in excel by putting the "date" value in the section where they are putting the "temperature reading" in for criteria. Also, I'm not sure about this but you might look into the MATCH function and VLOOKUP function. They might be relevant, but I'm not sure. Those are just what come to mind, based on your image.
 
Upvote 0
How about
Book1
ABLMNO
1
218/12/2019
319/12/2019
420/12/201938December25
521/12/2019January3
622/12/2019
723/12/2019
824/12/201922
925/12/201911
1026/12/201925
1127/12/2019
1228/12/2019
1329/12/2019
1430/12/2019
1531/12/2019
1601/01/20201
1702/01/20202
1803/01/20203
1904/01/2020
2005/01/2020
Sheet2
Cell Formulas
RangeFormula
O4:O5O4=LOOKUP(2,1/((MONTH($A$2:$A$20)=MONTH(N4&1))*($L$2:$L$20<>"")),$L$2:$L$20)
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,022
Members
448,939
Latest member
Leon Leenders

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