If Cell is between specified dates then perform sum how?

NauticaX

New Member
Joined
Feb 4, 2005
Messages
13
I tried search and googling but I can't seem to figure out how to do it with dates.

I would like to perform this =-P6+C6+U6 in say Cell W6 but only if

Cell D6 has a date greater then 1/15/06 but less then or equal to 1/31/06

Would I use the SUMIF function?

TIA
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
NauticaX said:
I tried search and googling but I can't seem to figure out how to do it with dates.

I would like to perform this =-P6+C6+U6 in say Cell W6 but only if

Cell D6 has a date greater then 1/15/06 but less then or equal to 1/31/06

Would I use the SUMIF function?

TIA

Try

Code:
=IF(AND(D6>X1,D6<X2),C6-P6+U6,"")
Where X1 and X2 hold your start and stop dates.

Edit for code tags...
 
Upvote 0
Try this:
Book1
CDEFGHIJKLMNOPQRSTUVW
4Start1/15/2006
5End1/31/2006
651/20/2006210-3
Sheet1


Coises! Beat to the punch again. Oh well, it was just jon.
:LOL:
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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