+ Reply to Thread
Results 1 to 4 of 4

Countif and sum adjacent cells

Hybrid View

  1. #1
    Registered User
    Join Date
    09-15-2014
    Location
    West Sussex, England
    MS-Off Ver
    Office 365
    Posts
    30

    Countif and sum adjacent cells

    Hi there

    I have a set of data. Each topic/subject has multiple entries. Adjacent to each topic is a number.

    I need the countif formula to look for all 'common' words and to sum all the figures in the adjacent cells:

    countif.xlsx

  2. #2
    Valued Forum Contributor Gatti's Avatar
    Join Date
    06-08-2015
    Location
    Brasil, São Paulo, Ribeirão Preto
    MS-Off Ver
    365
    Posts
    346

    Re: Countif and sum adjacent cells

    Hello!

    I did matrix function to check if it has the words "BMW" / "CITROEN" / "FORD" / "RENAULT"

    =SUM((NOT(ISERR(SEARCH(D$2,$A$2:$A$11)))*1*$B$2:$B$11))
    Where D$2 is BMW, D$3 is Citroen, D$4 is Ford and D$5 is Renault

    Check the workbook: countif.xlsx

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Countif and sum adjacent cells

    Try SUMIF

    =SUMIF($A$2:$A$11,"BMW*",$B$2:$B$11)

    If you want to put BMW into a cell reference, then
    =SUMIF($A$2:$A$11,G2&"*",$B$2:$B$11)
    G2 = BMW

  4. #4
    Valued Forum Contributor Gatti's Avatar
    Join Date
    06-08-2015
    Location
    Brasil, São Paulo, Ribeirão Preto
    MS-Off Ver
    365
    Posts
    346

    Re: Countif and sum adjacent cells

    Much better @Jonmo1's way

+ 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. Countif - No Adjacent Cells
    By windme in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-17-2008, 02:56 PM
  2. How do I use countif across non-adjacent cells?
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  3. [SOLVED] How do I use countif across non-adjacent cells?
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM
  4. [SOLVED] How do I use countif across non-adjacent cells?
    By Nick in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. How do I use countif across non-adjacent cells?
    By Nick in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. [SOLVED] How do I use countif across non-adjacent cells?
    By Nick in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. [SOLVED] How do I use countif across non-adjacent cells?
    By Nick in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. [SOLVED] How do I use countif across non-adjacent cells?
    By Nick in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-08-2005, 11:05 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