Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default #VALUE error on SUMIF formula linked to multiple worksheets

I am receiving a #VALUE error on a SUMIF formula that I have linked to an
external spreadsheet. If I only have the spreadsheet with the SUMIF formula
open, I receive the #VALUE error. But if I open the external spreadsheet
that it is linked to, then the #VALUE error disappears and the correct value
displays.

Would anyone know why this is happening? I would prefer to only have to
open my one spreadsheet.
Any suggestions would be great.

Thanks,

--
bknutzy
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default #VALUE error on SUMIF formula linked to multiple worksheets

There are some functions that will only work if the sending workbook is open.

=countif(), =sumif(), =indirect()

are a few.

But there can be replacement formulas that may work for you:
=sumproduct()

If you can get your formula to work when the sending workbook is open, post that
working formula and maybe someone can give you an alternative.

To get you started:

=SUMPRODUCT(--('C:\My Documents\Excel\[book1.xls]Sheet1'!$A$1:$A$10="asdf"),
'C:\My Documents\Excel\[book1.xls]Sheet1'!$B$1:$B$10)

is the equivalent of:

=SUMif('C:\My Documents\Excel\[book1.xls]Sheet1'!$A$1:$A$10,"asdf",
'C:\My Documents\Excel\[book1.xls]Sheet1'!$B$1:$B$10)

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

bknutzy wrote:

I am receiving a #VALUE error on a SUMIF formula that I have linked to an
external spreadsheet. If I only have the spreadsheet with the SUMIF formula
open, I receive the #VALUE error. But if I open the external spreadsheet
that it is linked to, then the #VALUE error disappears and the correct value
displays.

Would anyone know why this is happening? I would prefer to only have to
open my one spreadsheet.
Any suggestions would be great.

Thanks,

--
bknutzy


--

Dave Peterson
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
SUMIF across multiple worksheets triffidbook Excel Worksheet Functions 9 January 4th 18 02:23 AM
SUMPRODUCT / SUMIF on Multiple Worksheets with Multiple Criteria kazoo Excel Discussion (Misc queries) 2 August 21st 08 06:22 PM
multiple worksheets linked to a master worksheet Cat Excel Worksheet Functions 0 June 6th 07 12:09 AM
Help with linked formulas & multiple worksheets Matt Excel Worksheet Functions 8 May 24th 06 03:38 PM
Sumif across multiple worksheets Ted Metro Excel Worksheet Functions 2 December 19th 05 10:40 PM


All times are GMT +1. The time now is 03:00 AM.

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

About Us

"It's about Microsoft Excel"