Home

Subtracting between cells

ducatist3v3
New Contributor

Hi

not sure how to subtract between cells (eg D4-D7) only when another cell has a specific number inputted (eg D2 has 1004 inputted)...at all other times the result should be zero...

Thanks 

5 Replies

Hi

 

=(D2=1004)*(D4-D7)

 

I will give this a try... thank you!

THAT WORKS BUT CAN IT ALSO BE SO WHEN D3=1001 THEN D7 WILL EQUAL D3 (AND D4 WILL EQUAL ZERO) IF THAT MAKES SENSE??

SOOO CLOSE!!

That works but can it be tweaked so when D2=1001 then D7 will have the same value as D3 (and D4 will equal zero) If that makes sense??

SOOO CLOSE!!

Sorry, I do not understand.