+ Reply to Thread
Results 1 to 5 of 5

two columns of data, one with numbers, one with names, need a formula

  1. #1
    Registered User
    Join Date
    09-13-2010
    Location
    The Junction
    MS-Off Ver
    Excel 2007
    Posts
    13

    two columns of data, one with numbers, one with names, need a formula

    I am trying to create a formula to count two columns of data. One column has names the, other has numbers. I want the formula to count the numbers only if they are in the same row as the specific name. How do I do this?

  2. #2
    Valued Forum Contributor
    Join Date
    05-19-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: two columns of data, one with numbers, one with names, need a formula

    A little more information would help but if column B has your names and column C has your numbers
    in D [QUOTE][=SUMPRODUCT(--(B$2:B$100="shoes"),(C$2:C$100))/QUOTE]
    or
    =SUMPRODUCT(--(B$2:B$100=D2),(C$2:C$100))
    were D2 is were you enter the name or use a dropdown

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: two columns of data, one with numbers, one with names, need a formula

    Maybe a plain SUMIF would suffice

    =sumif(b2:b100,"shoes",c2:c100) - adapt ranges and conditions to your need

    Grizzly

    As OP seems to be using 2007, SUMIFS can be used instead of SUMPRODUCT

  4. #4
    Valued Forum Contributor
    Join Date
    05-19-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: two columns of data, one with numbers, one with names, need a formula

    thanks arthur I didnt know that

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: two columns of data, one with numbers, one with names, need a formula

    Garrett,
    did you mean counting or summing?

+ 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