Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum If difference 1

Status
Not open for further replies.

phish20002003

Programmer
Sep 5, 2006
99
US
Easy questions that is driving me mad.

In excel I have two fields, a and b

I want to see the difference from a in b if negatage 0.

Example a = 30 always the diff over 5 so b = 15
Example a = 3 always the diff over 5 so b = 0

Thanks

-Phish
"Why do you need to think? Can't we just sit and go budumbudumbudum with our lips for a bit?" - Mostly Harmless
fsm.png
 




Phish,

Please state your problem clearly. It is TOTALLY gibberish to me.

Skip,
[sub]
[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue][/sub]
 
sorry skip.

I have two cells. one with hours for the week. in my second cell if the hours are over 5 I need the difference. If they are not I need 0.

I'm sure it's simple but it's driving me mad.

-Phish
"Why do you need to think? Can't we just sit and go budumbudumbudum with our lips for a bit?" - Mostly Harmless
fsm.png
 




[tt]
A B
=if(A1<=5,0,A1-5)
4 0
7 2
[/tt]
IS that what you want?

Skip,
[sub]
[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue][/sub]
 
perfect thanks.

-Phish
"Why do you need to think? Can't we just sit and go budumbudumbudum with our lips for a bit?" - Mostly Harmless
fsm.png
 




I don't see how my solution relates to your original example...
[tt]
Example a = 30 always the diff over 5 so b = 15
[/tt]
the expression returns 25, not 15!

Skip,
[sub]
[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue][/sub]
 
[/slaps hand]

sorry about the typo in the forum it was supposed to say,

Example a = 20 always the diff over 5 so b = 15



-Phish
"Why do you need to think? Can't we just sit and go budumbudumbudum with our lips for a bit?" - Mostly Harmless
fsm.png
 
I had a little chuckle Skip.

Regards
Peter Buitenhek
ProfitDeveloper.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top