+ Reply to Thread
Results 1 to 2 of 2

vlook up-vba macro code for more than one column

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    vlook up-vba macro code for more than one column

    I have 2 sheets, sheet2 have data consist of 5 columns I want to vlook up by vba code so the data from sheet2 with reference here is (ID) search in sheet1 and update the data from sheet 2 to sheet 1 like below. i have found a similar code but it updates only one column that is B cloumn i want to update C, D, E columns and rows by the below code, could anybody help in this. see the below code.

    Sheet 2
    Id, beginning, principal, interest, endbalance
    123, 10000, 1000, 50 , 9000
    789, 8000 , 400 , 150, 7600
    245, 5000 , 1000, 200 , 4000
    456, 4000 , 1000, 1000 , 3000
    789, 2500 , 500 , 100 , 2000

    Sheet1
    id beginning principal interest endbalance
    123 10000
    789 8000
    245 5000
    456 4000
    786 2500
    Ifound below code suitable for the above query but this is only execute column b , I want to execute c, d, e columns how can I do this.
    Please Login or Register  to view this content.
    Moderator Note:

    Pls use code tags around your code next time as per forum rules.
    Last edited by Fotis1991; 10-10-2013 at 04:24 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: vlook up-vba macro code for more than one column

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).


    http://www.mrexcel.com/forum/excel-q...ne-column.html
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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. Vlook & Macro not working together
    By dstrdOne in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2013, 04:43 PM
  2. Using Vlook up thru vba code
    By ahmedkin in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-24-2012, 03:39 AM
  3. Cant search in VLOOK up column
    By SKM in forum Excel General
    Replies: 7
    Last Post: 10-05-2010, 12:14 PM
  4. vlook up increment column number with auto fill
    By martindwilson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2007, 12:37 PM
  5. VLook Up random column
    By scottymelloty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-07-2005, 01:15 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