#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default PIVOT %

I am stuck... I have tons of data as summarized below. I want to get 4 rows
for each customer. One Row will be the Sum of the NonUS, Next Row, Sum of
US, and then the next 2 rows % of the Revenue from US and NonUS for that
Customer.

I can get the first 2, it is the last 2 that is messing me up. Any ideas?

Cust# COUNTRY DATE REV
10756V NON-US 200807 10
10756V NON-US 200808 20
10756V NON-US 200801 10
10756V US 200709 20

--
Sunny FL
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default PIVOT %

what's up?

"Sunny FL" ...
I am stuck... I have tons of data as summarized below. I want to get 4 rows
for each customer. One Row will be the Sum of the NonUS, Next Row, Sum of
US, and then the next 2 rows % of the Revenue from US and NonUS for that
Customer.

I can get the first 2, it is the last 2 that is messing me up. Any ideas?

Cust# COUNTRY DATE REV
10756V NON-US 200807 10
10756V NON-US 200808 20
10756V NON-US 200801 10
10756V US 200709 20

--
Sunny FL



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default PIVOT %

Hi,

#1: =SUMIF(B2:B5,"Non-us",D2:D5)
#2: =SUMIF(B2:B5,"us",D2:D5)
#3: =#1/SUM(D2:D5)
#4: =1-#3

This assumes you data is in the range B2:D5. suppose #1 above is in cell G1
and G2 contains #2, then in G3 you could also use
=G1/SUM(D2:D5)
and in G4
=1-G3

--
Thanks,
Shane Devenshire


"Sunny FL" wrote:

I am stuck... I have tons of data as summarized below. I want to get 4 rows
for each customer. One Row will be the Sum of the NonUS, Next Row, Sum of
US, and then the next 2 rows % of the Revenue from US and NonUS for that
Customer.

I can get the first 2, it is the last 2 that is messing me up. Any ideas?

Cust# COUNTRY DATE REV
10756V NON-US 200807 10
10756V NON-US 200808 20
10756V NON-US 200801 10
10756V US 200709 20

--
Sunny FL

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default PIVOT %

Thanks for the advice, but i don't think that will work given the number of
customers I have (100s). I was wondering how to do it in a PIVOT table. It
seems logical to use the % of in the format, but I dont' know how to use the
BASE FIELDS etc.


--
Sunny FL


"ShaneDevenshire" wrote:

Hi,

#1: =SUMIF(B2:B5,"Non-us",D2:D5)
#2: =SUMIF(B2:B5,"us",D2:D5)
#3: =#1/SUM(D2:D5)
#4: =1-#3

This assumes you data is in the range B2:D5. suppose #1 above is in cell G1
and G2 contains #2, then in G3 you could also use
=G1/SUM(D2:D5)
and in G4
=1-G3

--
Thanks,
Shane Devenshire


"Sunny FL" wrote:

I am stuck... I have tons of data as summarized below. I want to get 4 rows
for each customer. One Row will be the Sum of the NonUS, Next Row, Sum of
US, and then the next 2 rows % of the Revenue from US and NonUS for that
Customer.

I can get the first 2, it is the last 2 that is messing me up. Any ideas?

Cust# COUNTRY DATE REV
10756V NON-US 200807 10
10756V NON-US 200808 20
10756V NON-US 200801 10
10756V US 200709 20

--
Sunny FL

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table Data Adding contents of two pivot tables and param que Roundy Excel Discussion (Misc queries) 0 July 2nd 07 10:20 PM
When refreshing pivot tables my pivot table chart type changes hannah220507 Excel Discussion (Misc queries) 1 May 22nd 07 02:57 PM
Average Calculations from Pivot Tables - Get Pivot Data? Calc Fiel westy Excel Worksheet Functions 5 March 10th 07 01:31 AM
Can links between Excel 2003 Pivot Charts and their pivot table b. Mark Allen Charts and Charting in Excel 2 March 5th 05 05:24 PM
How does the term 'pivot' apply to Excel's Pivot tables and Pivot. stvermont Excel Discussion (Misc queries) 1 February 17th 05 01:34 AM


All times are GMT +1. The time now is 01:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"