Change the first letter from small cap to large cap

m111

New Member
Joined
Mar 5, 2003
Messages
18
Hi all,

I have column B which comprises of month and date : Jan 02-25. However, some of them are in small letters, eg : jan 02-25. That makes the sorting inaccurate. How to convert every first letter of the month in column B to capital letter?

Thank you so much for all the help that you have given! Indeed, Mr.Excel has helped me so much that I just want to say a big thank you! :)

m111
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
m111 said:
Hi all,

I have column B which comprises of month and date : Jan 02-25. However, some of them are in small letters, eg : jan 02-25. That makes the sorting inaccurate. How to convert every first letter of the month in column B to capital letter?

Thank you so much for all the help that you have given! Indeed, Mr.Excel has helped me so much that I just want to say a big thank you! :)

m111

I'm not sure how converting to caps affects sorting, but...

=proper(a1) where a1 contains jan 02-25

or

www.asap-utilities.com a free add-in that has a proper function
 
Upvote 0
m111 said:
Hi all,

I have column B which comprises of month and date : Jan 02-25. However, some of them are in small letters, eg : jan 02-25. That makes the sorting inaccurate. How to convert every first letter of the month in column B to capital letter?

Thank you so much for all the help that you have given! Indeed, Mr.Excel has helped me so much that I just want to say a big thank you! :)

m111

Ok not to be nit picky but how is "jan 02-25" a month and date? I would suggest you format column B to a DATE format then that should solve your sorting issue without having to change "j" to "J" etc. :)
 
Upvote 0
OK, I'm assuming that your "dates" are actually text, not true dates. Given that:

1. The case of the first letter does not appear to affect the sorting. In other words, sorting does not seem to be case sensitive.

2. You can sort on your "dates" as is, but be aware that all dates that are Apr will be on top, followed by Aug, Dec, Feb, etc, and the last will be Sep. In other words, it will sort by the first letter of the month, not by the first true date of the year. This is fine if you just want to sort all dates within a month; doesn't work if you want to sort by true date.

3. Even if the "month" sort above is what you want, you must make sure all the entries are formatted the same, i.e. a three-letter month, followed by a space, followed by a two-number year, a dash, and a two number month.

I suggest, before we go any further, that you tell us exactly how you want to sort your list.
 
Upvote 0
Hi Barry,

I agree with what you say. The sort function really requires all the entries to be in proper order I encounter the same limitation in sort as you mentioned.

Sorry, I think it's my oversight. I want to add in rows after a certain comparison between the months. The current add-in rows function that I have does not differentiate between Jan and jan. That's why it compares and adds in a row between Jan 20-25 and jan 20-25. By changing the first letter of the month into big cap should have solved the problem, i believe.

So how should I change the first letter from small cap to big cap?

Thanks!

m111
 
Upvote 0
OK, again assuming your entries are all text, and are in column B, you can use Brian's suggestion, above.

First, insert a new column between column B and C. Assuming your dates start in B1, in the new C1 enter =PROPER(A1). Copy it down as far as needed. You now have a column with the first letter in Capitals for every date.

Next, highlight column C and click Copy. Then, click Edit/Paste Special/ and choose Values. This changes the formulas to text. You can now delete column B, with the mixed cases, and use what is now the new column B, with the upper case.
 
Upvote 0
Barry,

Thanks very much for your help!

you are righ that the month doesn't sort from Jan-Dec. It sorts according to the first alphabelt.

My new problem here is that I have the later months and dates on top of the earlier months. Eg. June is on top of May. But I want to copy all the May data from the bottom sheet to the top and shows the June data at the bottom, immediately after a blank row from the May data. The thing is that Excel will overwrite the existing June that I have.

How should I prevent Excel from writing off the June data? The months and dates are again in column B as shown:

Core600 Jun 27-02
Core2500 Jun 27-02
Core150 Jun 27-02
500LP Jun 27-02

J150 May 01-05
J500 May 01-05
J150 May 01-05
J500 May 01-05
500LP May 01-05
600LP May 01-05

Thanks!

m111
 
Upvote 0
m111,

You can insert the same number of rows you're trying to copy before you copy. Then paste, or you can copy and paste to a new worksheet.
 
Upvote 0
m111 said:
Barry,


Core600 Jun 27-02
Core2500 Jun 27-02
Core150 Jun 27-02
500LP Jun 27-02

J150 May 01-05
J500 May 01-05
J150 May 01-05
J500 May 01-05
500LP May 01-05
600LP May 01-05

Thanks!

m111

If I may (at the risk of being ignored again :wink: )
Book1.xls
ABCD
1Core600Jun27-026/27/1902
2Core2500Jun27-026/27/1902
3Core150Jun27-026/27/1902
4500LPMay01-055/1/1905
5J150May01-055/1/1905
6J500May01-055/1/1905
7J150May01-055/1/1905
8J500May01-055/1/1905
9500LPMay01-055/1/1905
10600LPMay01-055/1/1905
australia


Insert a column format as DATE paste in the formulas all the way down then do your sort based on the inserted column then delete the column once your sort is done.

Wadya Think?
 
Upvote 0
Correction on that formula it should be

=DATE(2003,MONTH(LEFT(B1,6)),MID(B1,5,2))

This will force the years to be identical allowing you to sort by Just Month and Day
 
Upvote 0

Forum statistics

Threads
1,221,691
Messages
6,161,322
Members
451,696
Latest member
Senthil Murugan

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