Suming and Subtracting

O_Junior

New Member
Joined
Oct 22, 2014
Messages
31
Hey guys,

I need some help. I need a formula that, sum from I7:I1000 if the cells A7:A1000 are filled with "RL1", and G7:G1000 are filled with TODAY() date, but i need to subtract the value of I7:I1000 if the cells J7:J1000 are filled with "OK". I don't know how to do that and I've been trying to come up with a solution for weeks now! Can someone help me?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Upvote 0
The formula tests each condition producing arrays of logical values, True or False, for each one.

-- coerces (converts) those logical values to 1 or 0.

As G7:G1000 contains Date/Time, to do a comparison with TODAY() is necessary to extract the integer part - that is exactly what the INT function does in INT(G7:G1000)

To understand how Excel stores Date/Time see
Dates And Times In Excel

For an excellent explanation about SUMPRODUCT see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

M.
 
Upvote 0
The formula tests each condition producing arrays of logical values, True or False, for each one.

-- coerces (converts) those logical values to 1 or 0.

As G7:G1000 contains Date/Time, to do a comparison with TODAY() is necessary to extract the integer part - that is exactly what the INT function does in INT(G7:G1000)

To understand how Excel stores Date/Time see
Dates And Times In Excel

For an excellent explanation about SUMPRODUCT see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

M.
All right, thank you again!
 
Upvote 0

Forum statistics

Threads
1,216,434
Messages
6,130,611
Members
449,584
Latest member
c_clark

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top