sumproduct

jessicafang

Board Regular
Joined
Jul 8, 2015
Messages
115
Hi everyone,

Need help from you guys.

TO avoid having #value, I have to use sumproduct formula, can I include <"01/01/2015" within the sumproduct formula as I need to sumif the column B under the condition of before 2015 and after 2015 without creating a new column.

Many thanks,
Jess
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi everyone,

Need help from you guys.

TO avoid having #value, I have to use sumproduct formula, can I include <"01/01/2015" within the sumproduct formula as I need to sumif the column B under the condition of before 2015 and after 2015 without creating a new column.

Many thanks,
Jess

Hi Jessica,

I would use sumifs formula instead. but that will depend on which version of Excel you're using.
 
Upvote 0
Thanks for you reply. I am using 2013 Excel. Would sumifs won't give me #value when I close the linked file?
 
Upvote 0
Thanks for you reply. I am using 2013 Excel. Would sumifs won't give me #value when I close the linked file?

HA :rolleyes:

The eternal problem of external links... (I just hate them ;) )

The information from external links only updates if you tell Excel to do it. try to disable the automatic external links update and it will solve the problem.

Another way is to incorporate the sheet you have the information into the spreadsheet and hide it. (you can set up a "veryhidden" status on the code view and prevent other users to see it (unless of course they know how to look for it).
 
Upvote 0
Hi Maybe
=SUMPRODUCT(--(B2:B6>=B2),--(B2:B6<=B3),--(A2:A6)) 23=VALUE BETWEEN 1/1/2014 AND 4/23/2015


[TABLE="width: 112"]
<colgroup><col width="56" span="2" style="width:42pt"> </colgroup><tbody>[TR]
[TD="width: 56"]
[TABLE="width: 112"]
<colgroup><col width="56" span="2" style="width:42pt"> </colgroup><tbody>[TR]
[TD="width: 56"]VALUE [/TD]
[TD="width: 56"] DATE[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="class: xl65, align: right"]1/1/2014[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="class: xl65, align: right"] 4/23/2015[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD="class: xl65, align: right"]1/1/2016[/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD="class: xl65, align: right"]4/5/2014[/TD]
[/TR]
[TR]
[TD="align: right"]10[/TD]
[TD="class: xl65, align: right"]2/23/2015[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="width: 56"][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Thanks for you reply. I am using 2013 Excel. Would sumifs won't give me #value when I close the linked file?
If you could post what your sumif(s) formula would look like if that wasn't an issue.
That would make it easier to convert it to sumproduct.
 
Upvote 0
can I include <"01/01/2015" within the sumproduct formula

Within the sumproduct, you'd have to convert "01/01/2015" to a real date, sumproduct is seeing it as just a text string.

Try it like
<"01/01/2015"+0
Or even
< DATE(2015,1,1)
<date(2015,1,1)< html=""></date(2015,1,1)<>
 
Upvote 0
Within the sumproduct, you'd have to convert "01/01/2015" to a real date, sumproduct is seeing it as just a text string.

Try it like
<"01/01/2015"+0
Or even
< DATE(2015,1,1)
<date(2015,1,1)< html=""></date(2015,1,1)<>

It didn't work, just tried both, not sure where I did was wrong though.:(
 
Upvote 0
Well, it's certainly possible to hard code dates into a formula.
To find out why it's not working for you, You'd have to post the sumproduct you tried that failed.
And it would help to see the sumif(s) that works when the book is open.
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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