Named Ranges With Dates

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

I have the following formula

Code:
=IF(Name_Player_004="","-", SUMPRODUCT((B318:B387>Date_P1_From)*(B318:B387< Date_P1_To)*(D318:D387)))

Date_1_From is 13/08/11
Date_1_To is 05/09/11

Column B has the dates and column D has the figures

I need this formula to calculate including the 2 dates?
At the moment the formula doesn't calculate on these dates

Thanks in advance
 
Last edited:

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi Guys,

I have the following formula



"=IF(Name_004="","-", SUMPRODUCT((B318:B387>Date_1_From)*(B318:B387<?XML:NAMESPACE PREFIX = Date_1_To)*(D318 /><Date_1_To)*(D318:D387)))"< p>

Date_1_From is 13/08/11
Date_1_To is 05/09/11

Column B has the dates and column D has the figures

I need this formula to calculate including the 2 dates?
At the moment the formula doesn't calculate on these dates

Thanks in advance
Looks like part of your formula is missing.

If the formula contains the "less than" character put space characters on both sides of it. The forum software interprets the "less than" character as a html code character.
</Date_1_To)*(D318:D387)))"<>
 
Upvote 0
Yeah, i just figured that out as you replied, should be all the formula now

thanks
 
Upvote 0
I have played around a bit and used the >= and <= and it appears to work

But is this a reliable way to achieve my goals?

Thanks
 
Upvote 0
I have played around a bit and used the >= and <= and it appears to work

But is this a reliable way to achieve my goals?

Thanks
Yes, that's a valid and reliable method.

If you're using Excel 2007 or later and don't need backwards version compatibility I recommend using the SUMIFS function. It's bit more efficient than the SUMPRODUCT function.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,277
Members
452,902
Latest member
Knuddeluff

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