+ Reply to Thread
Results 1 to 7 of 7

Find and sort data

  1. #1
    Registered User
    Join Date
    03-30-2009
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    16

    Find and sort data

    Hello,

    I am trying to find out the summed up value for CN, DE, US in an unsorted workbook.
    I have attached a sample file for your easy reference.
    CN, DE and US are in a non-sorted list with different values every time.
    These values need to be summed up, consolidated into one value.
    I tried lookup(), but as you can see, it only returns the last value of the list.
    Is there a way to sum up all values of the list?
    Of course I should also mention that only CN's are to be summed up with CN's. So as to receive the total of all CN's. The same goes for DE and US.

    Best Regards,

    Lennart
    Attached Files Attached Files
    Last edited by yING; 03-30-2009 at 08:31 AM.

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

    Re: Find and sort data

    Try:

    =SUMIF($A$1:$A$7,F1,$B$1:$B$7)

    copied 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.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Find and sort data

    Try in G...

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Find and sort data

    Hi and welcome to the board
    Try =SUMIF(A1:A7,"cn",B1:B7)

  5. #5
    Registered User
    Join Date
    03-30-2009
    Location
    Hong Kong
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Find and sort data

    HaHa Great! Now I got 3 working solutions.
    Many thanks people! And I am happy to be on-board.
    Kind of new to Excel, and this forum has helped me develop over the last few weeks. Great work, keep it up.

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Find and sort data

    Don't forget to make this thread [closed]

  7. #7
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: Find and sort data

    Your post does not comply with Rule 9 of our Forum RULES. If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit. And please never edit a thread in which someone else has responded.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ 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