Extract the require data from Sheet1 to Sheet2 (Total Consumption For an Item for a period in Sheet1 For Several Items) in another sheet2 get in deta

abuharvey

New Member
Joined
Mar 7, 2015
Messages
32
Office Version
  1. 365
Dear Genius, I need a solution for this

Lookup value in Sheet2 Cell B2, Goto the Sheet1 Match the Value in Row 1 From Cell G1 to Cell O1, Find The total Consumed Qty, and Find the Duration in Column P And Q Bring into Sheet2 Spread the Qty in the timeline starts from D1 Our Formula should be Stat from Sheet2 Cell D2

This Data in Sheet1

$G$1$H$1$I$1$J$1$K$1$L$1$M$1$N$1$O$1$P$1$Q$1
BricksCementStone aggregate 20mmStone aggregate 10mmSandFine SandMasonHelperW-HelperPlanned StartPlanned Finish
44,460.00 8.55 - - - 24.08 64.80 18.00 123.3016-Oct-2421-Oct-24
74,100.00 9.38 - - - 40.13108.00 30.00 205.5019-Oct-2425-Oct-24
- 34.16 35.84 11.7623.80 - 9.52112.00 77.2822-Oct-2424-Oct-24
- 6.81 - - - 19.18 83.42 93.38 114.5426-Oct-2424-Nov-24

In Sheet2 I need this results



Sl.No.Material DescriptionUnit10-10-202411-10-202412-10-202413-10-202414-10-202415-10-202416-10-202417-10-202418-10-202419-10-202420-10-202421-10-202422-10-202423-10-202424-10-202425-10-202426-10-2024
1BricksNos 7,410.00 7,410.00 7,410.00 18,278.00 18,278.00 18,278.00 10,868.00 10,868.00 10,868.00 8,892.00
2CementBag
3Stone aggregate 20mmCum
4Stone aggregate 10mmCum
5SandCum
6Fine SandCum
7MasonDay
8HelperDay
9W-HelperDay
I need Formula For this Statement

Thanks In Advance
 

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,)
In your example,
The bricks of 44,460 divided by 6 is equal to 7,410 and you distribute it over 6 days. But I don't understand why the bricks of 74,100 divided by 7 is equal to 10585.71, but the amount you distribute is another value and on the last day you put another value.

1729334990690.png
If it is an error in your example, then the result should be like this.

First on sheet1. Help me with an auxiliary column with the formula =Q2-P2+1 cells R2 to R5:
Dante Amor
GHIJKLMNOPQR
1BricksCementStone aggregate 20mmStone aggregate 10mmSandFine SandMasonHelperW-HelperPlanned StartPlanned FinishDays (help column)
244,460.008.550.000.000.0024.0864.8018.00123.3016/10/202421/10/20246
374,100.009.380.000.000.0040.13108.0030.00205.5019/10/202425/10/20247
40.0034.1635.8411.7623.800.009.52112.0077.2822/10/202424/10/20243
50.006.810.000.000.0019.1883.4293.38114.5426/10/202424/11/202430
6118,560.0058.9035.8411.7623.8083.39265.74253.38520.62119,813.43
Sheet1
Cell Formulas
RangeFormula
G6:O6G6=SUM(G2:G5)
R2:R5R2=Q2-P2+1
R6R6=SUM(G6:O6)

Note: I only put the totals to check the results.

On Sheet2:
Cell Formulas
RangeFormula
D2:AW10D2=SUMPRODUCT(((Sheet1!$G$1:$O$1=$B2)*(Sheet1!$P$2:$P$5<=D$1)*(Sheet1!$Q$2:$Q$5>=D$1)*(Sheet1!$G$2:$O$5/Sheet1!$R$2:$R$5)))
AX2:AX11AX2=SUM(D2:AW2)
AW11,D11:T11D11=SUM(D2:D10)

Note: I only put the totals to check the results.
You can verify that the sum of the distributed 119,813.43 is equal to the original sum.

----- --
Let me know the result and I'll get back to you as soon as I can.
Sincerely
Dante Amor
----- --
 
Last edited:
Upvote 1
Solution
In your example,
The bricks of 44,460 divided by 6 is equal to 7,410 and you distribute it over 6 days. But I don't understand why the bricks of 74,100 divided by 7 is equal to 10585.71, but the amount you distribute is another value and on the last day you put another value.

If it is an error in your example, then the result should be like this.

First on sheet1. Help me with an auxiliary column with the formula =Q2-P2+1 cells R2 to R5:
Dante Amor
GHIJKLMNOPQR
1BricksCementStone aggregate 20mmStone aggregate 10mmSandFine SandMasonHelperW-HelperPlanned StartPlanned FinishDays (help column)
244,460.008.550.000.000.0024.0864.8018.00123.3016/10/202421/10/20246
374,100.009.380.000.000.0040.13108.0030.00205.5019/10/202425/10/20247
40.0034.1635.8411.7623.800.009.52112.0077.2822/10/202424/10/20243
50.006.810.000.000.0019.1883.4293.38114.5426/10/202424/11/202430
6118,560.0058.9035.8411.7623.8083.39265.74253.38520.62119,813.43
Sheet1
Cell Formulas
RangeFormula
G6:O6G6=SUM(G2:G5)
R2:R5R2=Q2-P2+1
R6R6=SUM(G6:O6)

Note: I only put the totals to check the results.

On Sheet2:
Cell Formulas
RangeFormula
D2:AW10D2=SUMPRODUCT(((Sheet1!$G$1:$O$1=$B2)*(Sheet1!$P$2:$P$5<=D$1)*(Sheet1!$Q$2:$Q$5>=D$1)*(Sheet1!$G$2:$O$5/Sheet1!$R$2:$R$5)))
AX2:AX11AX2=SUM(D2:AW2)
AW11,D11:T11D11=SUM(D2:D10)

Note: I only put the totals to check the results.
You can verify that the sum of the distributed 119,813.43 is equal to the original sum.

----- --
Let me know the result and I'll get back to you as soon as I can.
Sincerely
Dante Amor
----- --
 

Attachments

  • Screenshot 2024-10-21 142551.png
    Screenshot 2024-10-21 142551.png
    84 KB · Views: 1
Upvote 0
This is the original Data from this data I Create Sheet1 and Sheet2 to simplify this sheet I need the formula
 
Upvote 0
In your example,
The bricks of 44,460 divided by 6 is equal to 7,410 and you distribute it over 6 days. But I don't understand why the bricks of 74,100 divided by 7 is equal to 10585.71, but the amount you distribute is another value and on the last day you put another value.

If it is an error in your example, then the result should be like this.

First on sheet1. Help me with an auxiliary column with the formula =Q2-P2+1 cells R2 to R5:
Dante Amor
GHIJKLMNOPQR
1BricksCementStone aggregate 20mmStone aggregate 10mmSandFine SandMasonHelperW-HelperPlanned StartPlanned FinishDays (help column)
244,460.008.550.000.000.0024.0864.8018.00123.3016/10/202421/10/20246
374,100.009.380.000.000.0040.13108.0030.00205.5019/10/202425/10/20247
40.0034.1635.8411.7623.800.009.52112.0077.2822/10/202424/10/20243
50.006.810.000.000.0019.1883.4293.38114.5426/10/202424/11/202430
6118,560.0058.9035.8411.7623.8083.39265.74253.38520.62119,813.43
Sheet1
Cell Formulas
RangeFormula
G6:O6G6=SUM(G2:G5)
R2:R5R2=Q2-P2+1
R6R6=SUM(G6:O6)

Note: I only put the totals to check the results.

On Sheet2:
Cell Formulas
RangeFormula
D2:AW10D2=SUMPRODUCT(((Sheet1!$G$1:$O$1=$B2)*(Sheet1!$P$2:$P$5<=D$1)*(Sheet1!$Q$2:$Q$5>=D$1)*(Sheet1!$G$2:$O$5/Sheet1!$R$2:$R$5)))
AX2:AX11AX2=SUM(D2:AW2)
AW11,D11:T11D11=SUM(D2:D10)

Note: I only put the totals to check the results.
You can verify that the sum of the distributed 119,813.43 is equal to the original sum.

----- --
Let me know the result and I'll get back to you as soon as I can.
Sincerely
Dante Amor
----- --
Sir You are Great As Per your Instruction its working well, Actually the explanation which I given is wrong here is the detail working of my excel sheet screen shot I have attached from this basic data I have created Sheet1 and the Sheet2 is only material extract only hope you understand, thanks genius.. how i can upload mini sheet please explain
 

Attachments

  • Screenshot 2024-10-21 142551.png
    Screenshot 2024-10-21 142551.png
    84 KB · Views: 0
Upvote 0
Why 74100 Bricks are divided as 10868 for 6 days and remaining 8892 for 7th day.
Sir This is the original working data Excel Sheet From this I came to Sheet1 and Sheet2, Only I need the Material Requirements as Abstract in one sheet, thanks Genius ...
 

Attachments

  • Screenshot 2024-10-21 142551.png
    Screenshot 2024-10-21 142551.png
    84 KB · Views: 0
Upvote 0
Why 74100 Bricks are divided as 10868 for 6 days and remaining 8892 for 7th day.

Sl NoDescription of workMaterial And ManpowerBOQ QTYUnitPerday OutputDurationUnit/PerUnitRateStart DateFinish Date15-10-202416-10-202417-10-202418-10-202419-10-202420-10-202421-10-202422-10-202423-10-202424-10-202425-10-202426-10-202427-10-202428-10-2024T.Qty
1Brick Work CM 1:4Bricks90M315 6.00 494Nos2.916-Oct-2421-Oct-24 - 7,410.00 7,410.00 7,410.00 7,410.00 7,410.00 7,410.00 - - - - - - - 44,460.00
2Brick Work CM 1:4Cement150M322 7.00 0.095tonne500016-Oct-2422-Oct-24 - 2.09 2.09 2.09 2.09 2.09 2.09 1.71 - - - - - - 14.25
3Brick Work CM 1:4Fine Sand96M312 8.00 0.2675cum112016-Oct-2423-Oct-24 - 3.21 3.21 3.21 3.21 3.21 3.21 3.21 3.21 - - - - - 25.68
4Brick Work CM 1:4Mason96M312 8.00 0.72Day30116-Oct-2423-Oct-24 - 8.64 8.64 8.64 8.64 8.64 8.64 8.64 8.64 - - - - - 69.12
5Brick Work CM 1:4Helper96M312 8.00 0.2Day26016-Oct-2423-Oct-24 - 2.40 2.40 2.40 2.40 2.40 2.40 2.40 2.40 - - - - - 19.20
6Brick Work CM 1:4W-Helper96M312 8.00 1.37Day24716-Oct-2423-Oct-24 - 16.44 16.44 16.44 16.44 16.44 16.44 16.44 16.44 - - - - - 131.52
7Brick Work CM 1:6Bricks118M312 10.00 494Nos2.919-Oct-2428-Oct-24 - - - - 5,928.00 5,928.00 5,928.00 5,928.00 5,928.00 5,928.00 5,928.00 5,928.00 5,928.00 4,940.00 58,292.00
8Brick Work CM 1:6Cement118M312 10.00 0.0625tonne500019-Oct-2428-Oct-24 - - - - 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.75 0.63 7.38
9Brick Work CM 1:6Fine Sand118M312 10.00 0.2675cum112019-Oct-2428-Oct-24 - - - - 3.21 3.21 3.21 3.21 3.21 3.21 3.21 3.21 3.21 2.68 31.57
10Brick Work CM 1:6Mason118M312 10.00 0.72Day30119-Oct-2428-Oct-24 - - - - 8.64 8.64 8.64 8.64 8.64 8.64 8.64 8.64 8.64 7.20 84.96
11Brick Work CM 1:6Helper118M312 10.00 0.2Day26019-Oct-2428-Oct-24 - - - - 2.40 2.40 2.40 2.40 2.40 2.40 2.40 2.40 2.40 2.00 23.60
12Brick Work CM 1:6W-Helper118M312 10.00 1.37Day24719-Oct-2428-Oct-24 - - - - 16.44 16.44 16.44 16.44 16.44 16.44 16.44 16.44 16.44 13.70 161.66
13RCC 1:2:4Stone aggregate 20mm207M335 6.00 0.67cum105022-Oct-2427-Oct-24 - - - - - - - 23.45 23.45 23.45 23.45 23.45 21.44 - 138.69
14RCC 1:2:4Stone aggregate 10mm207M335 6.00 0.22cum105022-Oct-2427-Oct-24 - - - - - - - 7.70 7.70 7.70 7.70 7.70 7.04 - 45.54
15RCC 1:2:4Sand207M335 6.00 0.445cum112022-Oct-2427-Oct-24 - - - - - - - 15.58 15.58 15.58 15.58 15.58 14.24 - 92.12
16RCC 1:2:4Cement207M335 6.00 0.32tonne500022-Oct-2427-Oct-24 - - - - - - - 11.20 11.20 11.20 11.20 11.20 10.24 - 66.24
17RCC 1:2:4Mason207M335 6.00 0.17Day28722-Oct-2427-Oct-24 - - - - - - - 5.95 5.95 5.95 5.95 5.95 5.44 - 35.19
18RCC 1:2:4Helper207M335 6.00 2Day24722-Oct-2427-Oct-24 - - - - - - - 70.00 70.00 70.00 70.00 70.00 64.00 - 414.00
19RCC 1:2:4W-Helper207M335 6.00 0.9Day26022-Oct-2427-Oct-24 - - - - - - - 31.50 31.50 31.50 31.50 31.50 28.80 - 186.30
20RCC 1:2:4Mixer207M335 6.00 0.07Day80022-Oct-2427-Oct-24 - - - - - - - 2.45 2.45 2.45 2.45 2.45 2.24 - 14.49
21RCC 1:2:4Vibrator207M335 6.00 0.07Day30022-Oct-2427-Oct-24 - - - - - - - 2.45 2.45 2.45 2.45 2.45 2.24 - 14.49


Sir this is the data from this I take data to sheet1 and in sheet i need Material Abstract
 
Upvote 0
In your example,
The bricks of 44,460 divided by 6 is equal to 7,410 and you distribute it over 6 days. But I don't understand why the bricks of 74,100 divided by 7 is equal to 10585.71, but the amount you distribute is another value and on the last day you put another value.

If it is an error in your example, then the result should be like this.

First on sheet1. Help me with an auxiliary column with the formula =Q2-P2+1 cells R2 to R5:
Dante Amor
GHIJKLMNOPQR
1BricksCementStone aggregate 20mmStone aggregate 10mmSandFine SandMasonHelperW-HelperPlanned StartPlanned FinishDays (help column)
244,460.008.550.000.000.0024.0864.8018.00123.3016/10/202421/10/20246
374,100.009.380.000.000.0040.13108.0030.00205.5019/10/202425/10/20247
40.0034.1635.8411.7623.800.009.52112.0077.2822/10/202424/10/20243
50.006.810.000.000.0019.1883.4293.38114.5426/10/202424/11/202430
6118,560.0058.9035.8411.7623.8083.39265.74253.38520.62119,813.43
Sheet1
Cell Formulas
RangeFormula
G6:O6G6=SUM(G2:G5)
R2:R5R2=Q2-P2+1
R6R6=SUM(G6:O6)

Note: I only put the totals to check the results.

On Sheet2:
Cell Formulas
RangeFormula
D2:AW10D2=SUMPRODUCT(((Sheet1!$G$1:$O$1=$B2)*(Sheet1!$P$2:$P$5<=D$1)*(Sheet1!$Q$2:$Q$5>=D$1)*(Sheet1!$G$2:$O$5/Sheet1!$R$2:$R$5)))
AX2:AX11AX2=SUM(D2:AW2)
AW11,D11:T11D11=SUM(D2:D10)

Note: I only put the totals to check the results.
You can verify that the sum of the distributed 119,813.43 is equal to the original sum.

----- --
Let me know the result and I'll get back to you as soon as I can.
Sincerely
Dante Amor
----- --
Dear Genius, as per your assumption its working perfect, I have not given my perfect requirement. Here with this I have attached My master sheet as Screen shot, From this sheet I need to extract Material requirement Abstract as per the timeline
 

Attachments

  • Screenshot 2024-10-21 142551.png
    Screenshot 2024-10-21 142551.png
    84 KB · Views: 3
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,130
Members
453,021
Latest member
Justyna P

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