+ Reply to Thread
Results 1 to 3 of 3

Listings

  1. #1
    Registered User
    Join Date
    11-25-2009
    Location
    Europe
    MS-Off Ver
    Excel 2007
    Posts
    1

    Listings

    Hello all,

    I have an Excel problem for which I don't even remotely know which way I could go to solve it. Hope someone of you knows...

    I have a table of data, that contains the following information:

    column A: A text string, one out of dozens (hundreds?) of alternatives, which aren't keyed anywhere else
    column B: A number

    Basically, like this (A;B):

    apples; 5
    peach; 20
    banana; 34
    lemon; 1
    peach; 2
    apples; 15
    apples; 2

    Now, I want to count the number of times a cell in column A is "apples", and the sum of the corresponding number in B.

    Usually, I'd use =SUMPRODUCT((A1:A6=A1)*(B1:B6)), but as I said, I don't know which strings will appear in column A and how many different ones there will be each time I import data into the columns A and B.

    Help?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Listings

    Probably best to use a Pivot table...

    http://peltiertech.com/Excel/Pivots/pivotstart.htm
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Listings

    Hi Paluschke, and welcome to the forum.

    Please take a moment to read the forum rules and then amend your thread title accordingly. Thread titles should describe your issue and make sense if someone were to search for a similar issue.

    Thank you.

+ 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