Re: Solution to "sum if used with a vlookup "??????

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Frank Kabel (frank.kabel_at_freenet.de)
Date: 02/04/04


Date: Wed, 4 Feb 2004 23:41:14 +0100

Hi
first to your error. Are there any text entries in the range D1:D100
(e.g. a heading row). If yes change the formula to
=SUMPRODUCT(--(Sheet1!A2:A100=A1)*(Sheet1!D2:D100))
or
=SUMPRODUCT(--(Sheet1!A1:A100=A1),(Sheet1!D1:D100))

The two dashes convert the boolean values TRUE/FALSE to a number (1/0).
'--' is the same as (-1)*(-1). This mathematical operation forces Excel
to convert booleans to numbers. Another way would be
=SUMPRODUCT((Sheet1!A1:A100=A1)+0,(Sheet1!D1:D100))

HTH
Frank

In the column
anonymous@discussions.microsoft.com wrote:
> not to sound dumb, but what are the two dashes for...
>
> and when i tried the formula it returned #num...
>
> please advise.
>
> thanks a million!
>
>> -----Original Message-----
>> Hi
>> Assuming your Supplier name is in Column A of Sheet1 and the Check
>> Amounts are in Column D
>>
>> On Sheet2 with the Supplier Name in A1, enter in B1
>> =SUMPRODUCT(--(Sheet1!A1:A100=A1)*(Sheet1!D1:D100))
>> Change ranges to suit, but endure the length of both ranges is
>> identical. --
>> Regards
>> Roger Govier
>> "2-4-04" <excel_accor@discussions.microsoft.com> wrote in message
>> news:74fd01c3eb45$ea7542d0$7d02280a@phx.gbl...
>>> Currently I have two worksheets:
>>> 1. contains supplier information, check amount, and other
>>> data.
>>> 2. this one i want to contain only supplier number, name,
>>> and check amount. So i've used a vlookup in worksheet 2 to
>>> retrieve the check amount as its entered into spreadsheet
>>> 1.
>>>
>>> Problem is there are multiple supplier numbers in sheet 1.
>>> How do I get the total of all checks entered for one
>>> supplier to show up in sheet 2? The vlookup formula is
>>> only bringing back the first check amount it sees not the
>>> sum of.
>>>
>>> any and all suggestions welcome.
>>>
>>> thanks in advance...
>>>
>>
>>
>> .



Relevant Pages

  • Re: Validate Excel Range with RegEx
    ... You know Excel itself does accept such ranges from the user. ... Remove dashes for address ... Spam bait: mailto:uce@ftc.gov ...
    (comp.lang.perl.misc)
  • Re: FInding Min Value with Criteria
    ... "Jacob Skaria" wrote: ... the specific ranges with the entire column like B:B. ... Microsoft Excel MVP ... Are these TEXT values or Boolean values? ...
    (microsoft.public.excel.worksheet.functions)
  • Re: FInding Min Value with Criteria
    ... Valko" wrote: ... the specific ranges with the entire column like B:B. ... Microsoft Excel MVP ... Are these TEXT values or Boolean values? ...
    (microsoft.public.excel.worksheet.functions)
  • Re: conditional criteria in DSUM
    ... > =sumproduct() multiplies numbers. ... Those numbers could be in ranges ... > returns a series of boolean values ... >> doesn't SUMPRODUCT multiply ranges? ...
    (microsoft.public.excel.misc)
  • Re: Boolean Algebra / Karnaugh Maps with N > 2 (Higher Dimensions)
    ... "paneled" ranges and Boolean values. ... What is if not a Boolean ... Instead of thinking about this as a single Boolean input A and a binary ... You now have a vanilla three-input K-map with inputs V, ...
    (comp.arch.embedded)