+ Reply to Thread
Results 1 to 4 of 4

Thread: Index and Match formula combination

  1. #1
    Registered User
    Join Date
    10-12-2010
    Location
    MI
    MS-Off Ver
    Excel 2003
    Posts
    20

    Index and Match formula combination

    Hi Everyone,

    I have been trying to use some suggestions in similar posts today for coulpe hours now and I just cannot get it to work.

    I have two files. I would like to include the price from the "test price" file in the "test complete" file. The price is depending on customer number and the part number, so two matches are requried.

    I believe it does not like to work with those two separate files or I am selecting the array not correctly.

    Could you please help me to create the formula in the "price" column (D) in "test complete" file from the "test price" (column C) file?

    Many thanks!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor khamilton's Avatar
    Join Date
    10-08-2009
    Location
    IL
    MS-Off Ver
    Excel 2007
    Posts
    341

    Re: Index and Match formula combination

    enter this with control + shift + enter.

    =INDEX('[Test price.xlsx]Prices'!C$2:C$7,MATCH(A2&B2,'[Test price.xlsx]Prices'!A$2:A$7&'[Test price.xlsx]Prices'!B$2:B$7,0))
    Please acknowledge the response you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  3. #3
    Registered User
    Join Date
    10-12-2010
    Location
    MI
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Index and Match formula combination

    Quote Originally Posted by khamilton View Post
    enter this with control + shift + enter.

    =INDEX('[Test price.xlsx]Prices'!C$2:C$7,MATCH(A2&B2,'[Test price.xlsx]Prices'!A$2:A$7&'[Test price.xlsx]Prices'!B$2:B$7,0))
    Thank you! I have done so but it returns: #VALUE - maybe I have done it the incorrect way. I have copied the formula and tried to paste it using: ctrl+shift+enter. It has not pasted anything....

  4. #4
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Index and Match formula combination

    How about?

    =SUMPRODUCT(--('[Test price.xlsx]Prices'!$A$2:$A$7=A2),--('[Test price.xlsx]Prices'!$B$2:$B$7=B2),'[Test price.xlsx]Prices'!$C$2:$C$7)

    this pulls the corresponding price, you can then further multiply by Quantity.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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