+ Reply to Thread
Results 1 to 10 of 10

Sum cells adjacent to LARGE cells.

  1. #1
    Registered User
    Join Date
    11-14-2013
    Location
    Atlantic City, NJ
    MS-Off Ver
    Excel 2007
    Posts
    2

    Sum cells adjacent to LARGE cells.

    I have 500+ rows of data in column A (Credit), with corresponding data in column B (Cash). I use "=SUM(LARGE(A:A,{1,2,3}))" in C1 to find and sum the three largest "Credit" entries, how do I sum the corresponding cash values associated with those three large credit entries?

    Any help would be greatly appreciated!

  2. #2
    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 cells adjacent to LARGE cells.

    You have to use helper columns


    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

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Sum cells adjacent to LARGE cells.

    Hi and welcome to the forum

    or maybe offset?

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    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 cells adjacent to LARGE cells.

    Ford,

    I believe offset() won't help us in this case

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sum cells adjacent to LARGE cells.

    Stop being such a pessimist, Sixth. I'm sure it will.
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    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 cells adjacent to LARGE cells.

    Quote Originally Posted by XOR LX View Post
    Stop being such a pessimist, Sixth. I'm sure it will.
    Ha ha ha If any one of you show it to me then surely I will learn from your posts.

    But again I am sure sum(large(range,{1,2,3,4,5,7})) can't able to do that offset as you think

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sum cells adjacent to LARGE cells.

    You wouldn't even need OFFSET, I think. Something like:

    =SUMPRODUCT((ISNUMBER(MATCH(A1:A10,LARGE(A1:A10,{1,2,3}),0)))*B1:B10)

    Regards

  8. #8
    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 cells adjacent to LARGE cells.

    Quote Originally Posted by XOR LX View Post
    You wouldn't even need OFFSET, I think. Something like:
    I given that statement against the offset approach

    Even simpler than that one

    =SUM(SUMIF(A:A,LARGE(A:A,{1;2;3}),B:B))

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sum cells adjacent to LARGE cells.

    Yes! Very nice, Sixth!

  10. #10
    Registered User
    Join Date
    11-14-2013
    Location
    Atlantic City, NJ
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Sum cells adjacent to LARGE cells.

    Thank you all very much, your help is truly appreciated! "=SUM(SUMIF(A:A,LARGE(A:A,{1;2;3}),B:B))" worked exactly as I had hoped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 11-09-2013, 06:11 AM
  2. Formula needed for dividing 2 sets of cells and excluding adjacent text cells
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-07-2013, 06:45 PM
  3. Replies: 1
    Last Post: 08-08-2012, 08:40 PM
  4. Replies: 3
    Last Post: 07-30-2012, 11:20 AM
  5. LARGE Formula - Non-Adjacent Cells
    By TylerDCA in forum Excel General
    Replies: 1
    Last Post: 02-08-2010, 03:29 PM

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