Hello. How would I do an if statement to say, If the 8th character is a letter, return true, if it is a number return false?
123456 Harvard
My attempt: If(Left(Cell,8)=.....
Thanks
Hello. How would I do an if statement to say, If the 8th character is a letter, return true, if it is a number return false?
123456 Harvard
My attempt: If(Left(Cell,8)=.....
Thanks
Try
=NOT(ISNUMBER(MID(A1,8,1)*1))
EDIT: MID will always return TEXT hence ISTEXT will not work![]()
Last edited by Ace_XL; 10-15-2013 at 01:47 PM.
Life's a spreadsheet, Excel!
Say thanks, Click *
Great. Thanks. Both of these worked. But I tried to put it in conditional formatting and it didn't work. Why is this?
Edit: Also, what should I do if there is a blank cell. I would like these cells to return False.
Thanks
Actually this formula worked =NOT(ISNUMBER(MID(A1,8,1)*1)), the other one didn't. Now I just need to figure out how to ignore empty cells because those cells return false (and then true because of the NOT).
Edit: I tried putting in $A40="" to format the blanks a particular way but it doesn't work right. After I press enter it returns this ="$A40="""""
Last edited by ammartino44; 10-15-2013 at 02:45 PM.
What if the 8th character is a space or a punctuation mark (if that's even possible)?
Here's something that's a bit more robust.
=AND(LEN(A2)>=8,ISERR(-MID(A2,8,1)))
Last edited by Tony Valko; 10-15-2013 at 02:48 PM.
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks