+ Reply to Thread
Results 1 to 9 of 9

count column d if column b contains.....

  1. #1
    Forum Contributor
    Join Date
    12-02-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    152

    count column d if column b contains.....

    I need to do exactly what the title says. If column b contains a certain name I need the adjacent cells in column d counted

    Thanks
    Tom

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: count column d if column b contains.....

    have you looked at using either the COUNTIF or COUNTIFS funtions?...a small sample data file would be really helpful also....thanks
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: count column d if column b contains.....

    Try this

    in A1 and drag formula down

    =COUNTIF(D:D,B1)

    A
    B
    C
    D
    1
    2
    Alex John
    2
    1
    Steve Alex
    3
    2
    George Alex
    4
    1
    Nick Steve
    5
    2
    Jim George
    6
    George
    7
    Nick
    8
    Jim
    9
    Jim
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Contributor
    Join Date
    12-02-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: count column d if column b contains.....

    I have looked into them and thought I was doing it right but I get a blank...probably just one thing out of place.

    Here is a sample.

    Thanks
    Tom
    Attached Files Attached Files

  5. #5
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: count column d if column b contains.....

    did you really want to count how many times Steve's name was in column B?....or did you want to SUM all of Steves wage?....I suspect the SUM is what you are looking for.....try this...

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    12-02-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: count column d if column b contains.....

    Judge that is exactly what I was looking for. evidently I had the whole formula wrong. Thanks so much everyone!

    Cheers
    Tom

  7. #7
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: count column d if column b contains.....

    no problem....there is a SUMIF that will work also....glad I could and thanks for the rep bump....have a great day....

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: count column d if column b contains.....

    I guess it wasn't "exactly what the title says"

  9. #9
    Forum Contributor
    Join Date
    12-02-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: count column d if column b contains.....

    In my mind it was. I wanted to count the contents of column D if Column B contained a certain text, but I certainly won't argue...my mind seldom works properly. Thanks again for all the help, you folks are phenomenal!

    Tom

+ 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] Help in counting D if column a is x and column b is y, count column c with a price of XXX
    By grlnexdor in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2013, 02:03 AM
  2. [SOLVED] Macro to count unique values in a column, enter it in next column, then delete duplicates
    By pmorisse in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2013, 03:27 PM
  3. [SOLVED] count the number of times each string appears in a column and make a summary column
    By intothewild in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-04-2012, 08:02 AM
  4. [SOLVED] Count Column B as relates to Column A resetting on new Column A entry
    By medailSacrosanct in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-03-2012, 12:08 PM
  5. Replies: 3
    Last Post: 06-08-2012, 09:39 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