Forum Discussion
FClifton
Nov 07, 2019Copper Contributor
Number entered as text in text formatted cell
I have a column where the entire column was selected and the format specified as text. However, when I enter data that looks like a number, e.g. 12345, I get the warning about a number entered as text. That entry is used in a different cell in a VLOOKUP formula. The VLOOKUP fails until I change the data to be 'real' text by using Data | Text to Columns. What can I do to make the data I enter be treated fully as text? Thanks!
5 Replies
- Patrick2788Silver Contributor
I think the bolded part is what you're interested in. This formula will check for number or text.
=IFERROR(VLOOKUP(TEXT(A2,"0"),table_array,2,0),VLOOKUP(A2*1,table_array,2,0))