generate list of equipment use from a spreadsheet calendar

striker

New Member
Joined
Aug 7, 2002
Messages
5
Office Version
  1. 365
Hi Everyone, it has been awhile... 20 yrs.

My company uses Excel to track equipment usage for consulting clients. There is a sheet showing sequentially assigned Booking Ref numbers YY-NNN (not shown here) and a calendar view (below) where those same YY-NNN strings are placed in cells for each day that particular piece of equipment is being used.
1667944173197.png


What causes the equipment manager grief is that they have to confirm with project managers the actual usage and get charge-out sheets to the billing department.
If a separate tab of the sheet with the following could be generated it would make this task much easier.
1667943614846.png


1667943658100.png


I realize the results could be more elegant/compact with concatenation, but the output here will work nicely to paste into charge out sheets. It gets more complicated due to contracts and day/week/month rates from there.
The Booking Ref values should be grouped of course but do not have to be shown in ascending order since there is only one booking ref used per charge out sheet. Also, the repeated Booking Ref values will facilitate use of autofilter.

Thanks to all to look at this. I did try to search for a similar thread but did not get anything close.

-Darren
Excel® for Microsoft 365 MSO (Version 2210 Build 16.0.15726.20070) 64-bit
 

Attachments

  • 1667943430408.png
    1667943430408.png
    25.3 KB · Views: 8

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Use Power Query to Unpivot your data and then Group By the Asset and Month. If you would like to see this demo'd then repost your data using XL2BB as we cannot manipulate data in a picture, and there is to much data to try and retype. Help us to help you.
 
Upvote 0
To be clear, there are no Pivot Tables involved here. Also, the lower 2 screenshots do not contain any formulae or Pivots - there are only what I hope the desired output to look like.
I've used XL2BB to represent the spreadsheet contents visible in the top screenshot (table only since no formulae)

JuneJuly
WedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFri
Asset numberHome Office15161718192021222324252627282930123456789101112131415
ADV #1FMM22-23022-23022-23022-22422-22422-224
ADV #2FMM22-22422-22422-22422-22422-316
ADV #3Calgary
ADV #4NV22-21522-21522-21522-21522-21522-21522-21522-46722-467
ADV #5Calgary
ADC #1FMM
ADCP #1Calgary22-23022-23022-230
Top-set rod #1FMM22-23022-23022-23022-22422-22422-22422-22422-316
Top-set rod #2FMM
Top-set rod #3Calgary
Top-set rod #4NV22-21522-21522-21522-21522-21522-21522-21522-46722-467
Top-set rod #5FMM
Winter rod #1FMM
Winter rod #2FMM
ADCP Winter RodFMM
Level head #1FMM
Level head #2FMM22-23022-23022-23022-22422-22422-22422-22422-33522-33522-33622-316
Level head #3FMM22-20222-20222-20222-22422-22422-22422-33522-33522-33622-316
 
Upvote 0
Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Transposed Table" = Table.Transpose(Source),
    #"Filled Down" = Table.FillDown(#"Transposed Table",{"Column1"}),
    #"Filled Up" = Table.FillUp(#"Filled Down",{"Column1"}),
    #"Merged Columns" = Table.CombineColumns(Table.TransformColumnTypes(#"Filled Up", {{"Column3", type text}}, "en-US"),{"Column1", "Column2", "Column3"},Combiner.CombineTextByDelimiter(" ", QuoteStyle.None),"Merged"),
    #"Transposed Table1" = Table.Transpose(#"Merged Columns"),
    #"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table1", [PromoteAllScalars=true]),
    #"Renamed Columns" = Table.RenameColumns(#"Promoted Headers",{{"   June  Asset number", "Asset Number"}, {"   June  Home Office", "Home Office"}}),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Renamed Columns", {"Asset Number", "Home Office"}, "Attribute", "Value"),
    #"Trimmed Text" = Table.TransformColumns(#"Unpivoted Other Columns",{{"Attribute", Text.Trim, type text}, {"Value", Text.Trim, type text}}),
    #"Changed Type" = Table.TransformColumnTypes(#"Trimmed Text",{{"Attribute", type date}}),
    #"Extracted Month Name" = Table.TransformColumns(#"Changed Type", {{"Attribute", each Date.MonthName(_), type text}}),
    #"Removed Columns" = Table.RemoveColumns(#"Extracted Month Name",{"Home Office"}),
    #"Duplicated Column" = Table.DuplicateColumn(#"Removed Columns", "Value", "Value - Copy"),
    #"Renamed Columns1" = Table.RenameColumns(#"Duplicated Column",{{"Value - Copy", "Booking Ref"}}),
    #"Pivoted Column" = Table.Pivot(#"Renamed Columns1", List.Distinct(#"Renamed Columns1"[Attribute]), "Attribute", "Value", List.NonNullCount)
in
    #"Pivoted Column"

Asset NumberBooking RefJuneJuly
ADCP #122-23030
ADV #122-22403
ADV #122-23030
ADV #222-22404
ADV #222-31601
ADV #422-21570
ADV #422-46720
Level head #222-22404
Level head #222-23030
Level head #222-31601
Level head #222-33502
Level head #222-33601
Level head #322-20230
Level head #322-22403
Level head #322-31601
Level head #322-33502
Level head #322-33601
Top-set rod #122-22404
Top-set rod #122-23030
Top-set rod #122-31601
Top-set rod #422-21570
Top-set rod #422-46720
 
Upvote 0
Solution
Wow.. seeing is believing. I've got some learning to do on Power Query. Thanks for the quick answer.
 
Upvote 0

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

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