+ Reply to Thread
Results 1 to 10 of 10

Vlookup and Index Match Function - 2 Sheets

  1. #1
    Registered User
    Join Date
    01-22-2015
    Location
    kuwait
    MS-Off Ver
    2010
    Posts
    13

    Vlookup and Index Match Function - 2 Sheets

    Hello Experts,

    I was working on this sheets and then I faced this issue. I want to move data from Sheet 1 to Sheet 2, where the price for each month in each year to appear the table of sheet2. for Example:

    I want to know the prices for Material " 100016" and to be copied in sheets 2 in the correct month where the order is issued.

    Could you please advise ?

    Best,
    Mohamed
    Last edited by mrnassaro; 11-13-2017 at 03:11 PM.

  2. #2
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Vlookup and Index Match Function - 2 Sheets

    Please attach a small sample file with representative data and expected results.
    You can manually enter results.

  3. #3
    Registered User
    Join Date
    01-22-2015
    Location
    kuwait
    MS-Off Ver
    2010
    Posts
    13

    Re: Vlookup and Index Match Function - 2 Sheets

    I am attaching the sample file
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Vlookup and Index Match Function - 2 Sheets

    In C3, copied across and down:
    =IFERROR(INDEX(Sheet1!$I$2:$I$1588,MATCH(1,INDEX((MONTH(Sheet2!C$2)=MONTH(Sheet1!$C$2:$C$1588))*(YEAR(Sheet2!C$2)=YEAR(Sheet1!$C$2:$C$1588))*(Sheet2!$A3=Sheet1!$A$2:$A$1588),0),0)),"")

    AFTER some changes to the dates in row 2.

    I have just noticed that your profile saya Excel 2010. Do you need backward compatability with Excel 2003 and earlier (you attached the out-dated .xls)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    Registered User
    Join Date
    01-22-2015
    Location
    kuwait
    MS-Off Ver
    2010
    Posts
    13

    Re: Vlookup and Index Match Function - 2 Sheets

    This Really works Thank you so much !

    Could you please explain the logic used?

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Vlookup and Index Match Function - 2 Sheets

    Dates. They were changed to first of each month and then formatted to look like month names.
    =IFERROR(INDEX(Sheet1!$I$2:$I$1588,MATCH(1,INDEX((MONTH(Sheet2!C$2)=MONTH(Sheet1!$C$2:$C$1588))*(YEAR(Sheet2!C$2)=YEAR(Sheet1!$C$2:$C$1588))*(Sheet2!$A3=Sheet1!$A$2:$A$1588),0),0)),"")

    Red, when the following conditions are met (1=TRUE)
    Orange: the order month matches the month of the dates in row 2 AND WHEN
    Cyan: the order year matches the yearof the dates in row 2 AND WHEN
    Green: the part numbers correspond the return
    Blue: the prices
    Yellow: this bit converts the formula from a resource-heavty array formula to one that's a bit faster.
    Black: if you return an error, then put a blank.



    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
    Last edited by Glenn Kennedy; 11-13-2017 at 02:39 PM.

  7. #7
    Registered User
    Join Date
    01-22-2015
    Location
    kuwait
    MS-Off Ver
    2010
    Posts
    13

    Re: Vlookup and Index Match Function - 2 Sheets

    Quote Originally Posted by Glenn Kennedy View Post
    Dates. They were changed to first of each month and then formatted to look like month names.
    =IFERROR(INDEX(Sheet1!$I$2:$I$1588,MATCH(1,[/COLOR]INDEX((MONTH(Sheet2!C$2)=MONTH(Sheet1!$C$2:$C$1588))*(YEAR(Sheet2!C$2)=YEAR(Sheet1!$C$2:$C$1588))*(Sheet2!$A3=Sheet1!$A$2:$A$1588),0),0)),"")

    Red, when the following conditions are met (1=TRUE)
    Orange: the order month matches the month of the dates in row 2 AND WHEN
    Cyan: the order year matches the yearof the dates in row 2 AND WHEN
    Green: the part numbers correspond the return
    Blue: the prices
    Yellow: this bit converts the formula from a resource-heavty array formula to one that's a bit faster.
    Black: if you return an error, then put a blank.



    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
    Awesome

    Thank you very much !!

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Vlookup and Index Match Function - 2 Sheets

    I edited the colour coding quite a few times, cos I messed it up... It's OK now...



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  9. #9
    Registered User
    Join Date
    01-22-2015
    Location
    kuwait
    MS-Off Ver
    2010
    Posts
    13

    Re: Vlookup and Index Match Function - 2 Sheets

    Quote Originally Posted by Glenn Kennedy View Post
    Dates. They were changed to first of each month and then formatted to look like month names.
    =IFERROR(INDEX(Sheet1!$I$2:$I$1588,MATCH(1,INDEX((MONTH(Sheet2!C$2)=MONTH(Sheet1!$C$2:$C$1588))*(YEAR(Sheet2!C$2)=YEAR(Sheet1!$C$2:$C$1588))*(Sheet2!$A3=Sheet1!$A$2:$A$1588),0),0)),"")

    Red, when the following conditions are met (1=TRUE)
    Orange: the order month matches the month of the dates in row 2 AND WHEN
    Cyan: the order year matches the yearof the dates in row 2 AND WHEN
    Green: the part numbers correspond the return
    Blue: the prices
    Yellow: this bit converts the formula from a resource-heavty array formula to one that's a bit faster.
    Black: if you return an error, then put a blank.



    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
    Could you please explain the Asterisk and the equal between Month Function and Year Function ?

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Vlookup and Index Match Function - 2 Sheets

    asterisk = multiply - both have to be true

    Equal... means equal!! Month in Sheet2 C2 = month in Sheet 1 C2-C1588???!!!

+ 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. Correlating data in 2 sheets. Vlookup, Match Index ?
    By Sindagon1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-11-2016, 07:22 AM
  2. Replies: 1
    Last Post: 06-18-2015, 08:45 AM
  3. Vlookup or Index Match to check value across multiple sheets
    By HB07 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-03-2015, 03:57 AM
  4. [SOLVED] Vlookup/Index/Match on multiple sheets data
    By yabi0823 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-30-2014, 03:47 PM
  5. [SOLVED] Excel 2007 - vlookup/index/match with two datasets on two sheets
    By deevusone in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-23-2014, 04:47 PM
  6. Looking up data from two sheets with vlookup or index and match
    By joeycrak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2013, 04:56 PM
  7. Index / Match / Vlookup Loop across 3 sheets
    By NewExcelUser in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2009, 03:27 AM

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