#1   Report Post  
Scorpvin
 
Posts: n/a
Default Sumif


My sumif formula only works if I have the source document open. If I
open the file with the sumif first and update links it returns #VALUE!
When I open the source document it works automatically. I know the
reason is because I'm referencing another workbook. Is there something
I need to add to the formula or is there an option in excel I need to
adjust?


--
Scorpvin
------------------------------------------------------------------------
Scorpvin's Profile: http://www.excelforum.com/member.php...o&userid=27678
View this thread: http://www.excelforum.com/showthread...hreadid=471902

  #2   Report Post  
JMB
 
Posts: n/a
Default

Not sure how to make sumif work, but Sumproduct may be an alternative.

As an example, this formula will return the number of times "jeff" appears
in range A1:A4 of Book1.

=SUMPRODUCT(--('H:\Blakley\Excel\[Book1.xls]Sheet1'!A1:A4="jeff"))

"Scorpvin" wrote:


My sumif formula only works if I have the source document open. If I
open the file with the sumif first and update links it returns #VALUE!
When I open the source document it works automatically. I know the
reason is because I'm referencing another workbook. Is there something
I need to add to the formula or is there an option in excel I need to
adjust?


--
Scorpvin
------------------------------------------------------------------------
Scorpvin's Profile: http://www.excelforum.com/member.php...o&userid=27678
View this thread: http://www.excelforum.com/showthread...hreadid=471902


  #3   Report Post  
RagDyer
 
Posts: n/a
Default

You can use a combination of SUM and IF in an array formula to return your
values from closed WBs.

Post your formula for help.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Scorpvin" wrote in
message ...

My sumif formula only works if I have the source document open. If I
open the file with the sumif first and update links it returns #VALUE!
When I open the source document it works automatically. I know the
reason is because I'm referencing another workbook. Is there something
I need to add to the formula or is there an option in excel I need to
adjust?


--
Scorpvin
------------------------------------------------------------------------
Scorpvin's Profile:

http://www.excelforum.com/member.php...o&userid=27678
View this thread: http://www.excelforum.com/showthread...hreadid=471902


  #4   Report Post  
Scorpvin
 
Posts: n/a
Default


RD,
Here is the formula. Note the source is an different workbook.

=SUMIF('C:\Documents and Settings\Hotspots\My Documents\[Source
IFSUM.xls]Sheet1'!$A:$B,"Rectangle",'C:\Documents and
Settings\Hotspots\My Documents\[Source IFSUM.xls]Sheet1'!$B:$B)


--
Scorpvin
------------------------------------------------------------------------
Scorpvin's Profile: http://www.excelforum.com/member.php...o&userid=27678
View this thread: http://www.excelforum.com/showthread...hreadid=471902

  #5   Report Post  
RagDyer
 
Posts: n/a
Default

Why are you searching 2 columns (A:B) for "Rectangle",
and returning the values from a single Column B?
Typo?

Anyway, here's the simple syntax to follow in this *array* formula:

=SUM(IF(A1:A1000="Rectangle",B1:B1000))

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, notice that you cannot use entire Column references (A:A) in array
formulas.

You should be able to in the next version of XL though.
--
HTH,

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


"Scorpvin" wrote in
message ...

RD,
Here is the formula. Note the source is an different workbook.

=SUMIF('C:\Documents and Settings\Hotspots\My Documents\[Source
IFSUM.xls]Sheet1'!$A:$B,"Rectangle",'C:\Documents and
Settings\Hotspots\My Documents\[Source IFSUM.xls]Sheet1'!$B:$B)


--
Scorpvin
------------------------------------------------------------------------
Scorpvin's Profile:

http://www.excelforum.com/member.php...o&userid=27678
View this thread: http://www.excelforum.com/showthread...hreadid=471902




  #6   Report Post  
Scorpvin
 
Posts: n/a
Default


You are awesome! Thanks for the help.


--
Scorpvin
------------------------------------------------------------------------
Scorpvin's Profile: http://www.excelforum.com/member.php...o&userid=27678
View this thread: http://www.excelforum.com/showthread...hreadid=471902

  #7   Report Post  
Scorpvin
 
Posts: n/a
Default


Can how do you include a wildcard character in an array formula such as
*
Example Rectang*


--
Scorpvin
------------------------------------------------------------------------
Scorpvin's Profile: http://www.excelforum.com/member.php...o&userid=27678
View this thread: http://www.excelforum.com/showthread...hreadid=471902

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
SUMIF with Mutiple Ranges & Criteria PokerZan Excel Discussion (Misc queries) 5 August 4th 05 10:31 PM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM
SUM(IF( Array to avoid #NUM! values Elijah Excel Worksheet Functions 7 November 21st 04 02:17 PM


All times are GMT +1. The time now is 09:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"