If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Get Min & Max date from Pivot table field

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-28-10, 04:50
akhlaq768 akhlaq768 is offline
Registered User
 
Join Date: Oct 2007
Posts: 127
Get Min & Max date from Pivot table field

I have created a Pivot Table and one of the fields contains dates.

How do I take the Min and Max date from the pivot table but I just want to show the Min and Max date on a different cell.

So for example,

CELL A:1 contains ="Date Period from " + Min(startdate) + " to " + Max(startdate)

How do I get this working correctly?
Reply With Quote
  #2 (permalink)  
Old 01-28-10, 05:18
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
Hello,

Assuming StartDate is a named range, like this:

="Date Period from "&TEXT(MIN(StartDate),"dd mmm yy")&" to "&TEXT(MAX(StartDate), "dd mmm yy")



In Excel formulas you can't use the + operator to concatenate strings.
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
  #3 (permalink)  
Old 01-28-10, 05:32
akhlaq768 akhlaq768 is offline
Registered User
 
Join Date: Oct 2007
Posts: 127
doesn't seem to work, i get the following error...

#NAME?
Reply With Quote
  #4 (permalink)  
Old 01-28-10, 05:43
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
Hi,
In your example in post #1 you used "startdate". I assumed that this was a named range (I mentioned that in my post).
If it isn't a named range, try using a range reference:

="Date Period from "&TEXT(MIN(C3:C10),"dd mmm yy")&" to "&TEXT(MAX(C3:C10), "dd mmm yy")

Adjust C3:C10 as necessary.

Hope that helps...
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
  #5 (permalink)  
Old 01-28-10, 11:10
akhlaq768 akhlaq768 is offline
Registered User
 
Join Date: Oct 2007
Posts: 127
thanks works perfectly
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On