LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default How I can set dynamic pivot table ONLY when I have enough data point

Hi,

I'm trying to create a dynamic range of pivot table chart, only when I have enough data point. For example, My column A is Date, column B is return. If I have less than 13 months of return, I don't want the pivot table chart to be created. Once I have more than 13 data point, then I want the pivot table chart populated. I have set a column name by using the range like below:

=OFFSET(Sheet1!$A$1,0,0,IF(COUNTA(Sheet1!$A$2:$A$2 3)<13,2,COUNTA(Sheet1!$A$2:$A$23)+1),2)

But it will still show the pivot table and chart if I have less than 13 data points. Is there a way to achieve my goal through macro?

Thanks,
Vincent
 
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
Sum to a mid point in a dynamic table raith99 Excel Discussion (Misc queries) 2 May 11th 13 12:21 AM
Source data for pivot table to point to cell on worksheet? J.W. Aldridge Excel Programming 0 March 21st 08 04:50 PM
vlookup data in a dynamic pivot table? MikeM Excel Worksheet Functions 4 January 2nd 06 10:00 PM
pivot table with dynamic base data bb Charts and Charting in Excel 2 June 13th 05 04:16 PM
Pivot Table & Dynamic data Sophism Excel Programming 1 September 3rd 04 01:00 PM


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