Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Pivot Tables, Calculated Fields, and variable denominator

I need to create a calculated field dividing the sum of one field by the
number of days in the month prior to the date in one of the data fields.

Mon PT

2/4/2008 26

I have tried =Sum(pt)/EOMonth(Mon,-1) and =Sum(pt)int(EOMonth(Mon,-1)) with
no results.

Is there a solution out there?

Thanks in advance
--
Jeff C
Live Well .. Be Happy In All You Do
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Pivot Tables, Calculated Fields, and variable denominator

Try this:

=PT/DAY(DATE(YEAR(Mon),MONTH(Mon),1)-1)

Jeff C wrote:
I need to create a calculated field dividing the sum of one field by the
number of days in the month prior to the date in one of the data fields.

Mon PT

2/4/2008 26

I have tried =Sum(pt)/EOMonth(Mon,-1) and =Sum(pt)int(EOMonth(Mon,-1)) with
no results.

Is there a solution out there?

Thanks in advance



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

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
Calculated Fields and Pivot Tables Mike Excel Worksheet Functions 1 May 8th 08 02:26 AM
Pivot Tables - how do I add in calculated fields? ColinS via OfficeKB.com Excel Worksheet Functions 0 April 6th 06 05:40 PM
Calculated Fields in Pivot Tables Pelham Excel Worksheet Functions 5 April 4th 06 01:05 PM
Calculated fields-Pivot tables Kim Excel Worksheet Functions 1 November 23rd 05 05:49 PM
Pivot Tables, calculated fields Excel GuRu Excel Discussion (Misc queries) 1 December 21st 04 12:08 AM


All times are GMT +1. The time now is 01:22 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"