+ Reply to Thread
Results 1 to 6 of 6

Sum 1st col under col. 2 if the cel at col 2. equals a cell at col 3?

  1. #1
    Registered User
    Join Date
    03-26-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    5

    Sum 1st col under col. 2 if the cel at col 2. equals a cell at col 3?

    Hello Everyone, very happy to find about this forum.


    Five columns.

    Column one has the values that have to be summed.
    Column five has =MAX(column2, column4)

    So, at the bottom of column 2 it should show the summary of the values of column 1, as long as the matching cell in column 2 equals the cell in column 5 (assuming the summary checks row by row).

    Example:

    2 2 3 4 4
    3 9 3 2 9
    7 0 0 8 8

    So under the second column it would show 3 (because the second cell is the max value)
    Under the third column it would show 0 (because no cells in this column are the max value)
    Under the fourth column it would show 9 (because the first cell is the max value so that's 2, and than the third cell is the max value so it adds a 7)

    Attached an example file where SHOULD SHOW is the hopeful goal...

    Many thanks!
    Attached Files Attached Files
    Last edited by arlu1201; 03-26-2012 at 07:02 AM. Reason: Adding a file

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Sum 1st col under col. 2 if the cel at col 2. equals a cell at col 3?

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'.
    To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.

    On this page, below the message box, you will find a button labelled 'Manage Attachments'.
    Clicking this button will open a new window for uploading attachments.

    You can upload an attachment either from your computer or from another URL by using the appropriate box on this page.
    Alternatively you can click the Attachment Icon to open this page.

    To upload a file from your computer, click the 'Browse' button and locate the file.

    To upload a file from another URL, enter the full URL for the file in the second box on this page.
    Once you have completed one of the boxes, click 'Upload'.

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    03-26-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Sum 1st col under col. 2 if the cel at col 2. equals a cell at col 3?

    Thank you, I've added a file

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Sum 1st col under col. 2 if the cel at col 2. equals a cell at col 3?

    Its still a little difficult to understand what you are trying to achieve. Can you please explain using the sheet that you have attached? Which columns do you need populated and what should be the calculations?

    Do you want this done through VBA or formulae?

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Sum 1st col under col. 2 if the cel at col 2. equals a cell at col 3?

    Hmm? Seems clear enough to me ...

    Try this in C10
    Please Login or Register  to view this content.
    Drag accross to E10
    Note
    D10 should return 55 not 42
    Last edited by Marcol; 03-26-2012 at 06:53 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  6. #6
    Registered User
    Join Date
    03-26-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Sum 1st col under col. 2 if the cel at col 2. equals a cell at col 3?

    Wow, amazing! Thank you!

+ 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