+ Reply to Thread
Results 1 to 4 of 4

Comparing and sum'ing data

  1. #1
    Registered User
    Join Date
    07-19-2006
    Posts
    2

    Comparing and sum'ing data

    Hi - I have 2 coloumns of mixed data, 1 with values and 1 with a catergory code. I would like to summarise the data, ie I may have 50 items of catergory "STK" but would like to know the total value. The aim is to have 2 sheets in excel, 1 as a summary page, the other as the data sheet.

    What formulae would I use please?

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try

    Data > Filter > advance filter on your list. Click Unique records.

    Copy these over to your summary page in cell A1 say. Put this forumla into cell B1

    Note Change Data to Sheet name where your data is based. Change ranges as appropriate.

    =SUMPRODUCT(--(Data!$A$1:$A$100=Summary!A1)*(--(Data!B1:B100)))

    VBA Noob

  3. #3
    Toppers
    Guest

    RE: Comparing and sum'ing data

    Try:

    =Sumproduct(--(range1="STK"),(range2))

    ranges cannot be columns i.e. must of form $A$1:$A$100 not $A:$A

    HTH

    "danuk2006" wrote:

    >
    > Hi - I have 2 coloumns of mixed data, 1 with values and 1 with a
    > catergory code. I would like to summarise the data, ie I may have 50
    > items of catergory "STK" but would like to know the total value. The
    > aim is to have 2 sheets in excel, 1 as a summary page, the other as the
    > data sheet.
    >
    > What formulae would I use please?
    >
    >
    > --
    > danuk2006
    > ------------------------------------------------------------------------
    > danuk2006's Profile: http://www.excelforum.com/member.php...o&userid=36522
    > View this thread: http://www.excelforum.com/showthread...hreadid=562742
    >
    >


  4. #4
    Registered User
    Join Date
    07-19-2006
    Posts
    2

    Thumbs up

    TOP BANANNA !

    cheers

+ 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