+ Reply to Thread
Results 1 to 5 of 5

Sum of individual data in column A for each unique cell

Hybrid View

  1. #1
    Registered User
    Join Date
    02-01-2013
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    32

    Sum of individual data in column A for each unique cell

    Hi,

    I am sure there must be a simple way to do this, but I cannot find a formula to suit. I have a spreadsheet that lists invoice numbers in Column A. Column I contains the cost of each item for that invoice. What I need is to get excel to automatically find the same invoice numbers in column A and add up a total using the costs in Column I. In my attached example I have manually done what I need the formula to do in column L. Is this possible? Or is there a better way of doing this?

    Cheers,

    Linda
    Attached Files Attached Files
    Last edited by lindafinlay; 04-18-2013 at 09:34 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-13-2012
    Location
    Gardony, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    558

    Re: Sum of individual data in column A for each unique cell

    Hi,

    a pivot table is what you need. (At least that's how I would do it.) Have a look at the example.
    Attached Files Attached Files

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Sum of individual data in column A for each unique cell

    In L2 cell
    Formula: copy to clipboard
    =IF(COUNTIF(A:A,A2)=COUNTIF($A$2:A2,A2),SUMIF(A:A,A2,I:I),"")


    Drag it down...

    For your understanding

    The below formula will get the sum of that particular invoice
    Formula: copy to clipboard
    =SUMIF(A:A,A2,I:I)


    The below formula will confirm whether it is last entry
    Formula: copy to clipboard
    =COUNTIF(A:A,A2)=COUNTIF($A$2:A2,A2)


    Mingled both formula's and shown in initial suggestion


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    04-18-2013
    Location
    Hermosillo, Sonora, Mexico
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Sum of individual data in column A for each unique cell

    You could use the following formula on L2

    Formula: copy to clipboard
    =IF(A2=A3,"",SUMIF($A$2:$A$11,A2,$I$2:$I$11))



  5. #5
    Registered User
    Join Date
    02-01-2013
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Sum of individual data in column A for each unique cell

    Thanks SixthSense! Perfect - just what I wanted!
    And I had considered a pivot table RHCPgergo but really wanted all the info easily viewed on 1 spreadsheet.

    Thanks guys!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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