+ Reply to Thread
Results 1 to 9 of 9

get record from other sheets ...use index match

  1. #1
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    get record from other sheets ...use index match

    Dear All,

    STEP 1 : AT MOST THERE IS 6 RECORDS WHICH TAKE FROM SHEET 2, each records which is not only 1 records,
    same date should have more than 1 records ,...sometimes ..there is 4,5,6 records...

    STEP 2 : THE RECORD WHICH SHOULD MATCH COLUMN B,C,D FROM SHEET 2
    SHEET 1 COLUMN B SHOULD MATCH SHEET 2 COLUMN F
    SHEET 1 COLUMN C SHOULD MATCH SHEET 2 COLUMN A
    SHEET 1 COLUMN D SHOULD MATCH SHEET 2 COLUMN G

    F1=INDEX(Sheet2!$A$1:$A$17000,MATCH(1,(Sheet2!$F$1:$F$17000=B1)*(Sheet2!$A$1:$A$17000=C1),0)*
    (Sheet2! $A$1:$A$17000=D1),0))
    There is also error …

    attached pls find file nameQ&A
    The answer is same as the aswer sheet …please help

    Thanks
    Tom
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: get record from other sheets ...use index match

    Try

    =INDEX(Sheet2!$A$1:$A$17000,MATCH(1,(Sheet2!$F$1:$F$17000=B1)*(Sheet2!$A$1:$A$17000=C1)*(Sheet2!$G$1:$G$17000=D1),0))

    Enter with Ctrl+Shift+Enter

  3. #3
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    get record from other sheets ...use index match

    Dear Sir,

    Please find attached Q&A revised file

    N1=INDEX(Sheet2!$H$1:$H$17000,MATCH(1,(Sheet2!$F$1:$F$17000=B6)*(Sheet2!$A$1:$A$17000=C6)*(Sheet2!$G$1:$G$17000=D6),0))
    this forumula should get n1=1

    above forumula is wrong

    N2= what is the forumula, the answer is n2=2

    Thanks
    Tom
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: get record from other sheets ...use index match

    Why D6 when you are comparing row 1?

    =INDEX(Sheet2!$H$1:$H$17000,MATCH(1,(Sheet2!$F$1:$F$17000=B1)*(Sheet2!$A$1:$A$17000=C1)*(Sheet2!$G$1:$G$17000=D1),0))

    returns 1

    for n2 the value is 1 Check the data you are comparing:

    200 06/07/2016 USA in sheet2 returns a 1 from column H (row 31)

  5. #5
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    Re: get record from other sheets ...use index match

    Hi ..

    when
    100,2016/7/5,USA,100 THERE SHOULD BE 9 RECORDS. NOT 1 RECORD RETURN
    200,2016/7/6,USA,200 THERE SHOULD BE 3 RECORDS . NOT 1 RECORD RETURN
    So the formula is ..?
    tks
    tom

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: get record from other sheets ...use index match

    In N1

    =IFERROR(INDEX(Sheet2!$H$1:$H$17000,SMALL(IF((Sheet2!$F$1:$F$17000=$B$1)*(Sheet2!$A$1:$A$17000=$C$1)*(Sheet2!$G$1:$G$17000=$D$1),ROW($H$1:$H$1700)-ROW($H$1)+1,""),ROWS($H$1:H1))),"")

    Enter will Ctrl+ShifT+Enter

    Drag down

    Repeat changing highlighted ranges for other combinations

  7. #7
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    Re: get record from other sheets ...use index match

    Hi, The answer is correct with thanks. how about the formula in

    o1?
    f11?
    Thanks
    tom

  8. #8
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    Re: get record from other sheets ...use index match

    Hi, The answer is correct with thanks. how about the formula in

    o1?
    f11?
    Thanks
    tom

  9. #9
    Registered User
    Join Date
    02-23-2015
    Location
    hk
    MS-Off Ver
    window7
    Posts
    240

    Re: get record from other sheets ...use index match

    oh ..it solved

+ 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] Match criteria between sheets and copy cell values to existing record in master sheet
    By Hirad001 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-05-2015, 04:28 PM
  2. Replies: 1
    Last Post: 06-18-2015, 08:45 AM
  3. [SOLVED] Index Match for one record with 4 possible results
    By onemoremile in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-03-2013, 04:24 PM
  4. [SOLVED] Match record number across sheets based on data from multiple columns
    By smithcw in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 08-12-2013, 02:25 PM
  5. Compare two sheets and Match the record
    By kiran16 in forum Excel General
    Replies: 9
    Last Post: 07-30-2013, 10:21 AM
  6. [SOLVED] Looking to combine info from 2 sheets into 3rd but need to match variable record numbers
    By dawatcher in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-24-2012, 06:22 PM
  7. Multiple Sheets Match & Index filtering by sheets
    By ijulian in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-24-2012, 01:49 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