X-axis order on a chart

nowanda

Board Regular
Joined
May 27, 2002
Messages
67
I've got a table like this:

grp num
<1 15
2 13
4 18
8 356
16 56
32 2
>32 86

But because it's a text field on a bar chart the x-axis
looks like this:

<1 >32 16 2 32 4 8

Instead of

<1 2 4 8 16 32 >32

Any tips on getting the order straight? Of course in Excel the graph works out just fine - but I'd prefer to have it interactive (i.e. direct from the database) than to have to go through Excel (import, export from and to Access!)

Thanks,
Nowanda:)
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Add a field to your table (call it Order, or something like that), and enter in values from 1 to the number of records. Then you can order your chart query by that field (that's what I do).

HTH,

Russell
 
Upvote 0
Silly Question - but how would one do that... The chart wizard doesn't seem to bring up any mention of sort order..

Can I change the properties after the chart has already been created?

Nowanda:)
 
Upvote 0
Found it!!

Works really nicely.. here is the SQL I used in the View..Properties Row Source field:

SELECT grph_mktb.test, grph_mktb.PercentR FROM grph_mktb ORDER BY grph_mktb.Order, grph_mktb.test;

Coolio!
Nowanda:)
 
Upvote 0

Forum statistics

Threads
1,221,490
Messages
6,160,133
Members
451,622
Latest member
xmrwnx89

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