Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ww
 
Posts: n/a
Default sumif vs sumproduct

If I use sumif([table.xls]sheet1!rng,A1,[table.xls]sheet1!table) it returns
the correct value.
However if I use
sumproduct(--([table.xls]sheet1!rng=A1),[table.xls]sheet1!table)
it returns #value. Anybody have any ideas as to what I might be doing
wrong? Thanks.


  #2   Report Post  
Don Guillett
 
Posts: n/a
Default

try
=sumproduct(--([table.xls]sheet1!rng=A1),--[table.xls]sheet1!table)
or
=sumproduct(([table.xls]sheet1!rng=A1)*[table.xls]sheet1!table)

--
Don Guillett
SalesAid Software

"ww" wrote in message
...
If I use sumif([table.xls]sheet1!rng,A1,[table.xls]sheet1!table) it

returns
the correct value.
However if I use
sumproduct(--([table.xls]sheet1!rng=A1),[table.xls]sheet1!table)
it returns #value. Anybody have any ideas as to what I might be doing
wrong? Thanks.




  #3   Report Post  
Duke Carey
 
Posts: n/a
Default

Sumproduct() requires the two ranges to be of identical size - a 1 col
multi-row range, or a 1-row, multi column range. Is your range rng identical
in size to range table?

"ww" wrote:

If I use sumif([table.xls]sheet1!rng,A1,[table.xls]sheet1!table) it returns
the correct value.
However if I use
sumproduct(--([table.xls]sheet1!rng=A1),[table.xls]sheet1!table)
it returns #value. Anybody have any ideas as to what I might be doing
wrong? Thanks.


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
Sumif or Sumproduct Justine Burn via OfficeKB.com Excel Worksheet Functions 4 March 11th 05 12:42 AM
Sumif or Sumproduct 2 criterias not working SMac Excel Discussion (Misc queries) 5 February 28th 05 07:55 PM
Sumif not Sumproduct David Excel Worksheet Functions 4 December 8th 04 11:39 AM
SUMIF or SUMPRODUCT or something else? || cypher || Excel Worksheet Functions 7 November 9th 04 10:45 PM


All times are GMT +1. The time now is 03:22 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"