Label on Excel

Gildasl

New Member
Joined
Mar 29, 2012
Messages
22
Hi,

I have the following set of Excel data that I would like to get on same graph.

For the sold items, I would like to use the Date as the horizontal axis.
For the milestone, I would also like to use the Date as the horizontal axis, but I want to get the label (G0, G1, G2) displayed on the graph. Currently, I have to re-edit manually all the label :mad:. Is there a trick to get the label from the table?

[TABLE="width: 810"]
<colgroup><col span="10"></colgroup><tbody>[TR]
[TD] Date
[/TD]
[TD="align: right"]9/1/2012[/TD]
[TD="align: right"]9/8/2012[/TD]
[TD="align: right"]9/15/2012[/TD]
[TD="align: right"]9/22/2012[/TD]
[TD="align: right"]9/29/2012[/TD]
[TD="align: right"]10/6/2012[/TD]
[TD="align: right"]10/13/2012[/TD]
[TD="align: right"]10/20/2012[/TD]
[TD="align: right"]10/27/2012[/TD]
[/TR]
[TR]
[TD]Milestone
[/TD]
[TD] [/TD]
[TD]G0[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]G1[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]G2[/TD]
[/TR]
[TR]
[TD]Sold
[/TD]
[TD]0[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]


Thanks,
Gildas
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Easiest thing to do is rearrange your data. Insert the data in columns rather than in rows. Like this, in 3 columns. Notice there are no headers in the first two columns. That is becuase if you use a header Excel will think it is a series and graph it. Simply highlight the table including the blank columns and insert chart.
[TABLE="width: 211"]
<TBODY>[TR]
[TD] [/TD]
[TD] [/TD]
[TD]Sold</SPAN>[/TD]
[/TR]
[TR]
[TD]G0</SPAN>[/TD]
[TD="align: right"]9/1/2012</SPAN>[/TD]
[TD="align: right"]0</SPAN>[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD="align: right"]9/8/2012</SPAN>[/TD]
[TD="align: right"]2</SPAN>[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD="align: right"]9/15/2012</SPAN>[/TD]
[TD="align: right"]1</SPAN>[/TD]
[/TR]
[TR]
[TD]G1</SPAN>[/TD]
[TD="align: right"]9/22/2012</SPAN>[/TD]
[TD="align: right"]1</SPAN>[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD="align: right"]9/29/2012</SPAN>[/TD]
[TD="align: right"]0</SPAN>[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD="align: right"]10/6/2012</SPAN>[/TD]
[TD="align: right"]1</SPAN>[/TD]
[/TR]
[TR]
[TD]G2</SPAN>[/TD]
[TD="align: right"]10/13/2012</SPAN>[/TD]
[TD="align: right"]1</SPAN>[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD="align: right"]10/20/2012</SPAN>[/TD]
[TD="align: right"]1</SPAN>[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD="align: right"]10/27/2012</SPAN>[/TD]
[TD="align: right"]2</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL span=2><COL></COLGROUP>[/TABLE]
 
Upvote 0
Select from the word Date to the final 2 under G2. Then insert a column or bar chart. That way Excel makes a lot of decisions for you based on the selection.

Trouttrap2, this works whether you transpose the chart or not.
 
Upvote 0
Jasmith4,

Could you elaborate a bit more?
Let's say I have already a graph with the sold items and the date displayed horizontally. Then from there how to add the Milestone?
Your previous suggestion is creating one more graph :(.

Thanks,
Gildas
 
Upvote 0
When you select the chart, you should see purple, blue and green boxes around the data and headings. Whichever one is surrounding the list of dates, expand it to include also the list of milestones. To expand it, grab the lower-right corner and pull it down one row.
 
Upvote 0
Is there a way I could e-mail you my example file. For now, on the graph I see Jan-00 instead of Go :(
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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