+ Reply to Thread
Results 1 to 2 of 2

Checking a column for a number of values

  1. #1
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Checking a column for a number of values

    Evening,

    I am using this formula:

    =SUMPRODUCT(($B$2:$B$16=G3)*($C$2:$C$16=$A$24))

    to do the following thing:

    - Count the number of times G3 is in column B
    - but only if A24 is in column C

    I now to change this so that is does

    - Count the number of times G3 is in Column B
    - but only if A24 or A25 ot F26 is in column C

    Any ideas how I can adapt the end of the formula please?

    Many thanks

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Checking a column for a number of values

    Hi Cmorgan, perhaps try:

    =SUMPRODUCT(($B$2:$B$16=G3)*(($C$2:$C$16=$A$24)+($C$2:$C$16=$A$25)+($C$2:$C$16=$F$26)))

+ 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