Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Percent of Total with a break 1

Status
Not open for further replies.

MSIsam

Programmer
Sep 29, 2003
173
US
Hi,

I have a data set that I would like to create a percent of total on. the hard part for me is to create this with a break.

The example below is a sample with territory number and units. The data is sorted by territory number (asc) then units (desc)

I can get the PctOf Ttl column by using
=SUM(B$2:B2)/SUM(B:B)
Does anyone know how to get the last column? I would prefer to not use VBA but beggers can't be choosers.
Code:
Terr Nbr   Units   PctOfTtl    [COLOR=red]PctOfTerr[/color]
006501       100      7.2%        29.4%
006501        90     13.7%        55.9%
006501        80     19.4%        79.4%
006501        70     24.5%       100.0%
006502       200     38.8%        19.0%
006502       190     52.5%        37.1%
006502       180     65.5%        54.3%
006502       170     77.7%        70.5%
006502       160     89.2%        85.7%
006502       150    100.0%       100.0%
Thanks in advance for any help on this,
Sam
 
Hi Sam,

In D2 enter:
=SUMIF(A$1:A2,A2,B$1:B2)/SUMIF(A:A,A2,B:B)
and copy down as far as needed.

Cheers

[MS MVP - Word]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top