+ Reply to Thread
Results 1 to 4 of 4

Formula for counting 2 different critera in multiple columns

  1. #1
    Registered User
    Join Date
    06-17-2014
    Location
    sheffield
    MS-Off Ver
    2013
    Posts
    2

    Formula for counting 2 different critera in multiple columns

    Fixed data labels over a number of columns and i want to count the number of times 2 of these appear however when ive tried to use the countifs function it will only count if in the first colum of the range selected and i cant figure out how to fix it
    for example if A2 says 'FRANCE' and D1 'RED'

    Ie i have been using COUNTIFS('Datasheet'!BB:BE,A1,'datasheet'!BE:BH,D1)

    Would really appreciate any help with this its driving me crackers!

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    re: Formula for counting 2 different critera in multiple columns

    Hi Lucy

    The above isn't very clear - are you saying you just want to count how many times the words FRANCE or RED appear in columns A and D respectively?

  3. #3
    Registered User
    Join Date
    06-17-2014
    Location
    sheffield
    MS-Off Ver
    2013
    Posts
    2

    re: Formula for counting 2 different critera in multiple columns

    Hi,

    My data that I want to search is over a number of columns (10, with 23,000 rows) and i want to search 5 of the columns for RED and the other 5 columns for FRANCE and therefore have a count of the number of rows have RED and FRANCE in.

    Hope thats a little clearer :-)

  4. #4
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    re: Formula for counting 2 different critera in multiple columns

    Sorry, yes, to be fair my reading skills were worse than your explaining skills!

    If you use SUMPRODUCT you can at least use one of the five column arrays, but then you'd still need to use this five times, as in:

    =SUMPRODUCT(--('Datasheet'!BB:BE=A1)*--('datasheet'!BE:BE=D1))+SUMPRODUCT(--('Datasheet'!BB:BE=A1)*--('datasheet'!BF:BF=D1))+SUMPRODUCT(--('Datasheet'!BB:BG=A1)*--('datasheet'!BG:BG=D1))+SUMPRODUCT(--('Datasheet'!BB:BE=A1)*--('datasheet'!BH:BH=D1))

    Also, SUMPRODUCT will kill the sheet if you use full column references, so you'd need to use 'Datasheet'!BB1:BE23000, etc. to make it useable.

    I'm certain there'll be a more eloquent solution, but it's a bit beyond me this evening!

+ 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. [SOLVED] INDEX/MATCH (multiple critera in multiple rows and columns)
    By swma in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-01-2016, 10:02 AM
  2. [SOLVED] Counting Multiple Values in a column based on critera in seperate column
    By ERoberts in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-11-2013, 01:08 PM
  3. Count across multiple columns with two critera
    By ucirsharma in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2013, 01:26 PM
  4. Sumproduct with multiple critera, and summing multiple Columns
    By shanea.kr in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-09-2012, 03:12 PM
  5. Replies: 2
    Last Post: 01-14-2009, 04:01 AM

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