ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   if less then zero put zero if greater then zero state number (https://www.excelbanter.com/excel-worksheet-functions/114853-if-less-then-zero-put-zero-if-greater-then-zero-state-number.html)

Pamela Jean

if less then zero put zero if greater then zero state number
 
I need a formula that goes like this

if 7000-c2-e2-g2 less then zero put zero in column & if 7000-c2-e2-g2 is
greater then zero put the actual sum in column

I need to have both in one column

Toppers

if less then zero put zero if greater then zero state number
 
=MAX(0,7000-c2-e2-g2)

"Pamela Jean" wrote:

I need a formula that goes like this

if 7000-c2-e2-g2 less then zero put zero in column & if 7000-c2-e2-g2 is
greater then zero put the actual sum in column

I need to have both in one column


Teethless mama

if less then zero put zero if greater then zero state number
 
=IF(700-(C2+E2+G2)<0,0,700-(C2+E2+G2))


"Pamela Jean" wrote:

I need a formula that goes like this

if 7000-c2-e2-g2 less then zero put zero in column & if 7000-c2-e2-g2 is
greater then zero put the actual sum in column

I need to have both in one column



All times are GMT +1. The time now is 01:55 PM.

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