+ Reply to Thread
Results 1 to 4 of 4

Copy worksheet from another worksheet using condition

Hybrid View

  1. #1
    Registered User
    Join Date
    10-10-2006
    Posts
    2

    Copy worksheet from another worksheet using condition

    Dear All,

    I have two worksheets namely LTA and INV. I want to copy values from another a source worksheet to a distination worksheet after comparing two columns in both worksheets. For example:

    INV.XLS

    INVNO LICNO
    100 100
    101 101
    102 102
    103 103
    104 104
    105 105


    LTA.XLS
    BILLNO VEHNO
    100
    102
    105
    101
    104
    103

    If you see the above example the column BILLNO in LTA.XLS is blank. Now I want to copy the values of column INVNO in INV.XLS into this after comparing the column values LICNO=VEHNO.

    Can any expert help me in this regard?

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523
    place a formula like this beside the billno column

    =VLOOKUP(A1,[inv.xls]Sheet1!$A$1:$B$6,2,FALSE)
    =VLOOKUP(A2,[inv.xls]Sheet1!$A$1:$B$6,2,FALSE)
    =VLOOKUP(A3,[inv.xls]Sheet1!$A$1:$B$6,2,FALSE)
    =VLOOKUP(A4,[inv.xls]Sheet1!$A$1:$B$6,2,FALSE)
    =VLOOKUP(A5,[inv.xls]Sheet1!$A$1:$B$6,2,FALSE)
    =VLOOKUP(A6,[inv.xls]Sheet1!$A$1:$B$6,2,FALSE)

  3. #3
    Registered User
    Join Date
    10-10-2006
    Posts
    2

    not working

    Hi dave,

    thanks for your prompt reply. I tried but it is not working. PLEASE KINDLY SEE THE ATTACHED ZIP FILE EXTRACT IT AND VIEW THE EXCEL FILE WITH SHEET1 AND SHEET2.
    Attached Files Attached Files

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523
    your sheet does not reflect your original question
    VLOOKUP works left to righ
    it won't work right to left

    search index match for lots of info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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