Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-30-2012, 06:27 PM
56_kruiser 56_kruiser is offline Can't figure out calculated field Windows 7 64bit Can't figure out calculated field Office 2010 64bit
Novice
Can't figure out calculated field
 
Join Date: Nov 2012
Posts: 26
56_kruiser is on a distinguished road
Default Can't figure out calculated field

Below is a print screen of a pivot table with 3 columns:
  1. First column is 'Open Date'
  2. Column 2 is 'Closed Date'
  3. Column 3 is the number of days betrween the two, as a calculated field: =datedif('Open Date','Closed Date',"d")

Here is a pic:



JFYI...the only place I am allowed by Excel to put the calculated field is in the sigma box (values).

What I want to do is Group the open date (month). Then I want an average of the open days for that month. I'm having problems coming up with the calculated field that will work.



I have added a column to the data for testing purposes that contains the date difference for each date. I have that displayed in a picture here, after grouping on Open Date by month:



What you will see is that the third colum, which is the calculated filed per item 3 above, now has very large numbers, which are summed. The second column shows the actual days difference between the two. I would think that column 3 should be the total of those 5 days for January, but obviously it is not. If the third column was the total, I would expect to change it to average instead of sum in the sigma field, but changing it to average makes zero difference; even if it did make a difference, it would be wrong, as that the number in that field is obviously much higher than the total of the date difference of the 5 days in January .

So I definitely have something to learn here. Hoping someone can help.
Reply With Quote
  #2  
Old 12-02-2012, 12:20 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Can't figure out calculated field Windows 7 64bit Can't figure out calculated field Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,943
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Could you please post a sheet containing sample of your data ?
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 12-02-2012, 03:50 PM
56_kruiser 56_kruiser is offline Can't figure out calculated field Windows 7 64bit Can't figure out calculated field Office 2010 64bit
Novice
Can't figure out calculated field
 
Join Date: Nov 2012
Posts: 26
56_kruiser is on a distinguished road
Default

Quote:
Originally Posted by Pecoflyer View Post
Could you please post a sheet containing sample of your data ?
Sure, fiel is attached. First tab is date; 2nd tab is data as per first print screen; 3rd tab is data as tab in 2nd print screen.

I have notes in the file that hopefulluy explains what I am trying to do.

Appreciate yoru input.
Attached Files
File Type: xlsx Example.xlsx (263.5 KB, 10 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Pivot Table Calculated Field BertLady Excel 0 05-21-2012 10:51 AM
Can't figure out calculated field Add _ based on a calculated colums stovaaa Excel 4 03-09-2012 08:32 AM
Can't figure out calculated field Calculated Field is disabled MariaAdc Excel 1 03-01-2011 02:44 AM
Can't figure out calculated field Calculated dates. Ziggy-R Word 10 09-28-2010 01:42 AM
Using calculated field - WHY IS IT SO COMPLICATED? Riorin Word 0 10-30-2009 12:20 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:11 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft