Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Pivot table - grouping with formulas

I use a pivot table that is linked to data which I update weekly.
One of the fields I have is customer age.
This is the number of products a customer has bought from us in the
past.
If a customer has only bought one product in the past, we call them
sensitive.
If a customer has bought two products, he is semi-sensitive.
If they have bought 3 or more, we call them firm.
These 3 categories of customer ages we call Customer Sensitivity.

The customer age field in my data runs from 1 to 90.
I use the group function in the pivot table to group all sub ages from
3 to 90 and call them Firm.

This is where my problem begins.

If, on the following week, we now have a customer with a new age 91. I
now need to ungroup my Customer Sensitivity and regoup the firms to
include age 91.

Is it possible to use the formulas - calculated field or calculated
item - to enter something along the lines of...(if customer age2,
'Firm', (if customer age=2, 'Semi-sensitive','Sensitive'))

or something like that!
Many thanks in advance for any advice.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Pivot table - grouping with formulas

=IF([customer age]2,"Firm",IF([customer age]=2,"Semi-sensitive","Sensitive"))

Note the double quotation marks and note that you need two closing
parentheticals since you have a nested IF statement. [customer age] should
be replaced with the appropriate cell reference.

Dave
--
Brevity is the soul of wit.


"Owen" wrote:

I use a pivot table that is linked to data which I update weekly.
One of the fields I have is customer age.
This is the number of products a customer has bought from us in the
past.
If a customer has only bought one product in the past, we call them
sensitive.
If a customer has bought two products, he is semi-sensitive.
If they have bought 3 or more, we call them firm.
These 3 categories of customer ages we call Customer Sensitivity.

The customer age field in my data runs from 1 to 90.
I use the group function in the pivot table to group all sub ages from
3 to 90 and call them Firm.

This is where my problem begins.

If, on the following week, we now have a customer with a new age 91. I
now need to ungroup my Customer Sensitivity and regoup the firms to
include age 91.

Is it possible to use the formulas - calculated field or calculated
item - to enter something along the lines of...(if customer age2,
'Firm', (if customer age=2, 'Semi-sensitive','Sensitive'))

or something like that!
Many thanks in advance for any advice.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Pivot table - grouping with formulas

It occurs to me that, on re-reading your post, you're asking if you can do
the IF formula in the pivot table itself? I don't know that you can,
however, why can't you do the calculation in the source table you're using?

Dave
--
Brevity is the soul of wit.


"Owen" wrote:

I use a pivot table that is linked to data which I update weekly.
One of the fields I have is customer age.
This is the number of products a customer has bought from us in the
past.
If a customer has only bought one product in the past, we call them
sensitive.
If a customer has bought two products, he is semi-sensitive.
If they have bought 3 or more, we call them firm.
These 3 categories of customer ages we call Customer Sensitivity.

The customer age field in my data runs from 1 to 90.
I use the group function in the pivot table to group all sub ages from
3 to 90 and call them Firm.

This is where my problem begins.

If, on the following week, we now have a customer with a new age 91. I
now need to ungroup my Customer Sensitivity and regoup the firms to
include age 91.

Is it possible to use the formulas - calculated field or calculated
item - to enter something along the lines of...(if customer age2,
'Firm', (if customer age=2, 'Semi-sensitive','Sensitive'))

or something like that!
Many thanks in advance for any advice.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Pivot table - grouping with formulas

So is it not possible using the formulas function (beneath the group
function)?

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 grouping of data RichardMGreen Excel Discussion (Misc queries) 2 June 21st 06 05:35 AM
Grouping in Pivot Table Minerva Excel Worksheet Functions 2 January 11th 06 10:30 AM
How do you create formulas in pivot table eg simple division? Belinda_Tim Excel Worksheet Functions 2 January 5th 06 03:03 PM
pivot table created from another pivot table Kreed Excel Worksheet Functions 6 October 26th 05 04:16 PM
pivot table sort entries that don't yet appear in table rachael Excel Discussion (Misc queries) 11 September 19th 05 11:29 PM


All times are GMT +1. The time now is 10:58 AM.

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

About Us

"It's about Microsoft Excel"