Month and free text

rhmkrmi

Active Member
Joined
Aug 17, 2012
Messages
348
Office Version
  1. 365
Platform
  1. Windows
How can I autofill cells with MMM-YY and a free text?
For example, COSTS OCT-18 and then drag this to the next cells to get COSTS NOV-18, etc.

Thank you!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
How can I autofill cells with MMM-YY and a free text?
For example, COSTS OCT-18 and then drag this to the next cells to get COSTS NOV-18, etc.!
Something like this should work...

="COSTS "&UPPER(TEXT(DATE(2018,ROWS($1:10),1),"mmm-yy"))

where you would set the red highlighted number to the month number you want to start with.
 
Upvote 0
Great, thanks a lot.
How can I use COLUMNS instead of ROWS because I need them as column headers.
Thanks again.
 
Upvote 0
Another option, not using formulas (though the month abbreviations will not be upper case):
Put Oct-18 and Nov-18 in the first 2 cells, select those 2 cells and drag the Fill Handle (the little black square at the bottom right of the selection) across as far as you need.
With all the cells still selected, custom format (Ctrl+1) the cells as "COSTS " mmm-yy
 
Last edited:
Upvote 0
For a formula method, dragged to the right:
=UPPER(TEXT(EDATE("1-Oct-2018",COLUMNS($B1:B1)-1),"CO\ST\S mmm-yy"))
.. where the red part is your first date and the blue part is the cell address of the first formula cell.
 
Last edited:
Upvote 0
Thanks, this is a great tip but with this solution, I have to enter the dates in each column manually after custom formatting.
 
Upvote 0
This works fine, thanks a lot.

What are the slashes in CO\ST\S?
 
Upvote 0
.. but with this solution, I have to enter the dates in each column manually after custom formatting.
The dates could be entered by formula (from a given starting cell date), but in any case perhaps the formula suggestion in post 5 suits you better?
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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