dynamically increase data range

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Dynamically increase data range

Dynamically increase data range

resolvedResolved · Urgent Priority · Version 2010

Ranyere has attended:
Excel Advanced course
Excel VBA Intro Intermediate course

Dynamically increase data range

Hiya,

I want to add sparklines to my report but am having an issue.

Every month I add a new column to my report. Say:
Column A B C
Jan Feb Mar

and say there is a sparkline whose data range is A2:C2.

For next month, when I add column D (April) to the report, how could I have the sparkline to automatically update its data range to A2:D2?

Thanks,
Ranyere

RE: Dynamically increase data range

Hello Ranyere,

To achieve what you require without writing a complex formula, you may find it easier to make your data area a Table. e.g. select range, Home Ribbon, Styles section, Format as Table.
Tables are dynamic by default. so once its a table, set your sparklines as normal, then if you add extra columns the sparkline with change automatically.

I hope this resolves your question. If it has, please mark this question as resolved.

If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Mark
Microsoft Office Specialist Trainer

RE: Dynamically increase data range

Hi Mark,

Many thanks for your reply.

What about the other option - writing a complex formula?

I would avoid making the area a Table if I could.

Thanks in advance,
Ranyere

RE: Dynamically increase data range

Hello Ranyere,

if you set up a named range, and in the data range area type the following: Change the G8 here with your first cell, and the P8 can be any, this is the end of your expected range.

=OFFSET(Sheet1!$G$8,0,0,1,COUNTA(Sheet1!$G$8:$P$8)-1)

I hope this resolves your question. If it has, please mark this question as resolved.

If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Mark
Microsoft Office Specialist Trainer

RE: Dynamically increase data range

Hi Mark,

I've just replied to forum@stl-training.co.uk so if you could have a look, please.

Thanks in advance,
Ranyere

RE: Dynamically increase data range

Hi Mark,

Hope you're well.

I was wondering if you've had a chance to have a look at the sheet?

Many thanks in advance,
Ranyere

 

Training courses

 

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Reconciling a list to correspond with another

May have a list that needs to make but on another sheet one list seems to be out, eg. product list one sheet contains all product and inventory data, while the other contains pricing data. Both need to match with all products but there is more products in one list than the other. To find the disparaging product compare data in the two columns that need to match Make sure that order the same way.
Create another column in the sheet that has the most items and type in the first cell


=Exact(text1,text2) text1 being the cell that you want compared with text2 cell reference. Drag to filldown and your first false will give you for first cells that does not match. Correct insert the row with data in other sheet and continue the process until all the data returns true. Delete the column inserted.

View all Excel hints and tips


Server loaded in 0.08 secs.