ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Pivot Tables, Calculated Fields, and variable denominator (https://www.excelbanter.com/excel-discussion-misc-queries/192714-pivot-tables-calculated-fields-variable-denominator.html)

Jeff C

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

Debra Dalgleish

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



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com