Get pivot table data showing total of previously billed on statements

Kimberlieh

New Member
Joined
Mar 5, 2011
Messages
12
Hello MrExcel members,

I have a billing statement I'm working on, which is populated mainly from a pivot table. The columns I am struggling with are labeled "Previously Billed", "Total Earned", and "Quantity To-Date".

The pivot table includes all twelve months as headers, and the billing items are the rows. After a year, some months potentially could be blank.

If we want to reprint March's statement, for example, even if they're blank, we should only have the amounts for January and February in the "Previously Billed" and "Quantity To-Date columns, with March's billing in the column labeled "This Estimate". The "Total Billed" column should be a combination of just the three months, not the entire year, as it currently does.

Please, if anyone can offer assistance. I am open to VBA or formulas, whichever is recommended as the most efficient and easiest to maintain.

Thank you for your consideration helping me with this project.

Kimberlie
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi Kimberlie,

If you post a small example of showing your PivotTable layout, and desired result in the billing statement, it will make it easier for people to offer suggestions.
 
Upvote 0
Sure...

Pivot Table layout... (called Pivot Data)

(A4)Bid Item Number (B4)Description (C4)Prior Yr Qty (D4)Jan (E4)Feb (F4)Mar (G4)Apr (H4)May (I4)Jun (J4)July (K4)Aug (L4)Sep...
(Row 5) 10 Mobilization 1 1 1
(Row 6) 30 Temp Signs In Place 513.5 65 200
(Row 7) 470 Unit Pavers 650 35

_____________________________________________________________________________

Estimate Worksheet layout...(called Estimate)

User enters month into cell M8

(A12)Item # (B&C12 merged)Description (D12)Quantity To-Date (E12)Unit Price (F&G12)Total Earned (H&I12)Previously Earned (J12)This Estimate...
(Row 13) 10 Mobilization
(Row 14) 30 Temp Signs in Place
(Row 15) 470 Unit Pavers

_______________________________________________________________________________

If this is a July statement, the Quantity to-date should be;
Mobilization (2)
Temp Signs in Place (578.5)
Unit Pavers (685)

" " Total Earned (for conversation purposes, we'll say each item is $10 each)
Mobilization (20.00)
Temp Signs in Place (5,785.0)
Unit Pavers (6,850.)

" " previously earned would be the same as total earned.

" " This estimate each would be "0"

________________________________________________________________________________

If this was a September Statement, the Quantity to-date should be;
Mobilization (3)
Temp Signs in Place (778.5)
Unit Pavers (685)

" " Total Earned;
Mobilization (30.00)
Temp Signs in Place (7,785.0)
Unit Pavers (6,850.)

" " Previously Earned
Mobilization (20.00)
Temp Signs in Place (5,785.0)
Unit Pavers (6,850.)

" " This estimate
Mobilization (1)
Temp Signs in Place (200)
Unit Pavers (0)

Incidentally, I take the quantities and multiply them by the billing rate.

Does that help, or would the spreadsheet be a better explanation?

Kimberlie
 
Upvote 0
Data Base (Worksheet)


<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 8.0px Arial; color: #4349aa }table.t1 {border-collapse: collapse}td.td1 {background-color: #000000 ; border-style: solid; border-width: 0.8px 0.8px 0.8px 0.8px; border-color: #cbcbcb #cbcbcb #cbcbcb #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px}td.td2 {background-color: #000000 ; border-style: solid; border-width: 0.8px 1.0px 1.0px 1.0px; border-color: #38d4d6 #cbcbcb #cbcbcb #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px}</style>
Job NumberProject NameBid Item NumberBid Item DesccriptionUnitBid QtyBid PriceBlankPrior QuantitiesJan QtyFeb QtyMar QtyApr QtyMay QtyJun QtyJuly QtyAug QtySep QtyOct QtyNov QtyDec Qty

<tbody>
</tbody>
<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 9.0px Arial; color: #3da779}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Arial; color: #3da779}p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 9.0px Arial; min-height: 10.0px}p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 9.0px Arial}p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Arial}table.t1 {border-collapse: collapse}td.td1 {background-color: #ffd5a9 ; border-style: solid; border-width: 0.8px 0.8px 0.8px 0.8px; border-color: #cbcbcb #cbcbcb #cbcbcb #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px}td.td2 {background-color: #000000 ; border-style: solid; border-width: 0.8px 0.8px 0.8px 0.8px; border-color: #cbcbcb #cbcbcb #cbcbcb #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px}td.td3 {background-color: #000000 ; border-style: solid; border-width: 0.8px 1.0px 0.8px 1.0px; border-color: #a7a7a7 #cbcbcb #a7a7a7 #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px}</style>
15031Fossil Heritage Trail (Fossil)10MobilizationLS 4.00 500.001.00
15031Fossil Heritage Trail (Fossil)30Temporary Signs In PlaceSQFT 545.00 14.00513.50
15031Fossil Heritage Trail (Fossil)40Temporary Barricades, Type IIEA 24.00 45.0039.00
15031Fossil Heritage Trail (Fossil)50Temporary Barricades, Type IIIEA 5.00 95.005.00
15031Fossil Heritage Trail (Fossil)80Temporary Type 1 FenceFoot 153.00 10.50160.00
15031Fossil Heritage Trail (Fossil)470Unit PaversSF 1,600.00 12.50

<tbody>
</tbody>


Pivot Data (Pivot table worksheet)

<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Arial}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 10.0px Arial}p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 10.0px Arial}p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Arial; color: #4349aa }p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 10.0px Arial; color: #4349aa ; min-height: 11.0px}p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 10.0px Arial; color: #4349aa }table.t1 {border-collapse: collapse}td.td1 {border-style: solid; border-width: 1.5px 1.0px 1.5px 1.5px; border-color: #4349aa #cbcbcb #4349aa #4349aa ; padding: 0.0px 5.0px 0.0px 5.0px}td.td2 {border-style: solid; border-width: 1.5px 0.8px 1.5px 1.0px; border-color: #4349aa #4349aa #4349aa #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px}td.td3 {border-style: solid; border-width: 1.5px 1.0px 1.5px 1.0px; border-color: #4349aa #cbcbcb #4349aa #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px}td.td4 {border-style: solid; border-width: 1.5px 1.5px 1.5px 1.0px; border-color: #4349aa #4349aa #4349aa #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px}td.td5 {background-color: #d6d7ff ; border-style: solid; border-width: 0.8px 1.0px 0.8px 1.0px; border-color: #d6d7ff #cbcbcb #ffffff #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px}td.td6 {border-style: solid; border-width: 0.8px 0.8px 0.8px 1.0px; border-color: #d6d7ff #4349aa #d6d7ff #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px}td.td7 {border-style: solid; border-width: 0.8px 1.0px 0.8px 1.0px; border-color: #d6d7ff #cbcbcb #d6d7ff #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px}</style>
Bid Item NumberDescription Prior QuantitiesJanFebMarAprMayJunJulyAugSepOctNovDec
10Mobilization1
30Temporary Signs In Place513.5
40Temporary Barricades, Type II39
50Temporary Barricades, Type III5
80Temporary Type 1 Fence160
470Unit Pavers
560Remove Existing Signs
570Remove & Reinstall Existing Signs

<tbody>
</tbody>

Estimate (Worksheet) Most information comes from the Pivot Table

<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 10.0px 'Times New Roman'}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial}p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 10.0px 'Times New Roman'; min-height: 11.0px}p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 11.0px Arial; min-height: 12.0px}p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 12.0px Helvetica; min-height: 14.0px}p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 12.0px Helvetica}p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Arial; min-height: 14.0px}p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 11.0px Arial}p.p9 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 11.0px Arial; min-height: 12.0px}p.p10 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 12.0px 'Times New Roman'; min-height: 15.0px}p.p11 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 10.0px 'Times New Roman'; min-height: 11.0px}p.p12 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 12.0px 'Times New Roman'; min-height: 15.0px}p.p13 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 10.0px 'Times New Roman'}p.p14 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px 'Times New Roman'; min-height: 11.0px}p.p15 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px 'Times New Roman'}p.p16 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 10.0px Arial}p.p17 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 9.0px Arial}p.p18 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 10.0px Arial}p.p19 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Arial; min-height: 11.0px}p.p20 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 10.0px Arial; min-height: 11.0px}table.t1 {border-collapse: collapse}td.td1 {border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #cbcbcb #cbcbcb #cbcbcb #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td2 {background-color: #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #cbcbcb #cbcbcb #000000 #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td3 {background-color: #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #000000 #cbcbcb #000000 #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td4 {background-color: #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #cbcbcb #cbcbcb #cbcbcb #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td5 {border-style: solid; border-width: 1.0px 1.0px 0.8px 1.0px; border-color: #cbcbcb #cbcbcb #000000 #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td6 {border-style: solid; border-width: 0.8px 0.8px 0.8px 0.8px; border-color: #000000 #000000 #000000 #000000; padding: 0.0px 5.0px 0.0px 5.0px}td.td7 {border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #cbcbcb #cbcbcb #000000 #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td8 {border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #000000 #cbcbcb #000000 #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td9 {border-style: solid; border-width: 1.0px 0.8px 1.0px 1.0px; border-color: #000000 #000000 #cbcbcb #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td10 {border-style: solid; border-width: 1.0px 1.0px 1.0px 0.8px; border-color: #000000 #cbcbcb #cbcbcb #000000; padding: 0.0px 5.0px 0.0px 5.0px}td.td11 {border-style: solid; border-width: 1.0px 0.8px 1.0px 0.8px; border-color: #000000 #000000 #cbcbcb #000000; padding: 0.0px 5.0px 0.0px 5.0px}td.td12 {border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #000000 #cbcbcb #cbcbcb #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td13 {border-style: solid; border-width: 1.0px 0.8px 1.0px 1.0px; border-color: #cbcbcb #000000 #000000 #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td14 {border-style: solid; border-width: 1.0px 0.8px 1.0px 0.8px; border-color: #cbcbcb #000000 #000000 #000000; padding: 0.0px 5.0px 0.0px 5.0px}td.td15 {border-style: solid; border-width: 1.0px 1.0px 1.0px 0.8px; border-color: #cbcbcb #cbcbcb #000000 #000000; padding: 0.0px 5.0px 0.0px 5.0px}td.td16 {border-style: solid; border-width: 1.0px 0.8px 1.0px 1.0px; border-color: #000000 #000000 #000000 #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td17 {border-style: solid; border-width: 1.0px 0.8px 1.0px 0.8px; border-color: #000000 #000000 #000000 #000000; padding: 0.0px 5.0px 0.0px 5.0px}td.td18 {border-style: solid; border-width: 1.0px 1.0px 1.0px 0.8px; border-color: #000000 #cbcbcb #000000 #000000; padding: 0.0px 5.0px 0.0px 5.0px}</style><style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 10.0px 'Times New Roman'}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Arial}p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 10.0px 'Times New Roman'; min-height: 11.0px}p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 11.0px Arial; min-height: 12.0px}p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 12.0px Helvetica; min-height: 14.0px}p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 12.0px Helvetica}p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Arial; min-height: 14.0px}p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 11.0px Arial}p.p9 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 11.0px Arial; min-height: 12.0px}p.p10 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 12.0px 'Times New Roman'; min-height: 15.0px}p.p11 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 10.0px 'Times New Roman'; min-height: 11.0px}p.p12 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 12.0px 'Times New Roman'; min-height: 15.0px}p.p13 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 10.0px 'Times New Roman'}p.p14 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px 'Times New Roman'; min-height: 11.0px}p.p15 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px 'Times New Roman'}p.p16 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 10.0px Arial}p.p17 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 9.0px Arial}p.p18 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 10.0px Arial}p.p19 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Arial; min-height: 11.0px}p.p20 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 10.0px Arial; min-height: 11.0px}table.t1 {border-collapse: collapse}td.td1 {border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #cbcbcb #cbcbcb #cbcbcb #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td2 {background-color: #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #cbcbcb #cbcbcb #000000 #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td3 {background-color: #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #000000 #cbcbcb #000000 #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td4 {background-color: #000000; border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #cbcbcb #cbcbcb #cbcbcb #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td5 {border-style: solid; border-width: 1.0px 1.0px 0.8px 1.0px; border-color: #cbcbcb #cbcbcb #000000 #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td6 {border-style: solid; border-width: 0.8px 0.8px 0.8px 0.8px; border-color: #000000 #000000 #000000 #000000; padding: 0.0px 5.0px 0.0px 5.0px}td.td7 {border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #cbcbcb #cbcbcb #000000 #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td8 {border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #000000 #cbcbcb #000000 #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td9 {border-style: solid; border-width: 1.0px 0.8px 1.0px 1.0px; border-color: #000000 #000000 #cbcbcb #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td10 {border-style: solid; border-width: 1.0px 1.0px 1.0px 0.8px; border-color: #000000 #cbcbcb #cbcbcb #000000; padding: 0.0px 5.0px 0.0px 5.0px}td.td11 {border-style: solid; border-width: 1.0px 0.8px 1.0px 0.8px; border-color: #000000 #000000 #cbcbcb #000000; padding: 0.0px 5.0px 0.0px 5.0px}td.td12 {border-style: solid; border-width: 1.0px 1.0px 1.0px 1.0px; border-color: #000000 #cbcbcb #cbcbcb #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td13 {border-style: solid; border-width: 1.0px 0.8px 1.0px 1.0px; border-color: #cbcbcb #000000 #000000 #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td14 {border-style: solid; border-width: 1.0px 0.8px 1.0px 0.8px; border-color: #cbcbcb #000000 #000000 #000000; padding: 0.0px 5.0px 0.0px 5.0px}td.td15 {border-style: solid; border-width: 1.0px 1.0px 1.0px 0.8px; border-color: #cbcbcb #cbcbcb #000000 #000000; padding: 0.0px 5.0px 0.0px 5.0px}td.td16 {border-style: solid; border-width: 1.0px 0.8px 1.0px 1.0px; border-color: #000000 #000000 #000000 #cbcbcb; padding: 0.0px 5.0px 0.0px 5.0px}td.td17 {border-style: solid; border-width: 1.0px 0.8px 1.0px 0.8px; border-color: #000000 #000000 #000000 #000000; padding: 0.0px 5.0px 0.0px 5.0px}td.td18 {border-style: solid; border-width: 1.0px 1.0px 1.0px 0.8px; border-color: #000000 #cbcbcb #000000 #000000; padding: 0.0px 5.0px 0.0px 5.0px}</style>
Subcontractor:
















Month
Address:






Contract No.
XXXXX








Mar








Project Name:
Fossil Heritage Trail (Fossil)




































Quantity
Unit
Total


Previously
THIS
Original
Contract


Item #
Description
To-Date
Price
Earned


Earned


ESTIMATE
Quantity
Amount


10
Mobilization
1.00
500.00
500.00






500.00
4.00
2,000.00


30
Temporary Signs In Place
513.50
14.00
7,189.00






7,189.00
545.00
7,630.00


40
Temporary Barricades, Type II
39.00
45.00
1,755.00






1,755.00
24.00
1,080.00



<tbody>
</tbody>

<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Arial}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 10.0px Arial}p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 10.0px Arial}p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Arial; color: #4349aa }p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 10.0px Arial; color: #4349aa ; min-height: 11.0px}p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 10.0px Arial; color: #4349aa }table.t1 {border-collapse: collapse}td.td1 {border-style: solid; border-width: 1.5px 1.0px 1.5px 1.5px; border-color: #4349aa #cbcbcb #4349aa #4349aa ; padding: 0.0px 5.0px 0.0px 5.0px}td.td2 {border-style: solid; border-width: 1.5px 0.8px 1.5px 1.0px; border-color: #4349aa #4349aa #4349aa #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px}td.td3 {border-style: solid; border-width: 1.5px 1.0px 1.5px 1.0px; border-color: #4349aa #cbcbcb #4349aa #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px}td.td4 {border-style: solid; border-width: 1.5px 1.5px 1.5px 1.0px; border-color: #4349aa #4349aa #4349aa #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px}td.td5 {background-color: #d6d7ff ; border-style: solid; border-width: 0.8px 1.0px 0.8px 1.0px; border-color: #d6d7ff #cbcbcb #ffffff #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px}td.td6 {border-style: solid; border-width: 0.8px 0.8px 0.8px 1.0px; border-color: #d6d7ff #4349aa #d6d7ff #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px}td.td7 {border-style: solid; border-width: 0.8px 1.0px 0.8px 1.0px; border-color: #d6d7ff #cbcbcb #d6d7ff #cbcbcb ; padding: 0.0px 5.0px 0.0px 5.0px}</style>
 
Last edited:
Upvote 0
Kimberlie,

Thanks for posting the screenshots. :)

In the screenshot for Estimate, the values shown for Quantity to Date and Total Earned, don't appear to follow the description in your Original Post. Based on the OP, Quantity to Date should be the sum of Jan and Feb, which would be 0 for all Items. Please clarify.

Because the Estimate sheet will need to pull some data from sheet "Data Base" (Unit Price, Original Quantity), I'd suggest you have the Estimate sheet pull all data from Data Base and not reference Pivot Data at all. This is simpler, and it allows you to modify the PivotTable freely without affecting the Estimate sheet.

1. Will sheet Data Base always have just one row for each Item #?

2. On Estimate sheet, do you list all Item#'s from Data Base or just those that have earnings?
 
Upvote 0
Jerry,

In my original post, I entered the quantities under the billed months, to show scenarios of skipped months. I didn't realize the formatting changed after posting by deleting my spaces. You are correct that the sums for Jan and Feb would be 0. If I only had to get the sum totals, I'd be good to go.

The conundrum is when I have more complicated searches. One example for instance, is when I have quantities in March, July, and November only, and need to reprint the August statement. The search values result are for all 12 months in quantity to date, total earned, and previously earned, but thanks to your early help, "This Estimate" is the correct amount.

While I don't foresee any need to modify the Data Table, pulling from the Data Base worksheet is fine by me. It gets a bit tricky since all our active projects are in the Data Base worksheet, resulting in numerous duplications of bid item numbers and descriptions, and making for longer and more complicated formulas. With the Pivot Table isolating the items by project, I thought it would simplify the formulas for the statement worksheet. After creating it, I was delighted to discover all I had to do was change the project name in the pivot table to automatically update the statement.

In answer to your questions,

1. No, sheet Data Base has many duplicate rows of "Item #", and description, but that said, yes, there is only one row for each item #, per project #.

2. On the Estimate sheet, all Items are listed, regardless of previous, current, or total earnings, and all relevant data is shown, even if 0. Incidentally, I prefer 0s to show as blanks.

Kimberlie
 
Upvote 0
To simplify the complexity (and improve the speed) of formulas that pull data from Data Base, are you able to add a field to create a lookup key for the Job Number + Item#?

This would allow a simple Vlookup or Index-Match formulas to be used.


Excel 2016 (Windows) 32 bit
ABCDE
1KeyJob NumberProject NameBid Item NumberBid Item Desccription
215031|1015031Fossil Heritage Trail (Fossil)10Mobilization
315031|3015031Fossil Heritage Trail (Fossil)30Temporary Signs In Place
415031|4015031Fossil Heritage Trail (Fossil)40Temporary Barricades, Type II
515031|5015031Fossil Heritage Trail (Fossil)50Temporary Barricades, Type III
615031|8015031Fossil Heritage Trail (Fossil)80Temporary Type 1 Fence
715031|47015031Fossil Heritage Trail (Fossil)470Unit Pavers
815999|1015999Other Project10Mobilization
915999|3015999Other Project30Temporary Signs In Place
Data Base
Cell Formulas
RangeFormula
A2=B2&"|"&D2



The alternatives to adding this field include:

1. Using SUMIFS or Array formulas (slower) to read values from Data Base
2. Adding fields to the existing PivotTables for Unit Cost and Bid Qty.
3. Adding an additional PivotTable to allow the lookup of Unit Cost and Bid Qty from the Pivot Data sheet.
 
Last edited:
Upvote 0
Jerry,

Yes, not only am I able to add the field combining the job number with the item number, it was already done in column A. I have a hyphen, with no additional spaces, instead of the vertical, as in your example, is that alright? (=B3&"-"&D3)

My hat's off to you if you can make the formula work. I couldn't figure out how to make it work with skipped months of billings, or billings after the queried month.

Kimberlie
 
Upvote 0
Yes, a hyphen is fine. The main thing about picking a delimiter is to ensure that all possible keys will be unique. If your project numbers might have hyphens in them, you'd want to use something else.

A few more details, so you don't have to adjust the formulas for your specific ranges.

1. Are your headers on Data Base on row 2 or row 3?
2. I'd recommend using some named ranges to make the formulas simpler. Are you open to that, or would you prefer only range addresses be used?
3. Please clarify one more time the definitions of Quantity To-Date, Previously Earned, and This Estimate. This was a little unclear because there were no Prior Quantities, Jan, or Feb billings in the example screenshot.

This is my interpretation for a March statement, but parts of this don't align with your OP description.
Quantity To-Date: Qty for Prior Quantities, Jan, Feb, and Mar
Total Earned: Quantity to Date * Unit Price
Previously Earned: Qty for (Prior Quantities, Jan, Feb) * Unit Price
This Estimate: Total Earned-Previously Earned
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,062
Messages
6,122,923
Members
449,094
Latest member
teemeren

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