+ Reply to Thread
Results 1 to 2 of 2

COUNTIF Question

  1. #1
    Registered User
    Join Date
    10-11-2012
    Location
    Deerfield Beach, FL
    MS-Off Ver
    Excel 2007
    Posts
    1

    Post COUNTIF Question

    I would like a formula that will count how many times a number appears in one column if a specific number or letter also appears in another column.

    For example:

    If Column A contains "A", "B", "C", "D" and Column D contains "11", "12", "13", "14". I want another cell to produce the sum of how many times "11" appears in Column D when the corresponding line in column A also has a "B".

    Thanks

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: COUNTIF Question

    Hi

    Assuming that A1:A4 has the values A, B, C, D and
    B1:B4 has the values 11,12,13,14 then try

    =SUMPRODUCT(--(A1:A4="B"),--(B1:B4=11))

    Note that this will return 0 (as there are no A:11 matches. But if you adjust the formula to be
    =SUMPRODUCT(--(A1:A4="A"),--(B1:B4=11)) it will return 1.

    HTH

    rylo

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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