+ Reply to Thread
Results 1 to 2 of 2

Sumproduct vs Countif

  1. #1
    Registered User
    Join Date
    09-02-2008
    Location
    London
    Posts
    73

    Sumproduct vs Countif

    Hi,

    I have a "If(countif(..." that counts the number of times a persons name appears on an external workbook. Then if the count if returns a value greater than 1, 2, etc..., I then use an index to get some data.

    However, the countif will not work unless the sheet it is counting off of is open?

    Is there another way, perhaps using a sumproduct, that will allow me to find the number of times a persons name appears on a sheet?

    =IF(COUNTIF('[Jan 10 - Acton - Group 3.xls]Week 41'!$F$4:$F$50,$B22)>=1,INDEX('[Jan 10 - Acton - Group 3.xls]Week 41'!$F$4:$W$50,MATCH($B22,'[Jan 10 - Acton - Group 3.xls]Week 41'!$F$4:$F$50,0),18)/100, "")

    Above is the formula I am using

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sumproduct vs Countif

    Try:

    =IF(SUMPRODUCT(--('[Jan 10 - Acton - Group 3.xls]Week 41'!$F$4:$F$50=$B22))>=1,INDEX('[Jan 10 - Acton - Group 3.xls]Week 41'!$F$4:$W$50,MATCH($B22,'[Jan 10 - Acton - Group 3.xls]Week 41'!$F$4:$F$50,0),18)/100, "")

    You can also avoid that altogher and use:

    =IF(ISNUMBER(MATCH($B22,'[Jan 10 - Acton - Group 3.xls]Week 41'!$F$4:$F$50,0)),INDEX('[Jan 10 - Acton - Group 3.xls]Week 41'!$F$4:$W$50,MATCH($B22,'[Jan 10 - Acton - Group 3.xls]Week 41'!$F$4:$F$50,0),18)/100, "")
    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.

+ 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