View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
NBVC[_119_] NBVC[_119_] is offline
external usenet poster
 
Posts: 1
Default if statement for number of digits


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