Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Im using the following formula and it works, however I need to modify it to cover an additional condition. My formula is: IF(E25-F19-E22<=0,0,E25-F19-E22) I want the above to occur unless cell J3 is equal to E. If cell J3 = E, instead of performing the above calculation I need N/A inserted. Thanks. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Becky
=IF(J3="E",NA(),IF(E25-F19-E22<=0,0,E25-F19-E22)) or simplified to =IF(J3="E",NA(),MAX(0,E25-F19-E22)) -- Regards Roger Govier "BECKYB913" wrote in message ... I'm using the following formula and it works, however I need to modify it to cover an additional condition. My formula is: IF(E25-F19-E22<=0,0,E25-F19-E22) I want the above to occur unless cell J3 is equal to "E". If cell J3 = "E", instead of performing the above calculation I need "N/A" inserted. Thanks. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=IF(J3="E",NA(),IF(E25-F19-E22<=0,0,E25-F19-E22))
or replace NA() by "N/A" if you actually want the text string N/A rather than the error value #N/A -- David Biddulph "BECKYB913" wrote in message ... I'm using the following formula and it works, however I need to modify it to cover an additional condition. My formula is: IF(E25-F19-E22<=0,0,E25-F19-E22) I want the above to occur unless cell J3 is equal to "E". If cell J3 = "E", instead of performing the above calculation I need "N/A" inserted. Thanks. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Or you could simplify =IF(J3="E",NA(),IF(E25-F19-E22<=0,0,E25-F19-E22)) to
=IF(J3="E",NA(),MAX(E25-F19-E22,0)) -- David Biddulph "David Biddulph" wrote in message ... =IF(J3="E",NA(),IF(E25-F19-E22<=0,0,E25-F19-E22)) or replace NA() by "N/A" if you actually want the text string N/A rather than the error value #N/A "BECKYB913" wrote in message ... I'm using the following formula and it works, however I need to modify it to cover an additional condition. My formula is: IF(E25-F19-E22<=0,0,E25-F19-E22) I want the above to occur unless cell J3 is equal to "E". If cell J3 = "E", instead of performing the above calculation I need "N/A" inserted. Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reusing formula | Excel Discussion (Misc queries) | |||
Formula to deduct unpaid breaks in time sheet | Excel Discussion (Misc queries) | |||
Excel formula for a time sheet | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
How do I set up a formula on a time sheet to calculate time in 1/. | Excel Discussion (Misc queries) |