+ Reply to Thread
Results 1 to 10 of 10

Match data

  1. #1
    Registered User
    Join Date
    12-14-2011
    Location
    NH
    MS-Off Ver
    Excel 2010
    Posts
    83

    Match data

    I would like to match the data in one column to the data in another column.
    One column has 3500 rows with 5 cells of data in each row that also needs to be moved. and the other one has 84000 rows with 25 cells of data.

  2. #2
    Forum Contributor
    Join Date
    03-22-2017
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: Match data

    using a vlookup function is easier for beginner, try to google it.

    the result of #N/A mean there have no search result in another data
    weakness is may cause a bit slow to calculate.

    anyway, upload a simple file will get more help to direct get a formula....
    Hope you can learn every time you visit here.

    If you still confuse on how it work, kindly ask or go to
    i) Formula - Formula (Ribbon) > Formula Auditing (Section) > Evaluate Formula > Evaluate; or
    ii) VBA/Code - Click F8 to see how it work step by step.

    It it take care of your question, Please:
    Mark tread as [Solved] [Thread Tools->Mark thread as Solved]
    ;and
    Click *Add Reputation to thank anyone solved your question.

  3. #3
    Registered User
    Join Date
    12-14-2011
    Location
    NH
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: Match data

    Okay, I uploaded two formulas. They partially do what I want.
    =IFERROR(IF(MATCH(A2,D$2:D$6,0),A2,""),"")
    =IFERROR(VLOOKUP(F3,D:E,2,0),"")

    It gives a return matching the number I am looking for, but, I need the data in three more columns to populate the data in the adjacent cells.

  4. #4
    Forum Contributor
    Join Date
    03-22-2017
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: Match data

    =IFERROR(IF(MATCH(A2,D$2:D$6,0),A2,""),"")
    This formula will not work......
    Match only return number, not true and false, the answer sure 100% be "" and it due to iferror,

    Upload a simple file mean upload an excel file.....
    In 10-20 row that can represent the whole workbook that have hundred.(so call Samples)
    inside should have no sensitive data and one more sheet with desired result (put it manually) with some Description
    it value than thousand words.

    step1, Go advance,
    step2, manage attachment
    step3, choose file or drag file,
    step4, click "upload" in the right
    step5, go down and click "close the window"
    Step6, post at normal.

  5. #5
    Registered User
    Join Date
    12-14-2011
    Location
    NH
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: Match data

    KeyCode1 >I is the constant.
    KeyCode2 >N is what I want to match/align to KeyCode1
    There are 35000 rows
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    03-22-2017
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: Match data

    If I not understand wrongly,

    In book2, (your attachment)
    you want to check whether the column K (key code 2) have incurred in column A,b and c (key code 1)

    if solely check for occurrence,
    try
    =COUNTIF($A$2:$C$273,K2)

    the value 0 mean not such code in column A,B and C

    if want to return result,
    you may create three column,
    in P2
    =INDEX($F$2:$F$273,MATCH(K2,$A$2:$A$273,0))
    It show result in of N row in column F based on number of row that K2 incurred in A2:A273
    in Q2,
    =INDEX($F$2:$F$273,MATCH(K2,$B$2:$B$273,0))
    It show result in of N row in column F based on number of row that K2 incurred in B2:B273
    R2,
    =INDEX($F$2:$F$273,MATCH(K2,$C$2:$C$273,0))
    It show result in of N row in column F based on number of row that K2 incurred in c2:C273

  7. #7
    Registered User
    Join Date
    12-14-2011
    Location
    NH
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: Match data

    Thank you for your help and response.

    I am trying to match columns K,L,M,N with column A
    Column A and K have matching data.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,521

    Re: Match data

    It would be helpful if you could include a sheet showing what the data should look like after the formulas are applied so that we could get an idea of what you want.
    That said I am going to make a guess that the following formula produces the results you are looking for on sheet 2 of the attached file:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If there are 3500 rows of key code 1's then modify the formula to read: =IFERROR(INDEX(Sheet1!K$2:K$3500,MATCH($A2,Sheet1!$K$2:$K$3500,0)),"")
    Once the formula has been pasted into cell K2 on sheet 2, the fill handle may be dragged across to N2 and while K2:N2 are selected the fill handle for N2 may be dragged down as far as needed.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  9. #9
    Registered User
    Join Date
    12-14-2011
    Location
    NH
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: Match data

    Thank you this worked.
    I really appreciate your efforts

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,521

    Re: Match data

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools link above your first post. I hope that you have a blessed day.

+ 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, Hlookup or?? to relocate and match up data to sorted data
    By greenfox74 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-17-2017, 12:19 PM
  2. Replies: 6
    Last Post: 09-03-2015, 09:51 PM
  3. match data 2 sheets. if match, then copy data from one sheet to another
    By flunzy in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-09-2013, 06:38 AM
  4. Replies: 3
    Last Post: 05-08-2013, 02:10 PM
  5. [SOLVED] Two Excel sheets trying to match text data and return the match from the second column!
    By bankcott in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-02-2013, 02:17 PM
  6. Match inputs in one column with data from another if >50% of their consec letters match
    By TaskinRahman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-24-2012, 01:47 AM
  7. Replies: 3
    Last Post: 04-11-2012, 10:04 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