MrExcel Message Board

PDF to Excel


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Notices

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 Feb 18th, 2002, 06:08 PM   #1
Guest
 
Posts: n/a
Default

G'day all.

I was wondering if there is a way to adjust the way the following dates appear. For some reason the date format changes after every 15 or so entries.

11/27/2000
11/28/2000
11/29/2000
11/30/2000
1/12/00
4/12/00
5/12/00
6/12/00
etc...

It continues to change like this. Apart form manually adjusting (it goes back to the late 1970's!) is there an easier way to put it all in dd/mm/yyyy.

Thank you for your help
  Reply With Quote
Old Feb 18th, 2002, 06:20 PM   #2
Paul B
Board Regular
 
Join Date: Feb 2002
Location: Georgia USA
Posts: 544
Default

Select the column and format it as the date format you want. Paul B
Paul B is offline   Reply With Quote
Old Feb 18th, 2002, 06:28 PM   #3
Guest
 
Posts: n/a
Default

Thanks mate, but i have tried that and the following results are produced:

11/27/2000
11/28/2000
11/29/2000
11/30/2000
12-Jan-00
12-Apr-00
12-May-00
12-Jun-00
12-Jul-00
12-Aug-00
12-Nov-00
12-Dec-00
12/13/2000
12/14/2000
12/15/2000
12/18/2000
12/19/2000
12/20/2000
12/21/2000
12/22/2000
12/25/2000

or;

01/20/1984
01/23/1984
01/24/1984
01/25/1984
01/26/1984
01/27/1984
01/30/1984
01/31/1984
1/2/1984
2/2/1984
3/2/1984
6/2/1984
7/2/1984
8/2/1984
9/2/1984
10/2/1984

It seems that sometimes it is the format dd/mm/yy and other times mm/dd/yy. So when I try to change all it throws it all over the place.

I could go through and then rechange those that dont display as i want but this would take a long time.

I hope this makes sense.

Thanks for your help
  Reply With Quote
Old Feb 18th, 2002, 06:38 PM   #4
Paul B
Board Regular
 
Join Date: Feb 2002
Location: Georgia USA
Posts: 544
Default

Are some of the cells formated as text
I came up with the same thing when some were formated as text, if your dates are in column A, in column B put =text(A1), if it is text it will say true, if this is the case I think you will have to reenter the dates for the formatting to take.

[ This Message was edited by: Paul B on 2002-02-18 18:44 ]
Paul B is offline   Reply With Quote
Old Feb 18th, 2002, 06:45 PM   #5
Guest
 
Posts: n/a
Default

No they are all date. I was just changed the date to '14-Mar-98' to give an indication of what is occuring.

It really looks like the date format swaps from mm/dd/yyyy to dd/mm/yy. I need to be able to, without going through each, make all the one format.

eg. It currently interprets a part of the data on some as 'mm' and others as 'dd' so doing a column format produces those results shown.

Thanks mate.
  Reply With Quote
Old Feb 18th, 2002, 06:47 PM   #6
Derek
Board Regular
 
Join Date: Feb 2002
Location: Perth Australia
Posts: 1,570
Default

If they are not produced by formulas, you could try:
Format a column in another sheet the way you want it, then copy your originals and post them as values into the other sheet. Then copy this column and do a normal paste back over the top of your originals.
Hope this helps
Derek
Derek is offline   Reply With Quote
Old Feb 18th, 2002, 06:49 PM   #7
Barrie Davidson
MrExcel MVP
 
Barrie Davidson's Avatar
 
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
Default

Do you know for sure what the format is (mm/dd/yy or dd/mm/yy)? Looks to me like they are formatted like mm/dd/yy. If that is the case, why not try Data|TextToColumns (from the main menu). When you get to Step3, select Date as the column format and specify MDY.
__________________
Barrie Davidson

"You're only given a little spark of madness. You mustn't lose it." - Robin Williams
Barrie Davidson is offline   Reply With Quote
Old Feb 18th, 2002, 06:53 PM   #8
Derek
Board Regular
 
Join Date: Feb 2002
Location: Perth Australia
Posts: 1,570
Default

I have just remembered something that happened to me. I used vb code to change entries to Upper case on a worksheet. Cells that contained only a date were reversed.
Only a thought
Derek
Derek is offline   Reply With Quote
Old Feb 18th, 2002, 06:58 PM   #9
Guest
 
Posts: n/a
Default

Thanks guys.

Your suggestion works but only on part of the data. When the date format changes as it does every 15 or some points I would need to change the dmy - mdy.

Thanks again for your help. Looks like a bit of time may need to be spent manually changing.
  Reply With Quote
Old Feb 18th, 2002, 08:18 PM   #10
RichardS
Board Regular
 
RichardS's Avatar
 
Join Date: Feb 2002
Location: Victoria, Australia
Posts: 761
Default

I had a problem like this at one stage. You will notice I'm in Australia. Our date format is dd/mm/yyyy. However most computers come preloaded with an American date format, mm/dd/yyyy. I had users entering dates in the Australian format. If the day was bewteen 1 and 11, it would store the data as a date, with the day as the month and month as the day, otherwise it would assume it was text, no matter the format. Check your regional settings.
Richard
RichardS 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 07:50 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