Hello,
I need some help with making one cell check another cell's first character to see if it is either A-Z (caps don't matter) or 0-9 and return the value of a single cell if it is. The code that I am current using is:
As I'm sure most know, this is supposed to change the first digit of cell D10 to ASCII and then check to see if it falls within one of those ranges that corresponds to A-Z, a-z, and 0-9, return a blank if not and the value of C12 if true. The problem is, I am able to put in symbols such as ?,!, etc into D10, and it still returns the value of C12. When typing in just the CODE(LEFT) part of the formula in another cell to see what D10 returns, it gives me a value of 63 for a ?, which falls out of those ranges, so the formula should return a blank correct? Is there any suggestion on what I can do to fix this problem?![]()
=IF(OR(AND(CODE(LEFT(D$10,1))>=65,CODE(LEFT(D$10,1)<=90)),AND(CODE(LEFT(D$10,1))>=97,CODE(LEFT(D$10,1)<=122)),AND(CODE(LEFT(D$10,1))>=48,CODE(LEFT(D$10,1)<=57))),C12,"")
Thank you in advance.
Bookmarks