+ Reply to Thread
Results 1 to 10 of 10

Excel Match and Sum Problem

  1. #1
    Registered User
    Join Date
    10-23-2014
    Location
    Hampshire, England
    MS-Off Ver
    2003
    Posts
    11

    Excel Match and Sum Problem

    Good afternoon,

    I am hoping someone can help me with a problem I have. I have changed the actual details of the issue but the fundamentals are the same.

    I want to add the total cost of a particular item, in this example red balloons. Explanations of cells are as follows:

    Cells B1:O1 = Item
    Cells B2:O2 = Quantity of items in an order
    Cells B3:O8 = Number of orders for each item and quantity
    Cells B11:C16 = Rate item charged at
    Cells C19:D32 = Cost per quantity of item

    Excel needs to look at the rate charged for the item (Red Balloon = Higher) then sum costs per order quantity. This should be:

    Red Balloon 1 20 x £20 = £400
    Red Balloon 2 20 x £21 = £420
    Red Balloon 3 10 x £22 = £440
    Red Balloon 4 10 x £23 = £460
    Red Balloon 5 20 x £24 = £480
    Red Balloon 6 30 x £25 = £500
    Red Balloon 7 22 x £26 = £520

    Total cost cell R3 = £3,220.

    Any help is greatly appreciated.

    Thank you

    Vivienne
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Excel Match and Sum Problem

    Try

    =MMULT(INDEX(B3:O8,MATCH(R2,A3:A8,0),)*(B1:O1=R1),INDEX(C19:D32,,MATCH(INDEX(B11:C16,MATCH(R2,A11:A16,0),MATCH(R1,B10:C10,0)),C18:D18,0)))

    Note: Your answer should be 3072
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Valued Forum Contributor
    Join Date
    08-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2021
    Posts
    346

    Re: Excel Match and Sum Problem

    Green cells to select
    Attached Files Attached Files
    Last edited by AlanY; 10-28-2014 at 11:36 AM.

  4. #4
    Registered User
    Join Date
    10-23-2014
    Location
    Hampshire, England
    MS-Off Ver
    2003
    Posts
    11

    Re: Excel Match and Sum Problem

    Thank you both for your quick replies. Ace XL your formula works and it should be 3,072. Can't even get that bit correct.

    Again Thank you very much.

  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: Excel Match and Sum Problem

    Hi.

    I hate to add a more banal post to a thread with such a fine solution by Ace_XL, but you should know that cross-posting to other forums without providing links to those posts is against the rules here - I'm sure you can understand why.

    Perhaps you might consider also letting that other forum know that you have received a satisfactory solution elsewhere? That way they do not continue to invest their own time in your problem needlessly.

    Regards
    Click * below if this answer helped

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

  6. #6
    Registered User
    Join Date
    10-23-2014
    Location
    Hampshire, England
    MS-Off Ver
    2003
    Posts
    11

    Re: Excel Match and Sum Problem

    Good morning,

    Please find below links to other excel forums containing the same post. I am still working on the answers I have been given. The reply from Ace_XL (www.excelforum.com) works on the attached worksheet, however, the actual spreadsheet I am working with is much more complex so is taking a little longer to ensure it works correctly. I will update my post when I have completed this.

    I apologise to all for not including the links sooner.

    Vivienne


    http://excelexperts.com/excel-match-and-sum-problem
    http://www.excelguru.ca/forums/showt...nd-Sum-Problem
    http://www.mrexcel.com/forum/excel-q...m-problem.html

  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: Excel Match and Sum Problem

    Wow! You've certainly hedged your bets there, then!

    Thanks for letting us know.

    Perhaps if you were able to explain in a little more detail what issues you're having with adapting Ace_XL's solution to your actual workbook? Or even posting that workbook (replacing confidential information with dummy data, if necessary)?

    Regards

  8. #8
    Registered User
    Join Date
    10-23-2014
    Location
    Hampshire, England
    MS-Off Ver
    2003
    Posts
    11

    Re: Excel Match and Sum Problem

    XOR LX,

    I am indeed . I am aware that each forum has different users. I wanted to try and get it out to all and see different view points. There have been so many different formulas suggested and it is interesting to see the approaches taken. I am learning a great deal from other peoples expertise, which is great.

    Vivienne

    Quote Originally Posted by XOR LX View Post
    Wow! You've certainly hedged your bets there, then!

    Thanks for letting us know.

    Perhaps if you were able to explain in a little more detail what issues you're having with adapting Ace_XL's solution to your actual workbook? Or even posting that workbook (replacing confidential information with dummy data, if necessary)?

    Regards

  9. #9
    Registered User
    Join Date
    10-23-2014
    Location
    Hampshire, England
    MS-Off Ver
    2003
    Posts
    11

    Re: Excel Match and Sum Problem

    Hello,

    Thank you to PGC01, post #3 (http://www.mrexcel.com/forum/excel-q...m-problem.html) as the following formula now works:

    =SUMPRODUCT(--($B$1:$O$1=R1),INDEX($B$3:$O$8,MATCH(R2,$A$3:$A$8,0),0),INDEX($B$22:$O$23,MATCH(INDEX($B$11:$C$16,MATCH(R2,$A$11:$A$16,0 ),MATCH(R1,$B$10:$C$10,0)),$A$22:$A$23,0),0))

    I no longer need any further replies to this issue. Thank you to all who have taken the time to try and find a solution for me I appreciate it.

    Vivienne

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

    Re: Excel Match and Sum Problem

    Glad you got there in the end!

    And glad that you're learning some new things from the many forums you've visited!

    You can make this thread as "Solved" using Thread Tools, if you wouldn't mind.

    Regards

+ 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. [SOLVED] Index Match Match problem
    By nordmann in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-06-2014, 07:44 PM
  2. Replies: 6
    Last Post: 05-28-2013, 05:08 PM
  3. excel 2007 match code problem
    By odursus in forum Excel General
    Replies: 6
    Last Post: 08-16-2012, 10:21 AM
  4. Problem with INDEX, INDIRECT, MATCH, MATCH
    By JO505 in forum Excel General
    Replies: 5
    Last Post: 09-01-2011, 05:51 PM
  5. [SOLVED] Problem w/ Match prop vs. Match method
    By George Raft in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-02-2005, 01:06 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