Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
If statement
Hi Everyone,
I am having trouble getting my formula to follow my logic! I want the cell to follow the logic of: If AG360,then enter AL28-AG36,however if AL28-AG36<0 then enter 0 I currently have =IF(AG360,AG36-AL28,AL28), IF(AG36-AL28<0,0,AG36-AL28) My logic is not following how it should be and I am getting a Value error. Thanks in advance! Cheers, Meg |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
If statement
I think this formula does what you want...
=IF(AG360,MAX(0,AG36-AL28),AL28) -- Rick (MVP - Excel) "meggie" wrote in message ... Hi Everyone, I am having trouble getting my formula to follow my logic! I want the cell to follow the logic of: If AG360,then enter AL28-AG36,however if AL28-AG36<0 then enter 0 I currently have =IF(AG360,AG36-AL28,AL28), IF(AG36-AL28<0,0,AG36-AL28) My logic is not following how it should be and I am getting a Value error. Thanks in advance! Cheers, Meg |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
If statement
Your description and formula do not match. As per your description
"If AG360,then enter AL28-AG36,however if AL28-AG36<0 then enter 0" try the below =IF(AG360,MAX(0,AL28-AG36)) If this post helps click Yes --------------- Jacob Skaria "meggie" wrote: Hi Everyone, I am having trouble getting my formula to follow my logic! I want the cell to follow the logic of: If AG360,then enter AL28-AG36,however if AL28-AG36<0 then enter 0 I currently have =IF(AG360,AG36-AL28,AL28), IF(AG36-AL28<0,0,AG36-AL28) My logic is not following how it should be and I am getting a Value error. Thanks in advance! Cheers, Meg |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
If statement
and the FALSE statement goes as AL28
=IF(AG360,MAX(0,AL28-AG36),AL28) If this post helps click Yes --------------- Jacob Skaria "Jacob Skaria" wrote: Your description and formula do not match. As per your description "If AG360,then enter AL28-AG36,however if AL28-AG36<0 then enter 0" try the below =IF(AG360,MAX(0,AL28-AG36)) If this post helps click Yes --------------- Jacob Skaria "meggie" wrote: Hi Everyone, I am having trouble getting my formula to follow my logic! I want the cell to follow the logic of: If AG360,then enter AL28-AG36,however if AL28-AG36<0 then enter 0 I currently have =IF(AG360,AG36-AL28,AL28), IF(AG36-AL28<0,0,AG36-AL28) My logic is not following how it should be and I am getting a Value error. Thanks in advance! Cheers, Meg |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Embedding an OR statement in an IF statement efficiently | Excel Discussion (Misc queries) | |||
SUMIF statement with AND statement | Excel Discussion (Misc queries) | |||
appending and IF statement to an existing IF statement | Excel Worksheet Functions | |||
If statement and Isblank statement | Excel Worksheet Functions | |||
Help please, IF statement/SUMIF statement | Excel Worksheet Functions |