Distribution of Excel via formula

love88king

New Member
Joined
Aug 26, 2014
Messages
5
can any one help me please with my excel sheet below, i want to distribute the original table (Disc) to be as Distribution on the invoices as :


[TABLE="width: 595"]
<tbody>[TR]
[TD="colspan: 4"]Original[/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 4"]Distribution[/TD]
[/TR]
[TR]
[TD]Date[/TD]
[TD]Name[/TD]
[TD]InvNo[/TD]
[TD]Disc[/TD]
[TD][/TD]
[TD][/TD]
[TD]Date[/TD]
[TD]Name[/TD]
[TD]InvNo[/TD]
[TD]Disc[/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]DAM[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]DAM[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]DAM[/TD]
[TD]2[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]DAM[/TD]
[TD]2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]DAM[/TD]
[TD]3[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]DAM[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]DAM[/TD]
[TD]9[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]DAM[/TD]
[TD]9[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]HO[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]HO[/TD]
[TD]1[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]HO[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD][/TD]
[TD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[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]HO[/TD]
[TD]7[/TD]
[TD]49.5[/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]HO[/TD]
[TD]7[/TD]
[TD]99[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]HO[/TD]
[TD]7[/TD]
[TD]49.5[/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]HO[/TD]
[TD]8[/TD]
[TD]443[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]HO[/TD]
[TD]8[/TD]
[TD]443[/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]HO[/TD]
[TD]9[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]HO[/TD]
[TD]9[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED03[/TD]
[TD]14[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED03[/TD]
[TD]14[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED03[/TD]
[TD]15[/TD]
[TD]780[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED03[/TD]
[TD]15[/TD]
[TD]390[/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED03[/TD]
[TD]15[/TD]
[TD]780[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED03[/TD]
[TD]15[/TD]
[TD]390[/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED03[/TD]
[TD]16[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED03[/TD]
[TD]16[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]5[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]5[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD]8153[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD] 627.15 [/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD]8153[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD] 627.15 [/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD]8153[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD] 627.15 [/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD]8153[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD] 627.15 [/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD]8153[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD] 627.15 [/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD]8153[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD] 627.15 [/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD]8153[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD] 627.15 [/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD]8153[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD] 627.15 [/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD]8153[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD] 627.15 [/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD]8153[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD] 627.15 [/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD]8153[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD] 627.15 [/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD]8153[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD] 627.15 [/TD]
[/TR]
[TR]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD]8153[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/01/2014[/TD]
[TD]JED04[/TD]
[TD]6[/TD]
[TD] 627.15 [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
assuming date is column a, name column b etc, you can add a column after column d (disc) and enter this formula & paste down
=D2/COUNTIFS(B:B,H2,C:C,I2)
 
Upvote 0

Forum statistics

Threads
1,224,884
Messages
6,181,555
Members
453,053
Latest member
Kiranm13

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