SUMIF Multiple Workbooks

G

Guest

Hi All

Currently go a problem with the SumIf Worksheet Function.

I have a list of data stored in a workbook. Lets say C:\Temp\Source.xls.

I have a Input Sheet stored in C:\Temp\Input.xls.

In cell A2 on the Input Sheet I have a value entered called March.
In cell A3 on the Input Sheet I have a formula: #Value!

It does not come up if both workbooks are open.

Kind Regards

D

=SUMIF('C:\Temp\[Source.xls]Sheet1'!$A$2:$A$30,B3,'C:\Temp\[Source.xls]Sheet1'!$B$2:$B$30)

Why does the cell come up with error
 
R

RagDyeR

Sumif() does *not* work on closed files.

However, you could use an *array* formula, which is a combination of SUM()
and IF() to access your closed WBs.

Try this:

=SUM(IF('C:\Temp\[Source.xls]Sheet1'!$A$2:$A$30=B3,'C:\Temp\[Source.xls]Sheet1'!$B$2:$B$30,""))

--
Array formulas are entered using CSE, <Ctrl> <Shift> <Enter>, instead of the
regular <Enter>, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually. Also, CSE *must* be used when
revising the formula.

This returns a blank cell if there is no match for B3.

Replace the last set of double quotes ( "" ) with zero ( 0 ), if you wish to
display that return instead.
--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

Hi All

Currently go a problem with the SumIf Worksheet Function.

I have a list of data stored in a workbook. Lets say C:\Temp\Source.xls.

I have a Input Sheet stored in C:\Temp\Input.xls.

In cell A2 on the Input Sheet I have a value entered called March.
In cell A3 on the Input Sheet I have a formula: #Value!

It does not come up if both workbooks are open.

Kind Regards

D

=SUMIF('C:\Temp\[Source.xls]Sheet1'!$A$2:$A$30,B3,'C:\Temp\[Source.xls]Sheet1'!$B$2:$B$30)

Why does the cell come up with error
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top