- To post as a guest, your comment is unpublished.· 8 months agoThe text formula treats the number as a day in the year. So 1 would be 1st of January, and 365 would be 31st December. If you convert these numbers to months then 1 would be January and 365 would be December. With 2, the formula would see this as 2nd of January so would still return as January. However, with the 29, we can make this 2 58 instead, which alludes to Feb 27th. The formula will thus return this as feb. The same is applied for the numbers 1 to 12. Hope this helps
- To post as a guest, your comment is unpublished.· 5 months agoYou could also use 28 instead of 29 with the same results.
30 will fail for February and 27 will fail for December, so the only options are 28 and 29
- To post as a guest, your comment is unpublished.· 2 months ago30 should fail for February but doesn't because Excel incorrectly assumes that 1900 was a leap year.
27 actually fails for September, October, November and December
How to convert 1-12 to month name in Excel?
For example you received a sales table in which months are displayed as numbers, and you need to convert the numbers to normal month names as below screenshot shown. Any idea? This article will introduce two solutions for you.
Actually, we can apply the TEXT function to convert numbers (from 1 to 12) to normal month names easily in Excel. Please do as follows:
Select a blank cell next to the sales table, type the formula =TEXT(A2*29,"mmm") (Note: A2 is the first number of the Month list you will convert to month name), and then drag the AutoFill Handle down to other cells.
Now you will see the numbers (from 1 to 12) are converted to normal month names.
As you see, the TEXT function can return month name in another cell. But if you have Kutools for Excel installed, you can apply its Operation feature to replace the numbers (from 1 to 12) with month names directly.
1. Select the numbers you will convert to month names in the sales table, and click Kutools > More > Operation. See screenshot:
2. In the Operation Tools dialog box, please (1) click to highlight Custom in the Operation box; (2) type the formula =TEXT(?*29,"mmm") in the Custom box; (3) check the Create formulas option; and finally (4) click the Ok button. See screenshot:
Now you will see the month names replace the selected numbers directly. See screenshot:
You are guest
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 8 months agoCan you explain why is number 29 in this formula ?