+ Reply to Thread
Results 1 to 2 of 2

counting

  1. #1
    Win
    Guest

    counting

    if i have two columns
    001, apple
    001, orange
    001, orange
    001, fish
    001, fish
    001, fish
    002, apple
    002, meat
    002, meat
    003, beef

    how can i get the following result
    001, apple, 1
    001, orange, 2
    001, fish, 3
    002, apple, 1
    002, meat, 2
    003, beef, 1




  2. #2
    Dave Peterson
    Guest

    Re: counting

    You can get close by sorting the data and using data|subtotals.

    You can get closer by using data|pivottable.

    Select your data (A1:Cxxx) and include headers in row 1
    data|pivottable
    follow the wizard until you get a dialog with a Layout button on it.
    click that layout button

    drag the item number to the row field
    drag the fruit name to the row field
    drag the fruit name to the data field
    and finish up.

    If you double click on the grey item number and grey fruit name, you can tell
    excel not to show subtotals for that field.


    Win wrote:
    >
    > if i have two columns
    > 001, apple
    > 001, orange
    > 001, orange
    > 001, fish
    > 001, fish
    > 001, fish
    > 002, apple
    > 002, meat
    > 002, meat
    > 003, beef
    >
    > how can i get the following result
    > 001, apple, 1
    > 001, orange, 2
    > 001, fish, 3
    > 002, apple, 1
    > 002, meat, 2
    > 003, beef, 1


    --

    Dave Peterson

+ 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