+ Reply to Thread
Results 1 to 5 of 5

Sum of the cell values depending on the data from other cell

  1. #1
    Registered User
    Join Date
    05-22-2007
    Posts
    3

    Sum of the cell values depending on the data from other cell

    I have following cell structure (Sample Data)
    HTML Code: 
    I want the results to be displayed in another cell using formula as follows
    HTML Code: 
    Which formula will give me this data dynamically?

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,447
    Hi,

    You can use the sumif function to do this:

    =SUMIF(A1:A7,"=North",B1:B7)
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Contributor
    Join Date
    01-05-2004
    Location
    Helsinki, Finland
    Posts
    100
    Hi,

    Attached is an Excel file with two different solutions. The first one (Sheet1) is less dynamic, but much simpler. There is only one formula, that aggregates the values, but you have to manually update the categories (North, South, East, West)

    The next one (Sheet2) automatically picks up the categories from Column A and sorts them in the column F. In the Column E there is the same kind of formula as in Sheet1, but it is also a dynamic one. Meaning, you don't have to manually change the data area. Columns C and D are there to make the category sorting possible and can be hidden away.

    - Asser
    Attached Files Attached Files

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

    Welcome to excelforum

    Please read forum rules - see links below

    Your thread is posted in the wrong forum, it sould be in the Excel Worksheet Functions forum

    Excel Programming forum is for VBA macro type questions
    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.

  5. #5
    Registered User
    Join Date
    05-22-2007
    Posts
    3

    Thanks

    Thanks a lot for help

+ 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