+ Reply to Thread
Results 1 to 6 of 6

Returning text values in a database.

  1. #1
    Registered User
    Join Date
    12-24-2012
    Location
    Newry
    MS-Off Ver
    Excel 2003
    Posts
    3

    Returning text values in a database.

    Hi everyone,

    I'm having some trouble in linking statistics into a small database I'm compiling and was hoping someone would be able to help me (or tell me if it's even possible!!)

    I have a database containing statistical information for a group of employees' performance over the course of a month, which is collated from two different systems. In System A, the name of the employee is listed as "Joe Bloggs", whereas in System B, the name is "Bloggs, Joe". The turnaround of employees also means that the list is constantly changing, and I want to create something along the lines of a Match/Lookup formula that searches using Joe Bloggs as the parameter, and returns the second name of Bloggs, Joe in the adjacent field. Ideally this would use the Cell number as the reference as opposed to the name, since the employee list is constantly developing.

    Is it possible or am I mad? I know it can be done manually, but the level of work involved to keep this up to date would be too time consuming, and I would love to know if there is a formula out there to make life a little easier!

    All the best,

    Kilian

  2. #2
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Returning text values in a database.

    Hi

    Have you tried recording a macro of what you are doing, therafter just call the macro.

    Chris
    Click my star if I helped Thanks

  3. #3
    Registered User
    Join Date
    12-24-2012
    Location
    Newry
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Returning text values in a database.

    Hi Chris,

    I have recorded a macro, but when the employee structure changes it reassigns information to the incorrect employee. Again, I may be recording the macro incorrectly! What would be the best process to record a macro in this instance?

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Returning text values in a database.

    Hi,

    On the face of it there seems no reason why you can't although remember there's no fuzzy logic available in standard Excel. You could use a helper column in system A to slice out the "Bloggs" part of "Joe Bloggs". So suppose "Bloggs' is in helper cell A1, use a formula like

    =Match(A1&"*",systemB_lookup_column,False)

    Then if necessary have a macro create and copy this formula down a list range if the range varies.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: Returning text values in a database.

    You can start to put your excel file, without confidentional information on the forum.

    If you also add the desired result, we can look for an solution.

    After that it can be record with the macro-recorder (or someone makes an written code).
    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.

  6. #6
    Registered User
    Join Date
    12-24-2012
    Location
    Newry
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Returning text values in a database.

    Ok, so say that A2 is my search parameter and H2 is what I wish to copy into cell B2. This would normally be on other worksheets, but for the moment I'd be happy with it working on one! I want to transfer the information in H2 to B2 by using A2 as my search function. Also, if the information in A2 were to change, I would want it to find the appropriate information from a list of employee names and update correctly.

    System A Name System B Name DOB Address Post Code System B Name
    Joe Bloggs xx xx xx Bloggs, Joe


    @Richard, the formula returned a #Value error, would the solution above have A1 only containing the surname Bloggs?

+ 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