+ Reply to Thread
Results 1 to 3 of 3

Countif based on the title in my first row.

  1. #1
    Forum Contributor
    Join Date
    01-04-2016
    Location
    Newcastle
    MS-Off Ver
    2016
    Posts
    107

    Post Countif based on the title in my first row.

    (I've attached an example spreadsheet)

    Hi all,
    Here is an example of how my sheet1 currently looks:

    1.png

    I want to create another sheet (sheet2) which counts the number of 'WB', 'WT' & 'WA'. (Regardless of the '+' and '-' symbols) based on the title rows of sheet1.

    2.png

    I hope this made sense found it quite difficult to articulate.

    Thanks
    Attached Files Attached Files
    Last edited by liamfrancis2013; 04-03-2017 at 08:14 AM.

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Countif based on the title in my first row.

    Hi,

    in B3 to be copied across

    =SUMPRODUCT(--(ISNUMBER(SEARCH(LEFT(B$2,2),INDEX(Sheet1!$A$2:$F$8,,MATCH(LEFT($A3,5),Sheet1!$A$1:$F$1,0))))))

    Regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Countif based on the title in my first row.

    Hi again,

    in B3 copied across

    =COUNTIF(INDEX(Sheet1!$A$2:$F$8,,MATCH(LEFT($A3,5),Sheet1!$A$1:$F$1,0)),"*"&LEFT(B$2,2)&"*")

    should do the trick
    Attached Files Attached Files

+ 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. Title for SQL based tool
    By Prabakaran3003 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2016, 02:24 PM
  2. Chart Formatting Based on the Title
    By troilii in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-13-2015, 05:30 AM
  3. Indexing based on title?
    By ukdjaj in forum Word Programming / VBA / Macros
    Replies: 2
    Last Post: 02-14-2014, 07:09 AM
  4. Displaying title based on numbers
    By MPIF in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2013, 11:56 AM
  5. Replies: 4
    Last Post: 10-19-2012, 12:09 PM
  6. Having a title appear based on filters
    By szm187 in forum Excel General
    Replies: 6
    Last Post: 03-27-2012, 04:27 PM
  7. Column title based on criteria
    By asdvender in forum Excel General
    Replies: 9
    Last Post: 11-02-2008, 02:57 AM

Tags for this Thread

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