If I enter a 7 digit number in to A1 I want '1' to be diplayed in B1, if a 5 digit number is entered in A1 I want '2' to be displayed in B1. Any other amount of numbers or text are to display 'UNKNOWN'.
Please help.
If I enter a 7 digit number in to A1 I want '1' to be diplayed in B1, if a 5 digit number is entered in A1 I want '2' to be displayed in B1. Any other amount of numbers or text are to display 'UNKNOWN'.
Please help.
Hi,
use a combination of If and LEN functions
Try:
=If(Len(A1)=7,1,IF(Len(A1)=5,2,"Unknown))
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks