Cell Reference a date in SumIf function

buffjoe311

New Member
Joined
Feb 24, 2009
Messages
2
Hello all,

This is my first post because I can usually just search to find answers, but not for this one. My problem is:

I have a SumIf formula to add up quantities that occurred between two specific dates. The formula works when I enter the dates manually, but I cannot get it to work when trying to reference the cells with the date in them. Here is the formula:

=SUMIF('Actual HDD'!$A$2:$A$65536,"<01/28/2009",'Actual HDD'!$B$2:$B$65536)-SUMIF('Actual HDD'!$A$2:$A$65536,"<12/29/2008",'Actual HDD'!$B$2:$B$65536)


I'd like to cell reference the highlighted blue part with the "<".
Please help, this is creating waaaaaay too much manual labor.

Thanks.............
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Welcome to the board...

Try

=SUMIF('Actual HDD'!$A$2:$A$65536,"<"&A1,'Actual HDD'!$B$2:$B$65536)-SUMIF('Actual HDD'!$A$2:$A$65536,"<"&B1,'Actual HDD'!$B$2:$B$65536)
A1 = 01/28/2009
B1 = 12/29/2008

Hope that helps...
 
Upvote 0
WOW!!! You made my day.....for future reference, what is the "&" symbol's function. That was prob the only thing I haven't tried.


thank you thank you thank you
 
Upvote 0
The & acts as a concatinating operative, joining the "<" and A1 together as a single enity
lenze
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,580
Members
449,174
Latest member
chandan4057

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