+ Reply to Thread
Results 1 to 9 of 9

adding the cells with unique values

  1. #1
    Forum Contributor
    Join Date
    08-07-2008
    Location
    United States
    MS-Off Ver
    Microsoft Office 2003
    Posts
    362

    adding the cells with unique values

    hi everyone,

    can some one help me how to add the unique cell values using the formula bar?
    like if on column C i would like to add all the row values which have the name "George" how can this be possible using the formula bar?

    Attached is a sample file.

    Thanks,

    Stoey
    Attached Files Attached Files
    Last edited by stoey; 09-29-2009 at 06:03 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: adding the cells with unique values

    A few options, one

    D7: =SUMIF($C$14:$C$27,$C7,$F$14:$F$27)
    copied down
    (ensure the names in C7 etc reflect those used in the table below)

    Other option would be to use a Pivot Table (see link in Sig.)

  3. #3
    Forum Contributor
    Join Date
    08-07-2008
    Location
    United States
    MS-Off Ver
    Microsoft Office 2003
    Posts
    362

    Re: adding the cells with unique values

    hi DonkeyOte,

    thanks for the quick reply...my bad for not explaining well...can this be done using if and else method? like if the cell value is equal to "George" then add the cell value within the row of George...by the way i forgot that I am using list for the names indicated. attached is a new file with the list method.

    thanks,

    stoey
    Attached Files Attached Files

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: adding the cells with unique values

    I'm afraid I don't understand the question, if you wish to conditionally sum values in your 2nd table you should (as outlined) be using SUMIF function (or Pivot Table).

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: adding the cells with unique values

    works fine for me there is something strange preventing it add correctly though reselect all your names from the drop downs the names currently in cells have spaces after some of them
    Last edited by martindwilson; 09-29-2009 at 05:08 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Forum Contributor
    Join Date
    08-07-2008
    Location
    United States
    MS-Off Ver
    Microsoft Office 2003
    Posts
    362

    Re: adding the cells with unique values

    hi again,

    im sorry to confuse you...here's how it goes...on column C: i have a list of names, on column F i have time rendered....what I would like to do in D7 is to compute the time rendered occured under the name "George". I understand the fact that I can manually enter, the column or row number to get the sum, but the name "George" appears in different row of column C in which i'll be manually changing the formula should the name "George" appears on different row of column C. How can I create a formula such that it will compute the time rendered under the occured name "George"? can this be done using index, match or offset? if yes, can you please show me how?

    Thanks,

    Stoey

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: adding the cells with unique values

    use the formula donkeyote provided
    Attached Files Attached Files

  8. #8
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: adding the cells with unique values

    Per your posted workbook....
    The names in C14:C28 have trailing spaces, whereas the target name in c7 does not.

    Try one of these formulas:

    Please Login or Register  to view this content.

    That cell should be formatted as TIME.

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  9. #9
    Forum Contributor
    Join Date
    08-07-2008
    Location
    United States
    MS-Off Ver
    Microsoft Office 2003
    Posts
    362

    Re: adding the cells with unique values

    hi everyone,

    this forum really rocks!...thanks Ron, Donkey and martin...got the formula working! You guys are totally awesome. Thanks again

    Regards,
    Stoey

+ 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