ECB
Board Regular
- Joined
- Mar 3, 2009
- Messages
- 63
- Office Version
- 365
- Platform
- MacOS
- Mobile
Hi all
I'm stuck again
I have a list of data of single letter values:
J
F
M
A
m
j
a
S
O
N
D
Which relates to January, February, March etc (There is no July)
Now, I want to write an if statement to convert the single text value to a number
eg:
=IF(L1="J",1,IF(L1="F",2,IF(L1="M",3,IF(L1="A",4,IF(L1="m",5)))))
Which doesn't work because the if is case insensitive - small m returns "3"
Anyone able to point out to me where I'm going wrong, or what would work instead?
TIA
I'm stuck again
I have a list of data of single letter values:
J
F
M
A
m
j
a
S
O
N
D
Which relates to January, February, March etc (There is no July)
Now, I want to write an if statement to convert the single text value to a number
eg:
=IF(L1="J",1,IF(L1="F",2,IF(L1="M",3,IF(L1="A",4,IF(L1="m",5)))))
Which doesn't work because the if is case insensitive - small m returns "3"
Anyone able to point out to me where I'm going wrong, or what would work instead?
TIA