+ Reply to Thread
Results 1 to 7 of 7

Counting in Multiple Columns

  1. #1
    Registered User
    Join Date
    03-27-2015
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Office 2013, Office 2016
    Posts
    4

    Counting in Multiple Columns

    Hello everyone!

    I'm not quite sure if my issue is unique or not, but here goes!

    I'm trying to look down a column and find a result (either "Y" or "N") and then look at the cell next to it to see if the last character is a letter ("A", "B", "C", "N"). If those criteria are met, I would like it to return a total count of those items.

    This is what I have so far:

    Certified Stock Number
    Y P1864A
    Y P1823B
    N 14328N
    N P1745

    Please Login or Register  to view this content.
    So far, I have a SUMPRODUCT able to tell me if it meets "Y" in column A AND "A" on the right side of column B.

    Is there a condensed way to include other letters in the right hand search without duplicating this formula over and over? To make it even more complicated, I have these types of tables across the spreadsheet multiple times for other models of product, so making it as condensed of an equation would be very helpful if it would ever need modification.

    Thank you so much in advance!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Counting in Multiple Columns

    Do you mean something like this:

    RIGHT(range) = A or B or C or D
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    03-27-2015
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Office 2013, Office 2016
    Posts
    4

    Re: Counting in Multiple Columns

    Yes. Essentially, I want the equation to return a result if there is any letter on the right, depending on the "Y" or "N" of the certified column.

    Thank you for your reply!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Counting in Multiple Columns

    Maybe this...

    Data Range
    A
    B
    C
    D
    E
    1
    Certified
    Stock Number
    Yes/No
    Count
    2
    Y
    P1864A
    Y
    2
    3
    Y
    P1823B
    N
    1
    4
    N
    14328N
    5
    N
    P1745
    6
    ------
    ------
    ------
    ------
    ------


    This formula entered in E2 and copied down:

    =SUMPRODUCT(--(A$2:A$5=D2),--ISERR(-RIGHT(B$2:B$5)))

  5. #5
    Registered User
    Join Date
    03-27-2015
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Office 2013, Office 2016
    Posts
    4

    Re: Counting in Multiple Columns

    Thank you so much, Tony!! It works perfectly!! :D

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Counting in Multiple Columns

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

  7. #7
    Registered User
    Join Date
    03-27-2015
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Office 2013, Office 2016
    Posts
    4

    Re: Counting in Multiple Columns

    Thank you for telling me where to mark it as solved. I was hunting around for it.

    Thank you 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] Counting multiple criteria in multiple columns
    By jimbosi in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 03-22-2015, 02:34 PM
  2. [SOLVED] Counting same text across multiple columns
    By LouJ in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-11-2012, 10:06 PM
  3. Counting data in multiple columns
    By Fraukje Coopmans in forum Excel General
    Replies: 4
    Last Post: 10-28-2011, 12:32 PM
  4. Counting data from multiple columns
    By jamiesda in forum Excel General
    Replies: 3
    Last Post: 03-27-2009, 02:58 AM
  5. counting in multiple columns
    By sgoldbe2 in forum Excel General
    Replies: 1
    Last Post: 03-17-2008, 09:34 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