dynamic chart with 2 label X-axis

juzzi

New Member
Joined
Aug 23, 2011
Messages
5
hello everybody, my problem is the following: i would create a dynamic chart that shows the last (let's say) 21 values and i manage to do this throught the definition of names, but i would like to represent also a double label for the x-axis, that is year (column A) and trimester (column B)..how could I do?
the name I created is the following:
=OFFSET('Valori assoluti'!$A$1:$B$1;COUNTA('Valori assoluti'!$C:$C)-'Valori assoluti'!$K$1;0;'Valori assoluti'!$K$1;1)
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
do you mean into the formula for the name "trim2"?

=OFFSET('Valori assoluti'!$A$1:$B$1;COUNTA('Valori assoluti'!$C:$C)-'Valori assoluti'!$K$1;0;'Valori assoluti'!$K$1;1)
THAT WAY DOESN'T WORK...
THANKS

Welcome to MrExcel.

Try changing the last 1 in your formula to 2.
 
Upvote 0
If K1 contains 21, the formula:

=OFFSET('Valori assoluti'!$A$1:$B$1;COUNTA('Valori assoluti'!$C:$C)-'Valori assoluti'!$K$1;0;'Valori assoluti'!$K$1;2)

works for me in Excel 2003. It refers to the last 21 values in columns A and B, and assigning:

='Valori assoluti'!trim2

to the Category (x) axis labels results in year and trimester showing.
 
Upvote 0
i did excactly what you wrote but an error message appears:
"the reference is not valid. references to the titles, values, or the dimensions must correspond to a single cell, row or column"
do u have any idea?
otherwise would you please send me your file so I can check what's different?
thank you very much bytheway


QUOTE=Andrew Poulsom;2837665]If K1 contains 21, the formula:

=OFFSET('Valori assoluti'!$A$1:$B$1;COUNTA('Valori assoluti'!$C:$C)-'Valori assoluti'!$K$1;0;'Valori assoluti'!$K$1;2)

works for me in Excel 2003. It refers to the last 21 values in columns A and B, and assigning:

='Valori assoluti'!trim2

to the Category (x) axis labels results in year and trimester showing.[/QUOTE]
 
Upvote 0
Hi

I tried a simple example, following Andrew's intructions, and got a chart that seems to be like the one you want.

This is what I did:

1- I created the name YearTri in Sheet1
Name: Sheet1!YearTri
Refers to: =OFFSET(Sheet1!$A$2:$B$2,0,0,4,2)

2- I created a column chart with the values in C2:C5

3- In the source data of the chart, in the Category (X) axis labels, I wrote
=Sheet1!YearTri

... and got the chart.


This is the data I used:

<table border="1" cellpadding="1" style="background:#FFF; border-collapse:collapse;border-width:2px;border-color:#CCCCCC;font-family:Arial,Arial; font-size:10pt" ><tr><th style="border-width:1px;border-color:#888888;background:#9CF " > </th><th style="border-width:1px;border-color:#888888;background:#9CF; text-align:center" width=30 >A</th><th style="border-width:1px;border-color:#888888;background:#9CF; text-align:center" width=30 >B</th><th style="border-width:1px;border-color:#888888;background:#9CF; text-align:center" >C</th><th style="border-width:1px;border-color:#888888;background:#9CF; text-align:center" width=30 >D</th></tr><tr><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;background:#9CF; text-align:center; " ><b>1</b></td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:left;border-width: 1px;border-color:#888888; ">Year</td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:left;border-width: 1px;border-color:#888888; ">Tri</td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:left;border-width: 1px;border-color:#888888; ">Value</td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; "> </td></tr><tr><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;background:#9CF; text-align:center; " ><b>2</b></td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; ">2011</td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; ">1</td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; ">23</td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; "> </td></tr><tr><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;background:#9CF; text-align:center; " ><b>3</b></td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; ">2010</td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; ">2</td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; ">31</td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; "> </td></tr><tr><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;background:#9CF; text-align:center; " ><b>4</b></td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; ">2010</td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; ">3</td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; ">38</td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; "> </td></tr><tr><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;background:#9CF; text-align:center; " ><b>5</b></td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; ">2010</td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; ">4</td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; ">53</td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; "> </td></tr><tr><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;background:#9CF; text-align:center; " ><b>6</b></td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; "> </td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; "> </td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; "> </td><td style="border-width:1px;border-color:#000000; padding-left:0.5em; padding-top:0.4em; padding-right:0.5em; padding-bottom:0.25em;text-align:right;border-width: 1px;border-color:#888888; "> </td></tr><tr><td colspan=5 style="background:#9CF; padding-left:1em" > [Book1]Sheet1</td></tr></table>


... and the chart I got:


<IMG SRC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mO0YxnRCMPtZhGNrbRjbxqUBzlOEc61tGOd8RjHvW4Rz720Y9/bFBAAAA7" ALT="MyPic">

Is this what you want?
Try this example and adapt to your case.
 
Upvote 0
ok I find the error
instead of
=OFFSET('Valori assoluti'!$A$1:$B$1;COUNTA('Valori assoluti'!$C:$C)-'Valori assoluti'!$K$1;0;'Valori assoluti'!$K$1;2)

i should assign to the x axis rhis
=OFFSET('Valori assoluti'!$A$1;COUNTA('Valori assoluti'!$C:$C)-'Valori assoluti'!$K$1;0;'Valori assoluti'!$K$1;2)
so that the last "2" tells excel the lenght.

thank you as well
;)

QUOTE=Andrew Poulsom;2837665]If K1 contains 21, the formula:

=OFFSET('Valori assoluti'!$A$1:$B$1;COUNTA('Valori assoluti'!$C:$C)-'Valori assoluti'!$K$1;0;'Valori assoluti'!$K$1;2)

works for me in Excel 2003. It refers to the last 21 values in columns A and B, and assigning:

='Valori assoluti'!trim2

to the Category (x) axis labels results in year and trimester showing.[/QUOTE][/QUOTE]
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,911
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top