Automatically fill cell according to other cell's content.

sb003848

Board Regular
Joined
Sep 17, 2009
Messages
66
Here is the situation

ABC
1Unit #Hour meter (Start)Hour meter (End)
2111100000025
3222200000125
4333300000247
5444400000006
611110025 (search for last content for 1111)0039
711110039 (search for last content for 1111)0048
822220125 (search for last content for 2222)0158

<tbody>
</tbody>

What you can see is I'm trying to know the formula needed in column B in order to, according to the unit # entered into row A, automatically search for the last entry for the same unit # and get the info from row C.

Can that be done ?

Thanks in advance.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
It effects from B3.
B3=IFERROR(OFFSET(C3,-(ROWS($A$2:A2)+1-MATCH(1,INDEX(0/($A$2:A2=A3),0),1)),0),"0000")
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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