Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
More Help Needed!
Okay - now I have a formula that looks like this:
=IF(AH2=FALSE,0,-1) This is working fine, but now I need it to do more. What I'm trying to do is look at AH2 and if it says FALSE still return the 0 and if it says TRUE return a -1 UNLESS cell B2 has a 0 in it - if cell B2 has a 0 in it and AH2 says TRUE, then I need it to return a 0. Anyone have any ideas? Thanks for your help! |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
More Help Needed!
Try using the following formula:
=IF(AH2=FALSE,0,IF(AND(AH2=TRUE,B2=0),0,-1)) -- Kevin Backmann "sferguson" wrote: Okay - now I have a formula that looks like this: =IF(AH2=FALSE,0,-1) This is working fine, but now I need it to do more. What I'm trying to do is look at AH2 and if it says FALSE still return the 0 and if it says TRUE return a -1 UNLESS cell B2 has a 0 in it - if cell B2 has a 0 in it and AH2 says TRUE, then I need it to return a 0. Anyone have any ideas? Thanks for your help! |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
More Help Needed!
That worked. Thanks so much!
"Kevin B" wrote: Try using the following formula: =IF(AH2=FALSE,0,IF(AND(AH2=TRUE,B2=0),0,-1)) -- Kevin Backmann "sferguson" wrote: Okay - now I have a formula that looks like this: =IF(AH2=FALSE,0,-1) This is working fine, but now I need it to do more. What I'm trying to do is look at AH2 and if it says FALSE still return the 0 and if it says TRUE return a -1 UNLESS cell B2 has a 0 in it - if cell B2 has a 0 in it and AH2 says TRUE, then I need it to return a 0. Anyone have any ideas? Thanks for your help! |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
More Help Needed!
In general one could probably get away with
=-AND(AH2,B2) but the formulae can behave rather differently if input cells are empty. -- David Biddulph "Kevin B" wrote in message ... Try using the following formula: =IF(AH2=FALSE,0,IF(AND(AH2=TRUE,B2=0),0,-1)) -- Kevin Backmann "sferguson" wrote: Okay - now I have a formula that looks like this: =IF(AH2=FALSE,0,-1) This is working fine, but now I need it to do more. What I'm trying to do is look at AH2 and if it says FALSE still return the 0 and if it says TRUE return a -1 UNLESS cell B2 has a 0 in it - if cell B2 has a 0 in it and AH2 says TRUE, then I need it to return a 0. Anyone have any ideas? Thanks for your help! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help needed. | Excel Worksheet Functions | |||
Needed Help.. | Excel Worksheet Functions | |||
Help needed | New Users to Excel | |||
Help needed... | Excel Discussion (Misc queries) | |||
If Then help needed | New Users to Excel |