Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2007

Tip: Looking for answers? Try searching our database.

Dynamic 12 months data on the chart

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tan - 07 Apr 2007 08:08 GMT
Hi All,

I have the following data on worksheet 5 for example and is arranged like
this:

Date        ...........Nov'06    Dec'06     Jan'07     Feb'07     Mar'07    
Apr'07    May'07
Prod A     ...........1000       1000       1000       1000       1000      
 blank     blank
Prod B     ...........1000       1000       1000       1000       1000      
 blank     blank
Prod C     ...........1000       1000       1000       1000       1000      
 blank     blank
Total Sales          3000       3000      3000        3000       3000        
0            0

The cell under Apr'07, May'07, Jun'07 ...etc in the Total Sales row carries
a summation formula to total up the units sold for the 3 products. It shows
zero becos its a new month for Apr'07, May'07, Jun'07...etc and no units sold
are recorded as yet. Indeed, summation formula are created in the Total Sales
row from Apr'07 onwards till say year 2010 as end users dont want to put in
the summation formula themselves after they had input sales units for the new
month for Product A, B, and C.

I have also created 2 named range, called DATE and SALES.

DATE refers to
'=OFFSET(Sheet5!$A$22,0,(COUNTA(Sheet5!$23:$23)-12),1,(COUNTA(Sheet5!$23:$23)-(COUNTA(Sheet5!$23:$23)-13))-1)'

SALES refers to
'=OFFSET(Sheet5!$A$23,0,(COUNTA(Sheet5!$23:$23)-12),1,(COUNTA(Sheet5!$23:$23)-(COUNTA(Sheet5!$23:$23)-13))-1)'

The rational behind these 2 formula is to detect the last cell (latest input
by end user) which carries a figure under the Total Sales row and then offset
up to pick the month in order to refer in the chart.

The problem here is how to ignore those subtotal formula cell that shows
zero from Apr'07 onwards.

Thanks.
Tan - 07 Apr 2007 08:28 GMT
Sorry i have left out something to clarify. In my excel file, row 22 is my
Date and row 23 is my Total Sales. The rows for Prod A, Prod B, and Prod C
have been placed another range in another sheet. Thats where row 22 and 23
appears in my 2 named range SALES and DATE.

> Hi All,
>
[quoted text clipped - 36 lines]
>
> Thanks.
Barb Reinhardt - 07 Apr 2007 13:32 GMT
If you don't want to display 0 for a total that doesn't yet exist, try
something like this

=if(sum(A1:A10)=0,NA(),sum(a1:A10))

Values that are NA() are not displayed in charts.

> Sorry i have left out something to clarify. In my excel file, row 22 is my
> Date and row 23 is my Total Sales. The rows for Prod A, Prod B, and Prod C
[quoted text clipped - 41 lines]
> >
> > Thanks.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.