Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gai Gai is offline
external usenet poster
 
Posts: 16
Default grouping using a automated day field in a pivot table

I have a excel database that I am using for a pivot table which has an
automated day of the week field in it. I have a formula in Column B for the
day of the week which is worked out by the date in Column A. Formulas I have
tried in Column B have been =if(A10,weekday(A1,2),"") and if(A10,A1,"")
[with B1 being just formatted as a "dddd" date format. Both of these are
showing OK in the column but when used in the pivot table and I try and group
and total on day of the week, then excel is still seeing it as a date (ie
grouping on 15/2/2007,16/2/2007 etc).

Does anyone know how to get a pivot table to group and total on day of the
week, or do I have to enter the data in manually in the database?

Any help much appreciated.
Regards
--
Gai
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,979
Default grouping using a automated day field in a pivot table

Formatting doesn't change the underlying value, so the date is still
what's being used in the pivot table. Instead, you could use the TEXT
function to calculate the day:

=IF(A2="","",TEXT(A2,"dddd"))

Gai wrote:
I have a excel database that I am using for a pivot table which has an
automated day of the week field in it. I have a formula in Column B for the
day of the week which is worked out by the date in Column A. Formulas I have
tried in Column B have been =if(A10,weekday(A1,2),"") and if(A10,A1,"")
[with B1 being just formatted as a "dddd" date format. Both of these are
showing OK in the column but when used in the pivot table and I try and group
and total on day of the week, then excel is still seeing it as a date (ie
grouping on 15/2/2007,16/2/2007 etc).

Does anyone know how to get a pivot table to group and total on day of the
week, or do I have to enter the data in manually in the database?

Any help much appreciated.
Regards



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gai Gai is offline
external usenet poster
 
Posts: 16
Default grouping using a automated day field in a pivot table

Thanks!!! That works a treat!
--
Gai


"Debra Dalgleish" wrote:

Formatting doesn't change the underlying value, so the date is still
what's being used in the pivot table. Instead, you could use the TEXT
function to calculate the day:

=IF(A2="","",TEXT(A2,"dddd"))

Gai wrote:
I have a excel database that I am using for a pivot table which has an
automated day of the week field in it. I have a formula in Column B for the
day of the week which is worked out by the date in Column A. Formulas I have
tried in Column B have been =if(A10,weekday(A1,2),"") and if(A10,A1,"")
[with B1 being just formatted as a "dddd" date format. Both of these are
showing OK in the column but when used in the pivot table and I try and group
and total on day of the week, then excel is still seeing it as a date (ie
grouping on 15/2/2007,16/2/2007 etc).

Does anyone know how to get a pivot table to group and total on day of the
week, or do I have to enter the data in manually in the database?

Any help much appreciated.
Regards



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,979
Default grouping using a automated day field in a pivot table

You're welcome! Thanks for letting me know that it worked.

Gai wrote:
Thanks!!! That works a treat!



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

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
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
Automated Page Breaks In Pivot Table Teb Excel Discussion (Misc queries) 1 January 2nd 07 09:47 PM
Grouping a data field in a pivot table mercedes Excel Discussion (Misc queries) 4 December 11th 06 07:20 PM
Pivot Table Grouping or Calculated Field DCSwearingen Excel Discussion (Misc queries) 2 July 17th 06 04:36 PM
grouping field in pivot table! via135 Excel Worksheet Functions 3 February 9th 06 12:24 AM


All times are GMT +1. The time now is 04:56 PM.

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"