MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old May 13th, 2002, 02:56 PM   #1
CarlB
New Member
 
Join Date: May 2002
Posts: 5
Default

Using Excel '97, when I had a worksheet with columns:

Date , Time , Value_A , Value_B , Value_C

when I created a graph, both time and date would be formatted as the x-axis. I recently had the misfortune of being forced to move to Excel 2000. Now, the same worksheet only uses the Date column, ignoring the time column. Is there a preference to correct this, or will it require a bug fix from Microsoft? If so, what patch is it in?
CarlB is offline   Reply With Quote
Old May 13th, 2002, 03:00 PM   #2
Asala42
Board Regular
 
Join Date: Feb 2002
Location: Southfield,MI USA
Posts: 1,027
Default

G'day

I actually wasn't aware you could do that in '97.

Can you get away with adding a 3rd column (between time and your 1st data series) and adding adding the 2?

Adam
Asala42 is offline   Reply With Quote
Old May 13th, 2002, 03:06 PM   #3
CarlB
New Member
 
Join Date: May 2002
Posts: 5
Default

Wow ... you're quick with a response!
Actually, I should have pointed out that I even tried glomming the 2 columns into one, containing "dd/mm/yy HH:MM:SS" formatted data. It had the same result. I liked the feature in Excel '97, and can't seem to get along without it.
CarlB is offline   Reply With Quote
Old May 13th, 2002, 03:08 PM   #4
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

With the chart selected, choose the Chart | Source Data... menu command. Enter the cell range for your Date and Time values on the Series tab in the "Category (X) axis labels" field.
Mark W. is offline   Reply With Quote
Old May 13th, 2002, 03:37 PM   #5
CarlB
New Member
 
Join Date: May 2002
Posts: 5
Default

I guess I didn't phrase my description of the problem I experienced very well. The data points in the graph itself (whether bars, lines or areas) are all there. The problem is that it is no longer possible to format the axis. Instead, it is a smeared mess of all of the dates and times, jumbled on top of one another. If I try merging the date and time columns into one "date time" column, then the time sees to be ignored, resulting in only one graph point per date.
CarlB is offline   Reply With Quote
Old May 13th, 2002, 03:44 PM   #6
Asala42
Board Regular
 
Join Date: Feb 2002
Location: Southfield,MI USA
Posts: 1,027
Default

Hey again,

Have you tried using a scatterplot instead of a line chart? That should give you some more freedom in scaling the x-axis.

Adam
Asala42 is offline   Reply With Quote
Old May 13th, 2002, 03:46 PM   #7
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

> The problem is that it is no longer
> possible to format the axis.

I don't follow. Why isn't it possible to format the x-axis? I can!
Mark W. is offline   Reply With Quote
Old May 13th, 2002, 04:05 PM   #8
CarlB
New Member
 
Join Date: May 2002
Posts: 5
Default

Mark and Adam,

Thanks for all your suggestions and guidance! The scatter plot seemed lik a good idea, but there isn't anything like a stacked scatterplot. I stack the data columns.

The problem with the formatting is that I can't set the scale in Excel 2000. It only allows me to modify the Y-axis cross location. The others, number of categories between tick marks and labels are greyed out. I found that if I set Excel 97 to the values that Excel 200 forces me to use, it is messed up just like it is in Excel 2000.

So ... if only Excel 2000 would allow me to set the X-axis scaling, I'd be in good shape!
CarlB is offline   Reply With Quote
Old May 13th, 2002, 04:15 PM   #9
Asala42
Board Regular
 
Join Date: Feb 2002
Location: Southfield,MI USA
Posts: 1,027
Default

Hey again,

Can you get away with applying an autofilter on your data set, and then using a custom filter on the column that contains your x-axis data.

Adam
Asala42 is offline   Reply With Quote
Old May 13th, 2002, 04:33 PM   #10
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

CarlB, I believe you're missing a "fine" point about Excel chart x-axes. There are actually 3 varieties.

First, there are categorical values which cannot be scaled. If you're creating a Column chart for {"Apples";"Bananas";"Grapes"} the x-axis is categorical. If you change the Chart type to Line it's obviously still categorical. If you subsequently replace {"Apples";"Bananas";"Grapes} with {1;2;3}... guess what... it's still categorical -- even though it looks like it can be scaled.

Second, there are scalar x-axis values like those on a X-Y Scatter chart. These can be {1;2;3} too, but they behave differently -- allowing you to set Minimum/Maximum values on Format Axis Scale tab.

Finally (and, the most recent addition), there's time-scale. Typically, these are used with the Line chart type. These can be scaled too. And, date formatted to suit your needs.

Okay, now here's "pay dirt" for this treatise... If your x-axis label is sourced from 2 or more columns you have a categorical axis. If your x-axis label is sourced for a single column containing date values you have time-scale. Otherwise, a x-axis sourced from single column will be categorical or scalar depending on the chart type and the data type of the values themselves.

[ This Message was edited by: Mark W. on 2002-05-13 16:03 ]
Mark W. is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On

Forum Jump


All times are GMT -4. The time now is 10:32 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes