+ Reply to Thread
Results 1 to 21 of 21

INDEX and MATCH across two worksheets

  1. #1
    Registered User
    Join Date
    04-26-2013
    Location
    Hernando, MS
    MS-Off Ver
    Excel 2010
    Posts
    13

    Question INDEX and MATCH across two worksheets

    I am attaching the workbook I am having trouble with.RFQ TEMPLATE.xlsx

    When an Item number is input into Cell A3, then a VLOOKUP finds the correct Part # and puts it in G3.

    Currently in cell H3, the correct price is displayed based on the Qty in C3. However, currently this only works if the part # in G3 is found in the worksheet "PRICE". I need cell H3 to lookup the correct price in worksheet "CSP" if the part # in G3 is not found in worksheet "PRICE".

    Not sure how to do this. I have searched and searched and cannot solve it. Any help is greatly appreciated!

    thanks!

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: INDEX and MATCH across two worksheets

    =IFERROR(INDEX(PRICE!$C$2:$J$300,MATCH($G3,PRICE!$B$2:$B$300,0),MATCH($C3,PRICE!$C$1:$J$1,0)),IFERROR(INDEX(CSP!$C$2:$H$56,MATCH($G3,CSP!$B$2:$B$56,0),MATCH($C$3,CSP!$C$1:$H$1,0)),""))

    Array FOrmula (When applied, you need to press CTRL-SHIFT-ENTER button together) and copied down

  3. #3
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: INDEX and MATCH across two worksheets

    Try an IFERROR statement, something like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  4. #4
    Registered User
    Join Date
    04-26-2013
    Location
    Hernando, MS
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: INDEX and MATCH across two worksheets

    Azumi, it's not working. with the formula you gave me it will still return a price if the part # is found in the PRICE worksheet but if I use one from the CP worksheet then cell H3 is blank...any ideas?

  5. #5
    Registered User
    Join Date
    04-26-2013
    Location
    Hernando, MS
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: INDEX and MATCH across two worksheets

    Quote Originally Posted by gak67 View Post
    Try an IFERROR statement, something like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    That's it!! Thanks gak67!! saved me a lot of Googling time!!

  6. #6
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: INDEX and MATCH across two worksheets

    Quote Originally Posted by azumi View Post
    Array FOrmula (When applied, you need to press CTRL-SHIFT-ENTER button together) and copied down
    I don't believe that formula needs to be an array formula.

    To the OP - azumi's formula will give a blank cell if after checking the CSP sheet it still can't find the part number. Mine will give an error. I would go with azumi's.

  7. #7
    Registered User
    Join Date
    04-26-2013
    Location
    Hernando, MS
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: INDEX and MATCH across two worksheets

    I spoke too soon....sorry. Both of your answers seem to return correctly if the part # in G3 is located in the "CSP" worksheet, but if the Part # in G3 is found in the "PRICE" worksheet there is an error or blank cell. Any ideas why that would be? I have tried both of your suggestions multiple times. Thank you again for your help!

  8. #8
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: INDEX and MATCH across two worksheets

    Which Item that found in PRICE sheet and give you an error?

  9. #9
    Registered User
    Join Date
    04-26-2013
    Location
    Hernando, MS
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: INDEX and MATCH across two worksheets

    Try the very first one....item # 643169097933 in cell A2

  10. #10
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: INDEX and MATCH across two worksheets

    Its weird, in my computer is fine, it found $115, I lookup in PRICE sheet

    but in CSP sheet not find it, error result
    Last edited by azumi; 07-12-2014 at 10:53 PM.

  11. #11
    Registered User
    Join Date
    04-26-2013
    Location
    Hernando, MS
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: INDEX and MATCH across two worksheets

    Yes that is strange. I just downloaded the file again from this website and tried it in the first row (Row 3) and it worked...but then when I replaced that value in A3 with a number from the "CSP" worksheet in A8 (00885074388571)that didn't work. Does that work for you?

  12. #12
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: INDEX and MATCH across two worksheets

    Maybe that part not avalaible in both 2 sheets? Is that possible?

    It gave me error results

  13. #13
    Registered User
    Join Date
    04-26-2013
    Location
    Hernando, MS
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: INDEX and MATCH across two worksheets

    A part is available in only one sheet or the other. A part will never exist in both sheets. That is the reason I need it to search through both sheets. Sorry if that is confusing.

  14. #14
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: INDEX and MATCH across two worksheets

    Wait a sec

  15. #15
    Registered User
    Join Date
    04-26-2013
    Location
    Hernando, MS
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: INDEX and MATCH across two worksheets

    ok...no problem

  16. #16
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: INDEX and MATCH across two worksheets

    Ah... you have 2 different Column Header in PRICE sheet and CSP sheet

    PRICE = 20, 30, 40

    SCP = 1, 2, 3, 4

    But you condition is 20, 50 and so on

    So will not find in SCP sheet

  17. #17
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: INDEX and MATCH across two worksheets

    You should change Cell C3 (for example 2) when Item part from CSP Sheet, otherwise (ie. 20) when coming from PRICE Sheet

    and the formula will work properly
    Last edited by azumi; 07-12-2014 at 11:26 PM.

  18. #18
    Registered User
    Join Date
    04-26-2013
    Location
    Hernando, MS
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: INDEX and MATCH across two worksheets

    I am not sure I understand.....could you help me understand better what you are saying please.
    The CSP sheet is for specialty parts and that is why the QTY headers are different because the customer only orders smaller quantities of the parts in that list.

  19. #19
    Registered User
    Join Date
    04-26-2013
    Location
    Hernando, MS
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: INDEX and MATCH across two worksheets

    I think I understand. ANd I just realized a problem. If I type in the exact quantity for example 20, 30, 40 for an item in the PRICE sheet it will give the correct price, but if I type in a quantity of 32 or 41 or 57 it does not. It should give a price when I type in those odd values. Those are price breaks. For example if an item has a price of $135 for 20 parts and a price of $128 for 30 parts, the price for anything from 20 to 29 parts should be $135. at a quantity of 30 the price would change to $128. Does that make sense? Those are price break points. Sorry for the confusion.

  20. #20
    Registered User
    Join Date
    04-26-2013
    Location
    Hernando, MS
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: INDEX and MATCH across two worksheets

    Azumi, did you see my last post? Any ideas?

  21. #21
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: INDEX and MATCH across two worksheets

    =IFERROR(INDEX(PRICE!$C$2:$J$300,MATCH($G3,PRICE!$B$2:$B$300,0),MATCH($C3,PRICE!$C$1:$J$1,1)),IFERROR(INDEX(CSP!$C$2:$H$56,MATCH($G3,CSP!$B$2:$B$56,0),MATCH($C$3,CSP!$C$1:$H$1,1)),""))

    Try this
    Attached Files Attached Files
    Last edited by azumi; 07-13-2014 at 01:57 PM.

  22. #22
    Registered User
    Join Date
    04-26-2013
    Location
    Hernando, MS
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: INDEX and MATCH across two worksheets

    Awesome, Azumi! It works great! Thanks again for your help!

+ 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 across several worksheets
    By hennakao in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-25-2016, 08:07 AM
  2. Index and Match from different worksheets
    By djbcktt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-24-2013, 03:27 PM
  3. Need to use MATCH and INDEX over 2 worksheets
    By khedger in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-11-2012, 09:55 AM
  4. index and match across multiple worksheets
    By pertenax in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-21-2012, 03:15 AM
  5. Excel 2007 : Index and Match using multiple worksheets
    By lola12345 in forum Excel General
    Replies: 1
    Last Post: 10-27-2011, 03:31 PM

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.6.0 RC 1