+ Reply to Thread
Results 1 to 3 of 3

Count in cells based on multiple criteria in other columns

  1. #1
    Registered User
    Join Date
    07-17-2019
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    9

    Count in cells based on multiple criteria in other columns

    New forum member here, thanks for letting me post my problem. I do not know if this will require a VBA or macro, or if it can be done with a nested formula. Open to any solutions.

    I'm building a template that will work on multiple sheets to do a count based on multiple criteria. I've attached a sample workbook, just deleted all the non-relevant data. There are three columns I want to place the count in (D, J and R), but I will reference only R here to try and make it easier to understand.

    If number found in column X or AM is found in cell O2, AND column V or AK contains "N", then count in column R.

    So for instance, # 27 (column X) has a value of "N" in column V. How many times are numbers with N values found in cell O2? And O3? etc. The count would be placed in column R.

    I've manually added yellow hi-lited numbers in rows 2 and 3 for column E, K and S so you can see the numbers that should end up being calculated for those cells immediately the their left.

    A couple things to keep in mind... the strings in column B, H and O will always end without a semi-colon. They will end with a digit, or possibly X.

    (Attached file removed after solved.)
    Last edited by Copernicus19; 07-17-2019 at 10:32 PM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Count in cells based on multiple criteria in other columns

    Please try at D2
    =SUMPRODUCT(ISNUMBER(FIND($X$6:$AM$55,B2))*($V$6:$AK$55="N"))

  3. #3
    Registered User
    Join Date
    07-17-2019
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    9

    Re: Count in cells based on multiple criteria in other columns

    Thanks Bo_Ry! Amazing, that solution works perfectly!

    I really appreciate your assistance, I've never come across the "FIND" function before. This will be a massive time saver. Thanks again!

+ 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. Replies: 11
    Last Post: 11-16-2017, 07:11 AM
  2. Replies: 1
    Last Post: 02-09-2017, 05:55 PM
  3. [SOLVED] Count number of occurrences based on criteria in multiple columns and rows
    By gerryger in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-22-2015, 08:13 PM
  4. [SOLVED] Count # of cells based on multiple Criteria
    By SpikeyMuscle in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-12-2014, 12:55 PM
  5. [SOLVED] count and sum based on criteria in multiple columns
    By BBCline in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-14-2012, 04:08 PM
  6. Replies: 1
    Last Post: 11-20-2010, 05:38 AM
  7. Count number of cells based on multiple criteria
    By Cumberland in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-11-2007, 11:28 PM

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