I'm trying to write a formula that would check a single cell to see if it contains a number. If it does, it will return 1000, if not it returns an #N/A result. To start, I've written the following simple formula just to let me know if the cell contains a number, but for some reason it doesn't work when a number is present:
I've tested this formula with a number keyed into L2 and a formula that returns a number and both return a #N/A error. By evaluating the formula, I can see that the 'ISNUMBER(L2)' evaluates to True, but MATCH must not like one True value as a lookup_array. Through my searching, I see normally 'MATCH(TRUE(ISNUMBER(' is often followed by the SEARCH function, but I really just want to confirm that the cell contains a number. I've also tried using 'MATCH(TRUE,L2>0', but that didn't work.
This seems like a simple task, but for some reason I just can't get it to work.
Code:
=MATCH(TRUE,ISNUMBER(L2),0)
I've tested this formula with a number keyed into L2 and a formula that returns a number and both return a #N/A error. By evaluating the formula, I can see that the 'ISNUMBER(L2)' evaluates to True, but MATCH must not like one True value as a lookup_array. Through my searching, I see normally 'MATCH(TRUE(ISNUMBER(' is often followed by the SEARCH function, but I really just want to confirm that the cell contains a number. I've also tried using 'MATCH(TRUE,L2>0', but that didn't work.
This seems like a simple task, but for some reason I just can't get it to work.