Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I need help writing an if statement. I would like to say:
If(A1 = a 4 digit number,"UNAPPROVED","") How do I designate the 4 digit number in the formula? Also, for another statement, I want to say "begins with 4, 5, 6, or 9, give me "","unapproved". Thanks,Pam |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=if(a1999,"Unapproved","")
Irie "Pam M" wrote: I need help writing an if statement. I would like to say: If(A1 = a 4 digit number,"UNAPPROVED","") How do I designate the 4 digit number in the formula? Also, for another statement, I want to say "begins with 4, 5, 6, or 9, give me "","unapproved". Thanks,Pam |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
2nd question:
=if(or(a1=4,a1=5,a1=6,a1-9),"unapproved","") Irie "Pam M" wrote: I need help writing an if statement. I would like to say: If(A1 = a 4 digit number,"UNAPPROVED","") How do I designate the 4 digit number in the formula? Also, for another statement, I want to say "begins with 4, 5, 6, or 9, give me "","unapproved". Thanks,Pam |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() 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 |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Should say:
=if(or(a1=4,a1=5,a1=6,a1=9),"unapproved","") "Iriemon" wrote: 2nd question: =if(or(a1=4,a1=5,a1=6,a1-9),"unapproved","") Irie "Pam M" wrote: I need help writing an if statement. I would like to say: If(A1 = a 4 digit number,"UNAPPROVED","") How do I designate the 4 digit number in the formula? Also, for another statement, I want to say "begins with 4, 5, 6, or 9, give me "","unapproved". Thanks,Pam |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Shouldnt that be
=IF(ISNA(MATCH(LEFT(A1,1),{"4","5","6","9"},0)),"" ,"UnApproved") since the OP has asked for ""I want to say "begins with 4, 5, 6, or 9, give me "","unapproved"."""" If this post helps click Yes --------------- Jacob Skaria "Iriemon" wrote: 2nd question: =if(or(a1=4,a1=5,a1=6,a1-9),"unapproved","") Irie "Pam M" wrote: I need help writing an if statement. I would like to say: If(A1 = a 4 digit number,"UNAPPROVED","") How do I designate the 4 digit number in the formula? Also, for another statement, I want to say "begins with 4, 5, 6, or 9, give me "","unapproved". Thanks,Pam |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How many number digits can I fit into one cell? | Excel Discussion (Misc queries) | |||
Sum of digits in a number | Excel Worksheet Functions | |||
How to customize number to 10 digits including 2 digits after deci | Excel Worksheet Functions | |||
How do I find the sum of all digits in a number? | Excel Discussion (Misc queries) | |||
help with removing digits from a number | Excel Discussion (Misc queries) |