Monthly report for yard activity - ISO best method

MB110

New Member
Joined
Mar 24, 2019
Messages
29
Hi,

I'm new to the forum but I've been using Excel for several years. I consider myself at least an intermediate user, however I don't write a lot of code. Better at copy paste, edit.

I inherited the task of adding some KPI's to an already existing workbook. It was full of missing and inaccurate data. I decided to start over but with limited time so my data structure may not be the greatest for what I've been asked to do.

The spreadsheet tracks in and out movement of vehicles in a yard. The time is not tracked but the dates are. I can identify the vehicle and it's owner. I know arrival dates and departure dates. I currently have things set up to manage current activity rather than view history.

I need a method to look at records several months old and say if that car was on site that month. If the same vehicle was still on site in the following month or months it needs to show up on those reports as well. I have a cell stating active on site but it changes to departed after the departed date is entered.

So lets say vehicle A arrived on 01/01/2019 and departed on 03/16/2019, then it was on site for 2.5 months. I can use DATEDIF easy enough to get time spans. I need an eloquent method of saying January had x number of vehicles on site, what those vehicles were and their owners, etc.

I'm at a loss on where to start. I'm guessing an advanced pivot table?

Thanks for any assistance in pointing me in the right direction.
MB110
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
vehicledate indate out
V102/01/201927/01/2019
V310/01/201906/02/201901/01/201901/01/201901/03/2019
V414/01/201911/02/201931/01/201928/02/201931/03/2019
V518/01/2019V1YESYESYES
V122/01/201921/02/2019V2NOYESYES
V330/01/201903/03/2019V3YESYESYES
V403/02/201908/03/2019V4YESYESYES
V111/02/201918/03/2019V5YESYESNO
V215/02/201923/03/2019
V319/02/201928/03/2019
V423/02/201902/04/2019
V103/03/201912/04/2019
V207/03/201917/04/2019
V311/03/201922/04/2019
V415/03/201927/04/2019
is this near to what you want ?

<colgroup><col><col span="2"><col span="3"><col span="3"><col span="2"></colgroup><tbody>
</tbody>
 
Upvote 0
Yes, I think this would work but I was hoping to not make a yes/no calendar. This data range is years long. What formula is used to return the yes or no?

Thanks!

MB110
 
Upvote 0
vehicledate indate out
V102/01/201927/01/2019
V310/01/201906/02/201901/01/201901/01/201901/03/2019
V414/01/201911/02/201931/01/201928/02/201931/03/2019
V518/01/2019V1YESYESYES
V122/01/201921/02/2019V2NOYESYES
V330/01/201903/03/2019V3YESYESYES
V403/02/201908/03/2019V4YESYESYES
V111/02/201918/03/2019V5YESYESNO
V215/02/201923/03/2019
V319/02/201928/03/2019
V423/02/201902/04/2019
V103/03/201912/04/2019
V207/03/201917/04/2019
V311/03/201922/04/2019
V415/03/201927/04/2019
is this near to what you want ?
the yes next to V1
=IF(SUMPRODUCT(($A$2:$A$16=$F5)*($B$2:$B$16>=G$3)*($B$2:$B$16<=G$4))>0,"YES","NO")
so if you rmove the if it will count how many times a vehicle entered the yard in any given date period

<colgroup><col><col span="2"><col span="3"><col span="3"><col span="7"></colgroup><tbody>
</tbody>
 
Upvote 0
Thank you oldbrewer!

This will do the trick! SUMPRODUCT is not a common function for me and I wasn't even considering it.

After so many years of not actively posting on forums I thing I made a good choice with MrExcel!

Cheers!
MB110
 
Upvote 0
come back to us if you need to refine it - and you could calculate the time in yard for each vehicle, etc
 
Upvote 0

Forum statistics

Threads
1,214,859
Messages
6,121,963
Members
449,059
Latest member
oculus

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