Get last date cleaned and post to another worksheet

yoshaben

New Member
Joined
Mar 16, 2018
Messages
3
Here is the table, it can have a max of 52 rows.
TruckDate CleanedType CleaningNext Cleaning Due
101/18/19Weekly01/25/19
301/18/1990 Day04/18/19
501/19/19Monthly02/18/19

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>

So what I would like to do is take the last entry for truck 1, 5 or 55 etc. and create a sheet that shows when the next cleaning is due to be performed.
Where do I start? I'm thinking INDEX.MATCH but I'm not sure. Anyone willing to help?
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
The truck 1 appears several times on the sheet?
If it only exists once, then you can use the vlookup formula

CellFormula
B2=vlookup(A2,Shee1!A:D,4,0)

<tbody>
</tbody>
Note: In cell A2 you put 1
Note: change Sheet1 by the name of your sheet with trucks and date
 
Upvote 0
Thank you for the quick reply. Yes truck 1 and others may exist more than once. I need to capture the last date each truck was cleaned. So I guess my return would be truck with latest date should return the result.

My results would be truck 1 last done 1/19 truck 5 done 01/22 etc.
Again thank you for the help.
 
Upvote 0

Excel 2010
ABCDEFG
1TruckDate CleanedType CleaningNext Cleaning DueTruckLast
2118-Jan-19Weekly121-Jan-19
3318-Jan-1990 Day
4519-Jan-19Monthly
5121-Jan-19
6322-Jan-19
7523-Jan-19
5b
Cell Formulas
RangeFormula
G2=AGGREGATE(14,6,B$2:B$100/(A$2:A$100=F2),1)
 
Upvote 0
If you do not have excel 2010

Formulas
CellFormula
G2=SUMPRODUCT(MAX((A2:A50=F2)*(B2:B50)))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,403
Messages
6,124,714
Members
449,182
Latest member
mrlanc20

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