+ Reply to Thread
Results 1 to 5 of 5

Case options, finding a value, copying the value to the left and pasting on new sheet.

  1. #1
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Case options, finding a value, copying the value to the left and pasting on new sheet.

    Attached is my workbook. we will be looking at sheets, "Reason Codes" and "Modify Data"

    In the sheet Reason Codes there is a list of codes:

    RSNCDE
    BB
    BDS
    C
    CHT
    CRG
    D
    DEL
    ....

    and to the left of these codes are numbers that correspond to that specific code.

    On the modify data sheet, there are a bunch of entries and column E contains a specific Code.

    I need a way to run through these codes from the "Reason Codes" sheet, match it with the E column in "Modify Data" and paste the corresponding number in the F column on "Modify Data"

    I've never worked with cases before.
    Ive thought about If statements, but that would be way too many statements,
    and i'm hoping theres a way to use autofilter of some sort.


    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Case options, finding a value, copying the value to the left and pasting on new sheet.

    Emil,
    Formula
    In F3 and drag it down
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: Case options, finding a value, copying the value to the left and pasting on new sheet.

    AB33,
    Is it possible to do that through macro?

    Just because when I run the macro to transfer the data from claimskl to modify data, it clears the contents on the sheet.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Case options, finding a value, copying the value to the left and pasting on new sheet.

    The code works on exact match only. I have created a new module-3
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: Case options, finding a value, copying the value to the left and pasting on new sheet.

    Thanks! works perfectly.

+ 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] Finding copying and pasting
    By lauren04 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-10-2013, 04:45 PM
  2. Replies: 9
    Last Post: 05-13-2013, 05:43 AM
  3. [SOLVED] Macro for Finding Sheet Names, then Copying/Pasting Values
    By Joel.Nemec in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-09-2012, 01:28 PM
  4. Finding data, copying and pasting
    By sentinela in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-02-2009, 10:09 PM
  5. Help! finding data and pasting it to another sheet!
    By MDC in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2006, 07:25 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