Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 287
Default Pivot table calculate field

Hi All,

I have a source of data formatted as below:

Retailer No. | Desc. | Value
004 | Total hours | 5000
004 | Retail hours | 2500
009 | Total hours | 6000
009 | Retail hours | 3000

I have a pivot table looking at this data source and I want to include a
field that performs the calculation '= [Retail hours]/[Total hours]'
unfortunately only the field 'Desc' is shown as a title in the pivot table to
I cant do calculate field as the data isnt setup that way.

Does anyone know a way to do what i need?

Many Thanks
--
Adam
-----------
Windows XP + Office Pro XP
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 56
Default Pivot table calculate field

Adam wrote:
Hi All,

I have a source of data formatted as below:

Retailer No. | Desc. | Value
004 | Total hours | 5000
004 | Retail hours | 2500
009 | Total hours | 6000
009 | Retail hours | 3000

I have a pivot table looking at this data source and I want to include a
field that performs the calculation '= [Retail hours]/[Total hours]'
unfortunately only the field 'Desc' is shown as a title in the pivot table to
I cant do calculate field as the data isnt setup that way.

Does anyone know a way to do what i need?


You need to reorganize your data
Retailer | TotalHr| RetailHr
004 | 5000 | 2500
009 | 6000 | 3000


If Total hours and Retail hours is all you have got, you can do an
autofilter and use that to first get all of the first (with the
retailers) then the second (with the retailers) and paste them next to
each other:

Retailer | value | Retailer|Value
004 | 5000 | 004 |2500
009 | 6000 | 009 |3000

Chech if the retails are the same on each line
Remove the second column retailer and rename the other columns

If this is possible will depend on how the rest of you data is put
together (and how much it is).

You could use conditional formatting to see if the first is the same as
the second. That should help you determine extremely fast if there are
differences or not on a glance.

houghi
--
At the source of every error which is blamed on the computer you will
find at least two human errors, including the error of blaming it on
the computer.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Pivot table calculate field

When you create your pivottable, are you dragging the Retailer number to the row
field and the desc to the column field and the Value to the data field?

Then can you add the calculated field?

Adam wrote:

Hi All,

I have a source of data formatted as below:

Retailer No. | Desc. | Value
004 | Total hours | 5000
004 | Retail hours | 2500
009 | Total hours | 6000
009 | Retail hours | 3000

I have a pivot table looking at this data source and I want to include a
field that performs the calculation '= [Retail hours]/[Total hours]'
unfortunately only the field 'Desc' is shown as a title in the pivot table to
I cant do calculate field as the data isnt setup that way.

Does anyone know a way to do what i need?

Many Thanks
--
Adam
-----------
Windows XP + Office Pro XP


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default Pivot table calculate field

Here is Dave's excellent suggestion
in pictures:
http://www.freefilehosting.net/download/3d59a
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
sum a pivot table field as a calulated field Jerome Excel Discussion (Misc queries) 0 January 4th 08 02:24 PM
Pivot Tables - calculate field? JuniorPivot Excel Discussion (Misc queries) 2 November 13th 07 11:49 PM
Pivit table- cell on spread sheet referencing pivot table field David M Charts and Charting in Excel 2 August 18th 07 07:46 PM
How to make a field created a part of the Pivot Table Field List? drhell Excel Discussion (Misc queries) 0 January 29th 07 11:13 PM
How can I calculate a percentage of a YES/NO field in a Pivot Tab Robert Mitchell Charts and Charting in Excel 2 August 6th 05 02:01 PM


All times are GMT +1. The time now is 08:35 AM.

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"