+ Reply to Thread
Results 1 to 2 of 2

Creating a 'find and replace' template

Hybrid View

  1. #1
    Registered User
    Join Date
    05-11-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    1

    Creating a 'find and replace' template

    Hi Guys,

    I need to create some kind of template/macro that looks at a column, and replaces the values in that column with values from a mapping list. The mapping is fixed which should make things quite straight forward, and the columns are always fixed as well.

    I will have a report coming out of a payroll system, the extract is created in Excel format. I then need to have a template to load this data into, or a macro that can be run, which will take one column (which contains payroll Wage Type codes that represent different wage types - ie: different earnings and deductions) because the Wage Type codes then have to be changed, as we then need to load this extract into a different system that has different WT codes for the same Wage Type.

    What is the best way to do something like this - a template, or simply create a Macro and run it once we have the extract from the first system?

    Example:

    I will have an extract that looks something like this (pipe used here to separate columns to make it look clearer, no pipe in actual file, just columns):

    Base Salary | 1,000 | 100
    Bonus | 500 | 105
    Tax | 200 | 200
    Soc Security | 50 | 205

    and I need to change the values in the third column so that I get the Wage Type codes needed to load into the next system:

    Base Salary | 1,000 | BS10
    Bonus | 500 | EC05
    Tax | 200 | IT00
    Soc Security | 50 | SS00

    The mapping of the values in the third column is fixed, ie: 100 = BS10, 105 = EC05 etc.

    Any help is much appreciated guys!

  2. #2
    Forum Contributor
    Join Date
    08-21-2008
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Office 2007
    Posts
    255

    Re: Creating a 'find and replace' template

    Refer attached file for a solution that should meet your needs.
    Attached Files Attached Files

+ 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