+ Reply to Thread
Results 1 to 7 of 7

SUMPRODUCT problem

  1. #1
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Norwich, England
    MS-Off Ver
    2010
    Posts
    119

    SUMPRODUCT problem

    Hi all

    Me again with another SUMPRODUCT confusion

    I am trying to show many cells have the word SESSION in them, but they have to also match up to the code 73 in column E, what is in Cell L3 must find a match in column C

    So I can see that PROK has 3 instances of it relating to 73

    So in Cell Q3 I put this…


    =SUMPRODUCT(IF(--(C3:C33829=L3)*(E3:E33829=73))*(G3:G33829="*SESSION*))

    … and it didn’t work! I have tried a few options but mostly Excel seems to object to my number 73 in the formula regardless of whether or not I put quotes round it

    Any help greatly appreciated
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    You don't normally need IF within SUMPRODUCT, you don't need the -- here and you can't use wildcards with a direct comparison, as your example cells contain only the single word try

    =SUMPRODUCT((C3:C33829=L3)*(E3:E33829=73)*( G3:G33829="SESSION"))

  3. #3
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520
    Try this:

    Please Login or Register  to view this content.
    Corine

  4. #4
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Norwich, England
    MS-Off Ver
    2010
    Posts
    119
    Thank you for your replies

    Unfortunately I can't get either one to work - the problem I have is that the cells with SESSION in will, in real life have other words too. These cells should have only the words SESSION FILE in them, but as they are being input by hand in a free text field of a database sometimes people use this field to include other info, hence my need to search only on the word session within the cell!

    (hopefully going forward the databse will get redesigned so this will be a dropdown selection or similar, but in the meantime...)

    Sorry, my fault for not explaining that in my first post

  5. #5
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520
    Try:

    Please Login or Register  to view this content.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by raehippychick
    Thank you for your replies

    Unfortunately I can't get either one to work - the problem I have is that the cells with SESSION in will, in real life have other words too. These cells should have only the words SESSION FILE in them, but as they are being input by hand in a free text field of a database sometimes people use this field to include other info, hence my need to search only on the word session within the cell!

    (hopefully going forward the databse will get redesigned so this will be a dropdown selection or similar, but in the meantime...)

    Sorry, my fault for not explaining that in my first post
    Try:

    Please Login or Register  to view this content.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  7. #7
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Norwich, England
    MS-Off Ver
    2010
    Posts
    119
    Fantastic - that works

    thank you so much

    R

+ 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