redthunder2
New member
- Joined
- May 4, 2016
- Messages
- 2
- Reaction score
- 0
- Points
- 0
I am trying to use the DATE function in combination with the TEXT function to allow a user to input a numerical value (1 through 12) and have excel convert that value into the text-based representation of the month. For example, if the user inputs 1, excel converts that to January.If the user inputs 11, excel converts that to November.
This is my formula:
=TEXT(DATE(,A1,),"MMMM")
“A1” is the cell that the user inputs a value of 1-12
The problem I have is that the DATE function is one month off. That is, if the user inputs 2, excel converts that to January (not February).If the user inputs 12, excel converts that to November (not December).The input of 1 is yields a result of “January.”(You can get January by inputting 1 or 2.And, from 2 on up, the numerical and text values are off by one month 2=January, 3=February, 4=March, etc.
Does anyone have an idea of what I have done wrong with my formula or how to fix this without subtracting 1 from the A1 value?
This is my formula:
=TEXT(DATE(,A1,),"MMMM")
“A1” is the cell that the user inputs a value of 1-12
The problem I have is that the DATE function is one month off. That is, if the user inputs 2, excel converts that to January (not February).If the user inputs 12, excel converts that to November (not December).The input of 1 is yields a result of “January.”(You can get January by inputting 1 or 2.And, from 2 on up, the numerical and text values are off by one month 2=January, 3=February, 4=March, etc.
Does anyone have an idea of what I have done wrong with my formula or how to fix this without subtracting 1 from the A1 value?