+ Reply to Thread
Results 1 to 7 of 7

Lookup cells and count matching cells column

  1. #1
    Registered User
    Join Date
    09-17-2012
    Location
    Wiltshire
    MS-Off Ver
    Excel 2003
    Posts
    22

    Question Lookup cells and count matching cells column

    Hi guys, I have been trawling through your Forums and very impresssed at the excel knowledge here. So as i thought i would See if you could solve my (probably simple) Conundrum

    This is what i want my spread sheet to do

    Column A1:A250 Look for exact duplicate cells of a particular text (e.g. All cells in that range which have the text fred)
    And in those corresponding cells Count the cell 3 columns to the right (e.g 3 cells have fred in And in the cells to right of the name each has a number, 4+5+6=15)

    A5 = Fred C5 = 4
    A10 = Fred C10 = 5
    A200 = Fred C200=6

    result = 15 For Fred

    A1:A250 has many different Names in

    I do hope thats plain enough. Like i said, in my head its simple but putting it into a forumla for excel, Just as well ask me to read chinese
    Last edited by Firemaster; 09-17-2012 at 11:48 AM.

  2. #2
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Heres hoping

    I suggest you rename your thread before the Mods see it.

    http://www.excelforum.com/forum-rule...rum-rules.html

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,519

    Re: Heres hoping

    Look at SUMIF.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    09-17-2012
    Location
    Wiltshire
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Heres hoping

    Quote Originally Posted by TMShucks View Post
    Look at SUMIF.

    Regards, TMS
    I tried this
    SUMIF(A1:A256,"Usersname",C1:C256)
    problem is with this i would have to enter the precise name of the user where the "username" is
    Also tried
    =SUMIF(A1:A280,A2,C2:C280)



    I think i have renamed the Title as requested
    Last edited by Firemaster; 09-17-2012 at 12:03 PM.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,519

    Re: Lookup cells and count matching cells column

    You would have to make the ranges absolute.

    =SUMIF($A$1:$A$280,$A2,$C$2:$C$280)

  6. #6
    Registered User
    Join Date
    09-17-2012
    Location
    Wiltshire
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Lookup cells and count matching cells column

    Hi The sumif did work, The issue was with the log files i had, For some reason excel could not read the number in the cell, so although it said number 2 it read the cell as empty, i had to go through the whole worksheet and type over the top of the numbers for excel to recognise it (452 rows later) then sum if worked weird uh? i did try copy and paste but that didnt work either.
    any way sorted cheers

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,519

    Re: Lookup cells and count matching cells column

    Put a 1 in a spare cell. Copy that cell. Then select the "numbers" that are really text. Choose Paste Special | Operation=Multiply. Delete the "spare" cell. Done.

    Regards, TMS

+ 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