+ Reply to Thread
Results 1 to 16 of 16

looking up 3 values to generate an answer using Sumproduct

  1. #1
    Registered User
    Join Date
    04-17-2012
    Location
    northants, england
    MS-Off Ver
    Excel 2007
    Posts
    62

    looking up 3 values to generate an answer using Sumproduct

    im trying to use the Sumproduct function to examine 3 columns of data.

    In the attached example I want the formula to say if cell E5 is in column A and column C contains a Y then sum column B

    So far I have the following =SUMPRODUCT(A4:A19=E6,C4:C19="Y",B4:B19)
    Attached Files Attached Files
    Last edited by fentiger79; 02-21-2019 at 11:40 AM. Reason: title

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Sumproduct formula

    Try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    accept with CSE
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    04-17-2012
    Location
    northants, england
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: Sumproduct formula

    Still showing a value error

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Sumproduct formula

    Quote Originally Posted by fentiger79 View Post
    Still showing a value error
    Did you accept formula with Ctrl+Shift+Enter? Have you got {} in formula bar?
    Capture.JPG
    Last edited by KOKOSEK; 02-21-2019 at 07:39 AM.

  5. #5
    Registered User
    Join Date
    04-17-2012
    Location
    northants, england
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: Sumproduct formula

    Thank you its now working

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Sumproduct formula

    You welcome.
    If you happy with solution, please use Thread tool and mark thread as SOLVED.

  7. #7
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,281

    Re: Sumproduct formula

    Try with
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  8. #8
    Registered User
    Join Date
    04-17-2012
    Location
    northants, england
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: Sumproduct formula

    =SUMPRODUCT(IF((A4:A19=E6)*(C4:C19="Y")=1,B4:B19))

    what if I wanted to search c4:c19 for a particular word. Lets say same or different?

  9. #9
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Sumproduct formula

    You can 'filter' C as you wish, depends what kind of info you want to keep in there.
    Last edited by AliGW; 02-22-2019 at 09:47 AM.

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2505
    Posts
    13,758

    Re: looking up 3 values to generate an answer using Sumproduct

    Also
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  11. #11
    Registered User
    Join Date
    04-17-2012
    Location
    northants, england
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: Sumproduct formula

    There are 4 sentences in that field and I want the sum product to calculate if there is a key word in there. do I just put "" around the word I want or will that only look for that specific word.

  12. #12
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: looking up 3 values to generate an answer using Sumproduct

    Quote Originally Posted by FlameRetired View Post
    Also
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    wildcards (* for anything)

  13. #13
    Registered User
    Join Date
    04-17-2012
    Location
    northants, england
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: looking up 3 values to generate an answer using Sumproduct

    {=SUMPRODUCT(IF((A4:A19=E6)*(C4:C19="Same*")=1,B4:B19))}

    Would this work? or is there an easier way to do it.

  14. #14
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: looking up 3 values to generate an answer using Sumproduct

    If you got in col C something like:

    SameYankee
    SameTankee
    SameSomething
    Sameanything

    then should works.

  15. #15
    Registered User
    Join Date
    04-17-2012
    Location
    northants, england
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: looking up 3 values to generate an answer using Sumproduct

    I couldn't get it to work but I substituted the "same*" for the exact phrase in my data and it worked.

    Thank you for your help.

  16. #16
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: looking up 3 values to generate an answer using Sumproduct

    If you put SAME* it works for phrases as in examples - all string which is starts with 'SAME', the rest of characters is 'hidden' under *, that's why SAME*.
    Other example:
    *SAME* for 'charactersSAMEcharacters' or 'beforeSAMEafter'
    *SAME for 'charactersSAME' or 'beforeSAME'
    SAME* for 'SAMEafter' or 'SAMEcharacters'

    Anyway, happy to help. Check it out on internet about wildcards.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 28
    Last Post: 05-26-2017, 08:17 PM
  2. #n/a in my sumproduct formula
    By busygurl in forum Excel General
    Replies: 1
    Last Post: 02-24-2016, 06:48 PM
  3. Sumproduct formula
    By cyee in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-12-2016, 01:02 AM
  4. Replies: 10
    Last Post: 12-16-2015, 03:16 PM
  5. [SOLVED] Sumif Formula or Sumproduct Formula? Three Criteria.
    By oHUTCHYo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-28-2013, 10:50 AM
  6. [SOLVED] Need help with Sumproduct Formula
    By Steveo5556 in forum Excel General
    Replies: 4
    Last Post: 09-11-2012, 11:21 AM
  7. Sumproduct Formula
    By Alan in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 02:05 PM

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