Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I tried to set up an IF criteria:
IF(A1=10,True_Action1, Else IF(A1=20, True_Action2, False_Action) It seems like the formula only perform True_Action1 because criteria 2 overlap criteria one as well. How can I fix this bug? I was thinking changing criteria one to if A1 is between 10 and 19.99, but I don't know how to code this.... Any idea how to code BETWEEN in Excel? Thanks, GU |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Neon520 wrote...
I tried to set up an IF criteria: IF(A1=10,True_Action1, Else IF(A1=20, True_Action2, False_Action) There's no 'ELSE' function in Excel. You're also missing a ')'. It seems like the formula only perform True_Action1 because criteria 2 overlap criteria one as well. How can I fix this bug? I was thinking changing criteria one to if A1 is between 10 and 19.99, but I don't know how to code this.... Any idea how to code BETWEEN in Excel? Rearrange your order of evaluation. =IF(A1=20,True_Action2,IF(A1=10,True_Action1,Fal se_Action)) |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Perhaps this
=IF(AND(A1=10,A1<=19.99),"Do this for true","Do this for false") Mike "Neon520" wrote: I tried to set up an IF criteria: IF(A1=10,True_Action1, Else IF(A1=20, True_Action2, False_Action) It seems like the formula only perform True_Action1 because criteria 2 overlap criteria one as well. How can I fix this bug? I was thinking changing criteria one to if A1 is between 10 and 19.99, but I don't know how to code this.... Any idea how to code BETWEEN in Excel? Thanks, GU |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
One way:
=IF(AND(A1=10,A1<20),true_action,false_action) If you want to stick with your approach, change the order of the testing: IF(A1=20,True_Action2, Else IF(A1=10, True_Action1, False_Action) Hope this helps. Pete On Jan 15, 5:35*pm, Neon520 wrote: I tried to set up an IF criteria: IF(A1=10,True_Action1, Else IF(A1=20, True_Action2, False_Action) It seems like the formula only perform True_Action1 because criteria 2 overlap criteria one as well. *How can I fix this bug? *I was thinking changing criteria one to if A1 is between 10 and 19.99, but I don't know how to code this.... Any idea how to code BETWEEN in Excel? Thanks, GU |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Just realised that I copied your formula without checking it - should
be: IF(A1=20,True_Action2,IF(A1=10, True_Action1, False_Action)) Pete On Jan 15, 5:45*pm, Pete_UK wrote: One way: =IF(AND(A1=10,A1<20),true_action,false_action) If you want to stick with your approach, change the order of the testing: IF(A1=20,True_Action2, Else IF(A1=10, True_Action1, False_Action) Hope this helps. Pete On Jan 15, 5:35*pm, Neon520 wrote: I tried to set up an IF criteria: IF(A1=10,True_Action1, Else IF(A1=20, True_Action2, False_Action) It seems like the formula only perform True_Action1 because criteria 2 overlap criteria one as well. *How can I fix this bug? *I was thinking changing criteria one to if A1 is between 10 and 19.99, but I don't know how to code this.... Any idea how to code BETWEEN in Excel? Thanks, GU- Hide quoted text - - Show quoted text - |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Maybe something like this:
=IF(AND(A1=10,A1<=19.99),"True_Action","False_Act ion") HTH, Paul -- "Neon520" wrote in message ... I tried to set up an IF criteria: IF(A1=10,True_Action1, Else IF(A1=20, True_Action2, False_Action) It seems like the formula only perform True_Action1 because criteria 2 overlap criteria one as well. How can I fix this bug? I was thinking changing criteria one to if A1 is between 10 and 19.99, but I don't know how to code this.... Any idea how to code BETWEEN in Excel? Thanks, GU |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
THANKS A LOT FOR ALL OF THESE HELPFUL ANSWERS, EVERYONE!!!
"PCLIVE" wrote: Maybe something like this: =IF(AND(A1=10,A1<=19.99),"True_Action","False_Act ion") HTH, Paul -- "Neon520" wrote in message ... I tried to set up an IF criteria: IF(A1=10,True_Action1, Else IF(A1=20, True_Action2, False_Action) It seems like the formula only perform True_Action1 because criteria 2 overlap criteria one as well. How can I fix this bug? I was thinking changing criteria one to if A1 is between 10 and 19.99, but I don't know how to code this.... Any idea how to code BETWEEN in Excel? Thanks, GU |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
countif formula to find the occurances of a number that is greater than one number but less than another | Excel Discussion (Misc queries) | |||
convert text-format number to number in excel 2000%3f | Excel Discussion (Misc queries) | |||
Count number of times a specific number is displayed in a cell ran | Excel Worksheet Functions | |||
excel format cells/Number/Category: Number problem | Excel Discussion (Misc queries) | |||
Rounding a number to a multiple quantity that adds to a fixed total number | Excel Worksheet Functions |