+ Reply to Thread
Results 1 to 7 of 7

VLOOKUP paste all data from that row to destination if match [easy for most]

  1. #1
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    VLOOKUP paste all data from that row to destination if match [easy for most]

    Hello,

    I am trying to do a VLOOKUP and copy all the data from that row where the VLOOKUP matches. I have a list of Stock tickers [col O] and the raw data in an array A:K. I want to search the Stock ticker from Col O in the raw data col B, and take all 11 columns of raw data and bring it to the right of my VLOOKUP list..

    It is a pretty simple task and a lot harder to explain, I have the Workbook attached pls view that you will see what I mean. It is Q5 where I am trying to figure out… Any ideas guys? Appreciate any help I can get I can't figure it out
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: VLOOKUP paste all data from that row to destination if match [easy for most]

    which result you want in Q5


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: VLOOKUP paste all data from that row to destination if match [easy for most]

    Quote Originally Posted by avk View Post
    which result you want in Q5
    I would like to do a vlook up of the ticker right next to it (O5) and find it in the array [DATA] and take the relevant data and paste it

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: VLOOKUP paste all data from that row to destination if match [easy for most]

    First observation: VLOOKUP() can only search for values in the first column of lookup_table. It appears that your stock tickers are stored in column B and not column A, so something is not right there.
    Second observation: I note that your lookup_table reference is relative. I expect you want this to be an absolute reference (Read here if you are unfamiliar with using relative and absolute references: https://support.office.com/en-ca/art...es_in_formulas )
    Third observation: Your column_index_number argument is an array, but you have only selected one cell and have not array entered the formula.

    With those observations made, corrections I made:
    1) Select Q5:X5.
    2) Press F2 to enter edit mode
    3) Navigate to the references for the lookup_table argument and press F4 to convert to absolute references.
    4) Edit the first reference in the lookup_table argument to be $B$6 instead of $A$6.
    5) confirm entry with ctrl-shift-enter to make an array function.
    6) copy and paste down.

    Is that what you are trying to do?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: VLOOKUP paste all data from that row to destination if match [easy for most]

    Try with in "Q5"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    copy paste down.
    If you want data from another range then you can change range accordingly.

  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,169

    Re: VLOOKUP paste all data from that row to destination if match [easy for most]

    In Q5 and copy across

    =VLOOKUP($O5, $B$6:$I$423, COLUMNS($A:B), FALSE)

    OR

    =INDEX($C$6:$I$423,MATCH($O5,$B$6:$B$423,0),COLUMNS($A:A))

    Copy across

  7. #7
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: VLOOKUP paste all data from that row to destination if match [easy for most]

    You guys are all great. With your help I figured it all out!! I owe you guys. All the best I really appreciate it

+ 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] Problem with an easy formula VLOOKUP doesnt match
    By XLalbania in forum Excel General
    Replies: 11
    Last Post: 03-05-2017, 06:09 PM
  2. Cgange default paste to match destination formatting
    By Gareth1000 in forum Excel General
    Replies: 1
    Last Post: 12-01-2016, 11:28 AM
  3. Copy from static destination & paste to dynamic destination
    By Marbleking in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-31-2015, 09:31 AM
  4. [SOLVED] Paste in "match destination format" macro code
    By Hopelesslylost in forum Excel General
    Replies: 6
    Last Post: 12-05-2012, 01:57 PM
  5. paste data, keep destination formatting
    By excel_try in forum Excel General
    Replies: 9
    Last Post: 07-17-2009, 06:44 AM
  6. Replies: 1
    Last Post: 06-20-2006, 02:45 AM
  7. [SOLVED] How to set a default paste option of "Match Destination Format"
    By John H @ EBR in forum Excel General
    Replies: 1
    Last Post: 04-17-2006, 05:10 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