Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I know how to use an IF statement to return a value from a cell B if cell A
is true (for example =IF(A1=100,B3,"no value found"). However i need to compare 2 values and return a 3rd if both values are true. For example, If cell A is 100 and cell B is <200 then return cell c. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=IF(AND(A1100,B1<200),C1,"Two conditions not met")
but more realistically =IF(AND(A1100,B1<200),C1,"") which give either C1 or makes the cell appear blank If you are happy with getting zero when the two conditions are not meet, you can avoid IF =(A1100)*(B1<200)*C1 best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Lman" wrote in message ... I know how to use an IF statement to return a value from a cell B if cell A is true (for example =IF(A1=100,B3,"no value found"). However i need to compare 2 values and return a 3rd if both values are true. For example, If cell A is 100 and cell B is <200 then return cell c. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello,
The boring solution: =If(And(A1100,B1<200),C1) The funny solution: [text result] =REPT(C1,(A1100)*(B1<200)) [value result] =--REPT(C1,(A1100)*(B1<200)) Regards, Bernd |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks!! that was exactly what i was looking for, in fact posting a zero when
the conditions are not met is even better. "Bernard Liengme" wrote: =IF(AND(A1100,B1<200),C1,"Two conditions not met") but more realistically =IF(AND(A1100,B1<200),C1,"") which give either C1 or makes the cell appear blank If you are happy with getting zero when the two conditions are not meet, you can avoid IF =(A1100)*(B1<200)*C1 best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Lman" wrote in message ... I know how to use an IF statement to return a value from a cell B if cell A is true (for example =IF(A1=100,B3,"no value found"). However i need to compare 2 values and return a 3rd if both values are true. For example, If cell A is 100 and cell B is <200 then return cell c. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Glad to have helped!
-- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Lman" wrote in message ... Thanks!! that was exactly what i was looking for, in fact posting a zero when the conditions are not met is even better. "Bernard Liengme" wrote: =IF(AND(A1100,B1<200),C1,"Two conditions not met") but more realistically =IF(AND(A1100,B1<200),C1,"") which give either C1 or makes the cell appear blank If you are happy with getting zero when the two conditions are not meet, you can avoid IF =(A1100)*(B1<200)*C1 best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Lman" wrote in message ... I know how to use an IF statement to return a value from a cell B if cell A is true (for example =IF(A1=100,B3,"no value found"). However i need to compare 2 values and return a 3rd if both values are true. For example, If cell A is 100 and cell B is <200 then return cell c. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Returning a value rather than TRUE or FALSE. | Excel Discussion (Misc queries) | |||
lookup returning true or false | Excel Discussion (Misc queries) | |||
finding cell value in another column and returning a true or fals | Excel Worksheet Functions | |||
Returning a Value if 3 Conditions are True | Excel Worksheet Functions | |||
Leave cell data (IF(ISNA(VLOOKUP) is TRUE instead of returning blank (" ") or #NA | Excel Worksheet Functions |