+ Reply to Thread
Results 1 to 4 of 4

sumproduct not counting correctly

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415

    sumproduct not counting correctly

    hi guys
    i have come up with this formula
    although its probably wrong as its not returning the right answer
    =SUMPRODUCT(--('away team'!H:H='input sheet'!G1))
    i need to count all cells with any data in, in column h
    after its looked to see if g1 from another sheet is in column d

    i have checked what i have by autofilter and the result whould be 23 but its returning 22

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: sumproduct not counting correctly

    i need to count all cells with any data in, in column h ...
    =counta(h:h)
    ... After its looked to see if g1 from another sheet is in column d
    ???
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415

    Re: sumproduct not counting correctly

    hi shg
    it needs to look for cell g1 on input sheet
    then go to sheet home team
    look down column b and count hown many times
    cell g1 is in column b AND has data in column h

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702

    Re: sumproduct not counting correctly

    Perhaps try this formula

    =SUMPRODUCT((B:B='input sheet'!G1)*(H:H<>""))

+ 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