PC Review


Reply
Thread Tools Rate Thread

how do i update a chart area automatically

 
 
=?Utf-8?B?S2F5?=
Guest
Posts: n/a
 
      30th Jan 2006
Hello,

I have an offset formula I use to update a chart plotted by columns. I name
the ranges and change the range areas to the offset formula...something like
this =Offset(Sheet1! $A$2,0,0,CountA(Sheet1! $A:A)-1). Basically, makes all
the rows available for charting minus the row with the label. I use this
same technique for two columns...Column A acts as the Category x axis and
Column B as the value axis. Works beautifully

Now, I would like to come up with a way to plot by rows. My values would
grow as new field names would be added across the columns...specifically,
Jan, Feb, March and then have April, May and June added to the plot area
automatically.

C138:C147 would have the names of sales reps and D137:F137 would hold the
Month labels and then D138: F147 would list the values. So the list of sales
reps is static, but new data comes in for each month and needs to be added to
the charts. I have many of these charts on a dash board and do not want to
update all of them every month. Any suggestions would be appreciated
alathough I want to use VBA as a last resort.

Thanks!
 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      30th Jan 2006
You use the same idea with the OFFSET formula. The syntax of OFFSET is:

OFFSET(range, offset rows, offset columns, resize rows, resize columns)

so your month label range would have a "refers to" definition like

=OFFSET(Sheet1!$D$137,0,0,1,COUNTA(Sheet1!$137:$137))

This assumes only the dates appear in row 137, and that a date header is not
added until data for the date is added. The easiest way to define the value
ranges with respect to the month range (MonthRange below) is:

=OFFSET(MonthRange,1,0)
=OFFSET(MonthRange,2,0)
=OFFSET(MonthRange,3,0)
etc.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

"Kay" <(E-Mail Removed)> wrote in message
news:486A052D-83FB-4B9C-9AD3-(E-Mail Removed)...
> Hello,
>
> I have an offset formula I use to update a chart plotted by columns. I
> name
> the ranges and change the range areas to the offset formula...something
> like
> this =Offset(Sheet1! $A$2,0,0,CountA(Sheet1! $A:A)-1). Basically, makes
> all
> the rows available for charting minus the row with the label. I use this
> same technique for two columns...Column A acts as the Category x axis and
> Column B as the value axis. Works beautifully
>
> Now, I would like to come up with a way to plot by rows. My values would
> grow as new field names would be added across the columns...specifically,
> Jan, Feb, March and then have April, May and June added to the plot area
> automatically.
>
> C138:C147 would have the names of sales reps and D137:F137 would hold the
> Month labels and then D138: F147 would list the values. So the list of
> sales
> reps is static, but new data comes in for each month and needs to be added
> to
> the charts. I have many of these charts on a dash board and do not want
> to
> update all of them every month. Any suggestions would be appreciated
> alathough I want to use VBA as a last resort.
>
> Thanks!



 
Reply With Quote
 
=?Utf-8?B?S2F5?=
Guest
Posts: n/a
 
      7th Feb 2006
Jon,

I am sorry it has taken me so long to respond to your answer, but I have
been travelling on buisness. I appreciate your responseD!!!

I am not sure I understand your explanation of the MonthRanges. Do I need
to create multiple range names for each column of data that hold the values?

Jan Feb Mar
Salespeople's Names 4589 1234 4589
MORE 2456 4879 12365
MORE 48795 7845 45623

Kay


"Jon Peltier" wrote:

> You use the same idea with the OFFSET formula. The syntax of OFFSET is:
>
> OFFSET(range, offset rows, offset columns, resize rows, resize columns)
>
> so your month label range would have a "refers to" definition like
>
> =OFFSET(Sheet1!$D$137,0,0,1,COUNTA(Sheet1!$137:$137))
>
> This assumes only the dates appear in row 137, and that a date header is not
> added until data for the date is added. The easiest way to define the value
> ranges with respect to the month range (MonthRange below) is:
>
> =OFFSET(MonthRange,1,0)
> =OFFSET(MonthRange,2,0)
> =OFFSET(MonthRange,3,0)
> etc.
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Peltier Technical Services
> Tutorials and Custom Solutions
> http://PeltierTech.com/
> _______
>
> "Kay" <(E-Mail Removed)> wrote in message
> news:486A052D-83FB-4B9C-9AD3-(E-Mail Removed)...
> > Hello,
> >
> > I have an offset formula I use to update a chart plotted by columns. I
> > name
> > the ranges and change the range areas to the offset formula...something
> > like
> > this =Offset(Sheet1! $A$2,0,0,CountA(Sheet1! $A:A)-1). Basically, makes
> > all
> > the rows available for charting minus the row with the label. I use this
> > same technique for two columns...Column A acts as the Category x axis and
> > Column B as the value axis. Works beautifully
> >
> > Now, I would like to come up with a way to plot by rows. My values would
> > grow as new field names would be added across the columns...specifically,
> > Jan, Feb, March and then have April, May and June added to the plot area
> > automatically.
> >
> > C138:C147 would have the names of sales reps and D137:F137 would hold the
> > Month labels and then D138: F147 would list the values. So the list of
> > sales
> > reps is static, but new data comes in for each month and needs to be added
> > to
> > the charts. I have many of these charts on a dash board and do not want
> > to
> > update all of them every month. Any suggestions would be appreciated
> > alathough I want to use VBA as a last resort.
> >
> > Thanks!

>
>
>

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      10th Feb 2006
Yes, you need to create a name for the months (the X values) and for each Y
series. These names are used in the series definition formula.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


"Kay" <(E-Mail Removed)> wrote in message
news:93C0B3D1-62F6-4122-9FF3-(E-Mail Removed)...
> Jon,
>
> I am sorry it has taken me so long to respond to your answer, but I have
> been travelling on buisness. I appreciate your responseD!!!
>
> I am not sure I understand your explanation of the MonthRanges. Do I need
> to create multiple range names for each column of data that hold the
> values?
>
> Jan Feb Mar
> Salespeople's Names 4589 1234 4589
> MORE 2456 4879 12365
> MORE 48795 7845 45623
>
> Kay
>
>
> "Jon Peltier" wrote:
>
>> You use the same idea with the OFFSET formula. The syntax of OFFSET is:
>>
>> OFFSET(range, offset rows, offset columns, resize rows, resize columns)
>>
>> so your month label range would have a "refers to" definition like
>>
>> =OFFSET(Sheet1!$D$137,0,0,1,COUNTA(Sheet1!$137:$137))
>>
>> This assumes only the dates appear in row 137, and that a date header is
>> not
>> added until data for the date is added. The easiest way to define the
>> value
>> ranges with respect to the month range (MonthRange below) is:
>>
>> =OFFSET(MonthRange,1,0)
>> =OFFSET(MonthRange,2,0)
>> =OFFSET(MonthRange,3,0)
>> etc.
>>
>> - Jon
>> -------
>> Jon Peltier, Microsoft Excel MVP
>> Peltier Technical Services
>> Tutorials and Custom Solutions
>> http://PeltierTech.com/
>> _______
>>
>> "Kay" <(E-Mail Removed)> wrote in message
>> news:486A052D-83FB-4B9C-9AD3-(E-Mail Removed)...
>> > Hello,
>> >
>> > I have an offset formula I use to update a chart plotted by columns. I
>> > name
>> > the ranges and change the range areas to the offset formula...something
>> > like
>> > this =Offset(Sheet1! $A$2,0,0,CountA(Sheet1! $A:A)-1). Basically,
>> > makes
>> > all
>> > the rows available for charting minus the row with the label. I use
>> > this
>> > same technique for two columns...Column A acts as the Category x axis
>> > and
>> > Column B as the value axis. Works beautifully
>> >
>> > Now, I would like to come up with a way to plot by rows. My values
>> > would
>> > grow as new field names would be added across the
>> > columns...specifically,
>> > Jan, Feb, March and then have April, May and June added to the plot
>> > area
>> > automatically.
>> >
>> > C138:C147 would have the names of sales reps and D137:F137 would hold
>> > the
>> > Month labels and then D138: F147 would list the values. So the list of
>> > sales
>> > reps is static, but new data comes in for each month and needs to be
>> > added
>> > to
>> > the charts. I have many of these charts on a dash board and do not
>> > want
>> > to
>> > update all of them every month. Any suggestions would be appreciated
>> > alathough I want to use VBA as a last resort.
>> >
>> > Thanks!

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?S2F5?=
Guest
Posts: n/a
 
      10th Feb 2006

Thank you Jon.
"Jon Peltier" wrote:

> Yes, you need to create a name for the months (the X values) and for each Y
> series. These names are used in the series definition formula.
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Peltier Technical Services
> Tutorials and Custom Solutions
> http://PeltierTech.com/
> _______
>
>
> "Kay" <(E-Mail Removed)> wrote in message
> news:93C0B3D1-62F6-4122-9FF3-(E-Mail Removed)...
> > Jon,
> >
> > I am sorry it has taken me so long to respond to your answer, but I have
> > been travelling on buisness. I appreciate your responseD!!!
> >
> > I am not sure I understand your explanation of the MonthRanges. Do I need
> > to create multiple range names for each column of data that hold the
> > values?
> >
> > Jan Feb Mar
> > Salespeople's Names 4589 1234 4589
> > MORE 2456 4879 12365
> > MORE 48795 7845 45623
> >
> > Kay
> >
> >
> > "Jon Peltier" wrote:
> >
> >> You use the same idea with the OFFSET formula. The syntax of OFFSET is:
> >>
> >> OFFSET(range, offset rows, offset columns, resize rows, resize columns)
> >>
> >> so your month label range would have a "refers to" definition like
> >>
> >> =OFFSET(Sheet1!$D$137,0,0,1,COUNTA(Sheet1!$137:$137))
> >>
> >> This assumes only the dates appear in row 137, and that a date header is
> >> not
> >> added until data for the date is added. The easiest way to define the
> >> value
> >> ranges with respect to the month range (MonthRange below) is:
> >>
> >> =OFFSET(MonthRange,1,0)
> >> =OFFSET(MonthRange,2,0)
> >> =OFFSET(MonthRange,3,0)
> >> etc.
> >>
> >> - Jon
> >> -------
> >> Jon Peltier, Microsoft Excel MVP
> >> Peltier Technical Services
> >> Tutorials and Custom Solutions
> >> http://PeltierTech.com/
> >> _______
> >>
> >> "Kay" <(E-Mail Removed)> wrote in message
> >> news:486A052D-83FB-4B9C-9AD3-(E-Mail Removed)...
> >> > Hello,
> >> >
> >> > I have an offset formula I use to update a chart plotted by columns. I
> >> > name
> >> > the ranges and change the range areas to the offset formula...something
> >> > like
> >> > this =Offset(Sheet1! $A$2,0,0,CountA(Sheet1! $A:A)-1). Basically,
> >> > makes
> >> > all
> >> > the rows available for charting minus the row with the label. I use
> >> > this
> >> > same technique for two columns...Column A acts as the Category x axis
> >> > and
> >> > Column B as the value axis. Works beautifully
> >> >
> >> > Now, I would like to come up with a way to plot by rows. My values
> >> > would
> >> > grow as new field names would be added across the
> >> > columns...specifically,
> >> > Jan, Feb, March and then have April, May and June added to the plot
> >> > area
> >> > automatically.
> >> >
> >> > C138:C147 would have the names of sales reps and D137:F137 would hold
> >> > the
> >> > Month labels and then D138: F147 would list the values. So the list of
> >> > sales
> >> > reps is static, but new data comes in for each month and needs to be
> >> > added
> >> > to
> >> > the charts. I have many of these charts on a dash board and do not
> >> > want
> >> > to
> >> > update all of them every month. Any suggestions would be appreciated
> >> > alathough I want to use VBA as a last resort.
> >> >
> >> > Thanks!
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart update automatically DaveR Microsoft Excel Charting 1 1st Feb 2008 03:48 PM
Automatically update print area Sheeny Microsoft Excel Programming 1 4th May 2006 08:05 PM
How to update the Chart automatically? vickyho1008 Microsoft Excel Charting 3 1st Jun 2004 04:10 AM
update chart automatically taniedzw Microsoft Excel Charting 1 27th May 2004 06:04 PM
How to update the chart automatically freger Microsoft Excel Charting 1 29th Jul 2003 01:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:08 AM.