Look up the last non blank cell in a column and then return value of cell to the left a given number of cells in the same row

jonathanb1989

New Member
Joined
Aug 2, 2013
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi, quick question. Super sorry if this has been asked already, I have been digging around for a while now and haven't been able to figure it out yet.

So what I'm trying to figure out is a way to look up the last non blank cell in a column and then shift over to the left of whatever row that is a certain number of cells and then return that value.

For example, I would like to make cell H8 spit this out after it looks over to the left 4 cells of the last non blank cell above it in that column.
09/08/2022 21:00:00

Another example, I would like to make cell F8 spit out
09/14/2022 09:00:00

That's not exactly what I'm trying to do but if I can figure that out I can figure it out from there I hope. Thanks in advance.

Flow Meters.xlsx
ABCEFGH
1TimeDateCombinedExample DescriptionExample DescriptionExample DescriptionExample Description
29:00 PM9/8/202209/08/2022 21:00:000.00000002542225.56110386.61274218
33:03 PM9/13/202209/13/2022 15:03:00269064.5400000
43:38 PM9/13/202209/13/2022 15:38:002808459.3
55:00 AM9/14/202209/14/2022 05:00:00
69:00 AM9/14/202209/14/2022 09:00:002841740
79:16 AM9/14/202209/14/2022 09:16:006133219.6
Sheet1
Cell Formulas
RangeFormula
C2:C7C2=CONCATENATE(TEXT(B2,"mm/dd/yyyy")&" "&TEXT(A2,"hh:mm:ss"))



1663351087468.png
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Fluff.xlsm
ABCDEFGHI
1TimeDateCombinedExample DescriptionExample DescriptionExample DescriptionExample Description
20.87509/08/202208/09/2022 21:00:000254222661103871274218
30.6270839/13/20229/13/2022 15:03:00269064.5
40.6513899/13/20229/13/2022 15:38:002808459
50.2083339/14/20229/14/2022 05:00:00
60.3759/14/20229/14/2022 09:00:002841740
70.3861119/14/20229/14/2022 09:16:006133220
89/13/2022 15:03:009/14/2022 09:00:009/14/2022 09:16:0008/09/2022 21:00:00
Report
Cell Formulas
RangeFormula
C2:C7C2=CONCATENATE(TEXT(B2,"mm/dd/yyyy")&" "&TEXT(A2,"hh:mm:ss"))
E8:H8E8=LOOKUP(2,1/(E2:E7<>""),$C$2:$C$7)
 
Upvote 0
Solution

Forum statistics

Threads
1,214,982
Messages
6,122,575
Members
449,089
Latest member
Motoracer88

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