View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pam M Pam M is offline
external usenet poster
 
Posts: 65
Default if statement for number of digits

Both of these items worked perfectly, and were the most concise of the
choices. thank you all for your help, Pam

"NBVC" wrote:


Try these

=IF(Len(A1)=4,"Unapproved","")

=IF(OR(Left(A1)+0={4,5,6,9}),"","Unapproved")


--
NBVC

Where there is a will there are many ways.
'The Code Cage' (http;//www.thecodecage.com)
------------------------------------------------------------------------
NBVC's Profile: http://www.thecodecage.com/forumz/member.php?userid=74
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=122317