ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Add condition to =MAX formula (https://www.excelbanter.com/excel-discussion-misc-queries/245732-add-condition-%3Dmax-formula.html)

KC

Add condition to =MAX formula
 
=MAX(0,((U$1-$K4)/7))*R4-T4

I'm using the formula above, which I need to add a condition to, but I'm not
sure how. If cell D4 = "On Board", then I want to the formula above to
continue, if anything else is in D4, I want the cell to appear blank. Thanks
:)



Don Guillett

Add condition to =MAX formula
 
Have you tried

=if(d4<"on board","",MAX(0,((U$1-$K4)/7))*R4-T4)
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"KC" wrote in message
...
=MAX(0,((U$1-$K4)/7))*R4-T4

I'm using the formula above, which I need to add a condition to, but I'm
not
sure how. If cell D4 = "On Board", then I want to the formula above to
continue, if anything else is in D4, I want the cell to appear blank.
Thanks
:)




David Biddulph[_2_]

Add condition to =MAX formula
 
=IF(D4="On Board",MAX(0,((U$1-$K4)/7))*R4-T4,"")
--
David Biddulph

KC wrote:
=MAX(0,((U$1-$K4)/7))*R4-T4

I'm using the formula above, which I need to add a condition to, but
I'm not sure how. If cell D4 = "On Board", then I want to the
formula above to continue, if anything else is in D4, I want the cell
to appear blank. Thanks :)




Mike H

Add condition to =MAX formula
 
Hi,

=IF(D4="On Board",MAX(0,((U$1-$K4)/7))*R4-T4,"")

Mike

"KC" wrote:

=MAX(0,((U$1-$K4)/7))*R4-T4

I'm using the formula above, which I need to add a condition to, but I'm not
sure how. If cell D4 = "On Board", then I want to the formula above to
continue, if anything else is in D4, I want the cell to appear blank. Thanks
:)




All times are GMT +1. The time now is 08:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com