+ Reply to Thread
Results 1 to 13 of 13

SUMPRODUCT Help please

  1. #1
    Registered User
    Join Date
    02-07-2006
    Posts
    17

    SUMPRODUCT Help please *more added*

    Im using this formula: =SUMPRODUCT(--(C6:C403="??"),--(D6:D403="??")) which works well, however where the "??" are placed i would like to enter a cell location i.e "A6" which will use whatever text is in the cell to perform the sum. Is this possible? it would save alot of time rather than changing criteria in the formula everytime

    Help is much appreciated


    PLEASE LOOK TO BOTTOM OF POST

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    You can reference cells in SUMPRODUCT. For instance:

    =SUMPRODUCT(--(C6:C403=A6),--(D6:D403=A6))

    Steve

  3. #3
    Registered User
    Join Date
    02-07-2006
    Posts
    17
    HAHA as simple as that, cheers matey

  4. #4
    Chip Pearson
    Guest

    Re: SUMPRODUCT Help please

    Try

    =SUMPRODUCT(--(C6:C403=A6),--(D6:D403=A6))


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com

    "SamGB" <[email protected]> wrote
    in message
    news:[email protected]...
    >
    > Im using this formula:
    > =SUMPRODUCT(--(C6:C403="??"),--(D6:D403="??"))
    > which works well, however where the "??" are placed i would
    > like to
    > enter a cell location i.e "A6" which will use whatever text is
    > in the
    > cell to perform the sum. Is this possible? it would save alot
    > of time
    > rather than changing criteria in the formula everytime
    >
    > Help is much appreciated
    >
    >
    > --
    > SamGB
    > ------------------------------------------------------------------------
    > SamGB's Profile:
    > http://www.excelforum.com/member.php...o&userid=31263
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=516363
    >




  5. #5
    Trevor Shuttleworth
    Guest

    Re: SUMPRODUCT Help please

    =SUMPRODUCT(--(C6:C403=A6),--(D6:D403=B6))

    Regards

    Trevor


    "SamGB" <[email protected]> wrote in message
    news:[email protected]...
    >
    > Im using this formula: =SUMPRODUCT(--(C6:C403="??"),--(D6:D403="??"))
    > which works well, however where the "??" are placed i would like to
    > enter a cell location i.e "A6" which will use whatever text is in the
    > cell to perform the sum. Is this possible? it would save alot of time
    > rather than changing criteria in the formula everytime
    >
    > Help is much appreciated
    >
    >
    > --
    > SamGB
    > ------------------------------------------------------------------------
    > SamGB's Profile:
    > http://www.excelforum.com/member.php...o&userid=31263
    > View this thread: http://www.excelforum.com/showthread...hreadid=516363
    >




  6. #6
    Sloth
    Guest

    RE: SUMPRODUCT Help please

    =SUMPRODUCT(--(C6:C403=A6),--(D6:D403=A6))

    "SamGB" wrote:

    >
    > Im using this formula: =SUMPRODUCT(--(C6:C403="??"),--(D6:D403="??"))
    > which works well, however where the "??" are placed i would like to
    > enter a cell location i.e "A6" which will use whatever text is in the
    > cell to perform the sum. Is this possible? it would save alot of time
    > rather than changing criteria in the formula everytime
    >
    > Help is much appreciated
    >
    >
    > --
    > SamGB
    > ------------------------------------------------------------------------
    > SamGB's Profile: http://www.excelforum.com/member.php...o&userid=31263
    > View this thread: http://www.excelforum.com/showthread...hreadid=516363
    >
    >


  7. #7
    Registered User
    Join Date
    02-07-2006
    Posts
    17
    Cheers guys,
    could you help me with this problem aswell,
    im using this formula:
    SUMPRODUCT(--(Sheet Name!$C:$C="value"),--('Sheet Name!$D:$D="value"))

    but its coming out as product: #NUM!

    Cheers

  8. #8
    Trevor Shuttleworth
    Guest

    Re: SUMPRODUCT Help please

    SUMPRODUCT does not work on columns.

    SUMPRODUCT(--(Sheet Name!$C1:$C65536="value"),--('Sheet
    Name!$D1:$D65536="value"))

    Regards

    Trevor


    "SamGB" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Cheers guys,
    > could you help me with this problem aswell,
    > im using this formula:
    > SUMPRODUCT(--(Sheet Name!$C:$C="value"),--('Sheet Name!$D:$D="value"))
    >
    > but its coming out as product: #NUM!
    >
    > Cheers
    >
    >
    > --
    > SamGB
    > ------------------------------------------------------------------------
    > SamGB's Profile:
    > http://www.excelforum.com/member.php...o&userid=31263
    > View this thread: http://www.excelforum.com/showthread...hreadid=516363
    >




  9. #9
    Trevor Shuttleworth
    Guest

    Re: SUMPRODUCT Help please

    SUMPRODUCT does not work on columns.

    SUMPRODUCT(--(Sheet Name!$C1:$C65536="value"),--('Sheet
    Name!$D1:$D65536="value"))

    Regards

    Trevor


    "SamGB" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Cheers guys,
    > could you help me with this problem aswell,
    > im using this formula:
    > SUMPRODUCT(--(Sheet Name!$C:$C="value"),--('Sheet Name!$D:$D="value"))
    >
    > but its coming out as product: #NUM!
    >
    > Cheers
    >
    >
    > --
    > SamGB
    > ------------------------------------------------------------------------
    > SamGB's Profile:
    > http://www.excelforum.com/member.php...o&userid=31263
    > View this thread: http://www.excelforum.com/showthread...hreadid=516363
    >




  10. #10
    Registered User
    Join Date
    02-07-2006
    Posts
    17
    Isnt $C1:$C65536 and $D1:$D65536 a column anyway?

    What i want to do is copy the formula into alot of decending cells, but every time i copy down a cell the value increases by one which is what i WANT. However the range also increase by one which i DONT want. Any ideas??

  11. #11
    Sloth
    Guest

    Re: SUMPRODUCT Help please

    I tried a SUMPRODUCT using C1:C65536 and it converted to C:C and gave me an
    error. I then tried C1:C65535 and it worked. Why can you do the whole row,
    but I can't?

    "Trevor Shuttleworth" wrote:

    > SUMPRODUCT does not work on columns.
    >
    > SUMPRODUCT(--(Sheet Name!$C1:$C65536="value"),--('Sheet
    > Name!$D1:$D65536="value"))
    >
    > Regards
    >
    > Trevor
    >
    >
    > "SamGB" <[email protected]> wrote in
    > message news:[email protected]...
    > >
    > > Cheers guys,
    > > could you help me with this problem aswell,
    > > im using this formula:
    > > SUMPRODUCT(--(Sheet Name!$C:$C="value"),--('Sheet Name!$D:$D="value"))
    > >
    > > but its coming out as product: #NUM!
    > >
    > > Cheers
    > >
    > >
    > > --
    > > SamGB
    > > ------------------------------------------------------------------------
    > > SamGB's Profile:
    > > http://www.excelforum.com/member.php...o&userid=31263
    > > View this thread: http://www.excelforum.com/showthread...hreadid=516363
    > >

    >
    >
    >


  12. #12
    Trevor Shuttleworth
    Guest

    Re: SUMPRODUCT Help please

    That's because I can't either :-(

    I didn't check that C1 to C65536 converted to C:C. What you did is right
    .... you can't use SUMPRODUCT on a full column.

    Regards


    "Sloth" <[email protected]> wrote in message
    news:[email protected]...
    >I tried a SUMPRODUCT using C1:C65536 and it converted to C:C and gave me an
    > error. I then tried C1:C65535 and it worked. Why can you do the whole
    > row,
    > but I can't?
    >
    > "Trevor Shuttleworth" wrote:
    >
    >> SUMPRODUCT does not work on columns.
    >>
    >> SUMPRODUCT(--(Sheet Name!$C1:$C65536="value"),--('Sheet
    >> Name!$D1:$D65536="value"))
    >>
    >> Regards
    >>
    >> Trevor
    >>
    >>
    >> "SamGB" <[email protected]> wrote in
    >> message news:[email protected]...
    >> >
    >> > Cheers guys,
    >> > could you help me with this problem aswell,
    >> > im using this formula:
    >> > SUMPRODUCT(--(Sheet Name!$C:$C="value"),--('Sheet Name!$D:$D="value"))
    >> >
    >> > but its coming out as product: #NUM!
    >> >
    >> > Cheers
    >> >
    >> >
    >> > --
    >> > SamGB
    >> > ------------------------------------------------------------------------
    >> > SamGB's Profile:
    >> > http://www.excelforum.com/member.php...o&userid=31263
    >> > View this thread:
    >> > http://www.excelforum.com/showthread...hreadid=516363
    >> >

    >>
    >>
    >>




  13. #13
    Trevor Shuttleworth
    Guest

    Re: SUMPRODUCT Help please

    Yes, it is ... use $C1:$C65535 as Sloth suggested

    Make the range absolute so that it doesn't increment

    $C$1:$C$65535 and $D$1:$CD65535

    Regards

    Trevor


    "SamGB" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Isnt $C1:$C65536 and $D1:$D65536 a column anyway?
    >
    > What i want to do is copy the formula into alot of decending cells, but
    > every time i copy down a cell the value increases by one which is what i
    > WANT. However the range also increase by one which i DONT want. Any
    > ideas??
    >
    >
    > --
    > SamGB
    > ------------------------------------------------------------------------
    > SamGB's Profile:
    > http://www.excelforum.com/member.php...o&userid=31263
    > View this thread: http://www.excelforum.com/showthread...hreadid=516363
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1