+ Reply to Thread
Results 1 to 3 of 3

CountIf Depending on horizontal and vertical criteria

  1. #1
    Forum Contributor
    Join Date
    02-07-2016
    Location
    England
    MS-Off Ver
    2019
    Posts
    270

    CountIf Depending on horizontal and vertical criteria

    Hi Excel Forum,

    I am trying to count Y's in a range depending if there is "*L2*" in a column range & "M" in a row range.

    I have attached a workbook with an example of my desired result as this seems to help a lot more then me trying to explain my desired outcome i will show you haha.

    Thanks in advance

    Jamidd
    Attached Files Attached Files
    Last edited by Jamidd1; 02-17-2018 at 03:42 PM.

  2. #2
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    484

    Re: CountIf Depending on horizontal and vertical criteria

    Try

    =SUMPRODUCT(--(I2:AN31="Y"),(E2:E31="M")*ISNUMBER(FIND("L2",I1:AN1)))

    Note: FIND() is case-sensitive. If you need to look for "l2" as well, replace FIND with SEARCH.

  3. #3
    Forum Contributor
    Join Date
    02-07-2016
    Location
    England
    MS-Off Ver
    2019
    Posts
    270

    Re: CountIf Depending on horizontal and vertical criteria

    Thank you very much Root! This seems to be working.

    Ill set the thread to solved, if i have any problems will hit you back.

    Cheers 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. [SOLVED] Transpose vertical to horizontal data based on countif?
    By dunnobe in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-23-2018, 06:36 AM
  2. Replies: 5
    Last Post: 10-03-2016, 03:39 AM
  3. sum array depending on vertical & horizontal references
    By razvoon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-26-2015, 11:50 AM
  4. [SOLVED] Lookup with vertical and horizontal criteria
    By busygurl in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-23-2014, 12:03 AM
  5. Countif function - horizontal and vertical textlookup
    By llo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-11-2014, 06:19 PM
  6. Replies: 0
    Last Post: 03-24-2014, 07:31 AM
  7. [SOLVED] countif, fill horizontal, lookup vertical
    By tigaente in forum Excel General
    Replies: 4
    Last Post: 04-23-2012, 05:21 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