Results 1 to 24 of 24

Copying data returning an error in Sheet1 to next empty cell in specific column of Sheet2

Threaded View

cloudwalking Copying data returning an... 03-21-2013, 09:33 AM
cloudwalking Re: Copying data returning an... 03-21-2013, 09:35 AM
cloudwalking Re: Copying data returning an... 03-21-2013, 10:13 AM
AB33 Re: Copying data returning an... 03-21-2013, 10:16 AM
cloudwalking Re: Copying data returning an... 03-21-2013, 10:41 AM
AB33 Re: Copying data returning an... 03-21-2013, 11:00 AM
cloudwalking Re: Copying data returning an... 03-21-2013, 12:05 PM
AB33 Re: Copying data returning an... 03-21-2013, 12:13 PM
cloudwalking Re: Copying data returning an... 03-21-2013, 12:24 PM
AB33 Re: Copying data returning an... 03-21-2013, 12:51 PM
cloudwalking Re: Copying data returning an... 03-21-2013, 12:59 PM
AB33 Re: Copying data returning an... 03-21-2013, 01:36 PM
cloudwalking Re: Copying data returning an... 03-21-2013, 01:55 PM
cloudwalking Re: Copying data returning an... 03-22-2013, 06:33 AM
cloudwalking Re: Copying data returning an... 03-22-2013, 06:34 AM
AB33 Re: Copying data returning an... 03-22-2013, 06:43 AM
cloudwalking Re: Copying data returning an... 03-22-2013, 07:04 AM
AB33 Re: Copying data returning an... 03-22-2013, 07:10 AM
cloudwalking Re: Copying data returning an... 03-22-2013, 07:17 AM
AB33 Re: Copying data returning an... 03-22-2013, 07:22 AM
cloudwalking Re: Copying data returning an... 03-22-2013, 07:35 AM
AB33 Re: Copying data returning an... 03-22-2013, 08:04 AM
cloudwalking Re: Copying data returning an... 03-22-2013, 09:01 AM
AB33 Re: Copying data returning an... 03-22-2013, 09:02 AM
  1. #1
    Forum Contributor
    Join Date
    01-03-2013
    Location
    Newport, England
    MS-Off Ver
    Excel 2013 Windows
    Posts
    144

    Copying data returning an error in Sheet1 to next empty cell in specific column of Sheet2

    Excel Help.xlsx

    Hi,

    I have been reading through some VBA guides but I can’t seem to work out quite what I need to do to solve my problem so I’m wondering if someone could help?
    The problem effectively revolves around two sheets, call them Sheet1 and Sheet2 for the purposes of this.
    On Sheet1 external data is copied into column A in the form of a list of names. Column B is a VLOOKUP with finds the codes (In Sheet2) assigned to the specific names. For clarification, the list of these names and codes are located in Columns A&B of Sheet2 respectively.
    If a name is copied in which has not yet been assigned a code, then Sheet1 Col B obviously returns an N/A error.
    What I would essentially like to be able to do, is run a macro directly after the data is copied into Sheet 1 that assigns any entries that have no code, with a new code.
    If the codes are located in Sheet 2 Col B, I can extend this series as long as necessary. So when an error is returned in Sheet1 Col B, the name in the adjacent cell from Sheet 1 Col A is copied to the next empty cell in Sheet 2 Col A – thus effectively assigning it a new code.
    I’ve tried to explain this as best I can, and attached an example of what I'm trying to achieve, so I live in hope someone might be able to help?
    Kind Regards!
    Attached Files Attached Files
    Last edited by cloudwalking; 03-21-2013 at 12:22 PM.

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