+ Reply to Thread
Results 1 to 2 of 2

Summing Cells According to Conditions

Hybrid View

  1. #1
    Registered User
    Join Date
    07-25-2008
    Location
    Kentucky
    Posts
    1

    Summing Cells According to Conditions

    I have something like the following covering a large spreadsheet:


    Code Amount Code Amount Code Amount
    598008 50.00 598219 3.00 598214 6.55
    598000 19.00 598002 2.00 598216 3.44
    598214 50.00 598216 2.00 599102 8.00
    599102 13.00 599104 45.00 598000 4.00
    599200 6.00 598000 16.86 598002 6.00


    I need a formula or something else that will hunt for each code and give me the sum of all the amounts it finds in the cell to the right of that code.

    Such as: Code 598008 would be a total of 70.86. And so on.

    I know this probably isn't that hard but it has been for me and it's an ongoing project where the amounts change every day.

    Thank you ahead of time for any help!

    Kat
    Last edited by ldywldkat; 07-25-2008 at 12:28 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    If you have your unique codes listed separately, say in column X...

    then you can try:

    =SUMPRODUCT(($A$1:$F$5=X1)*(OFFSET($A$1:$F$5,,1)))

    where A1:F1 is your database of codes and amounts.... and X1 is the first code to sum amounts for... adjust the references to suit and copy formula down.
    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.

+ 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