+ Reply to Thread
Results 1 to 4 of 4

replace certain values

Hybrid View

  1. #1
    Registered User
    Join Date
    07-22-2009
    Location
    NYC, NY
    MS-Off Ver
    Excel 2003
    Posts
    22

    replace certain values

    This will be difficult to explain... I'll try my best:
    I was creating a database, only to discover that the database was already partially completed by one of my coworkers. I decided to integrate the parts his database has with those that I have. So, here we go.
    I have a spreadsheet that has a structure something like this
    Name   i1   m1   m2   m3   m4   m5   m6   i2   i3   i4   i5
    i stands for info, and m stands for missing. These are called missing because these data are not in my coworker's database. However, for any given row, I can be missing any of the data (for example, i1 and i3). His database always has all of the "i" parts for a given name. Names can be repeated, and perhaps most annoying is that his order of i2, i3, i4, and i5 is not always the same order as mine.
    I would like to copy all of the rows that I do not have into my database. And if I have a very incomplete entry (say, only the name and i5), then replace my row with the row of my coworker's that matches in name and the available info.
    So, I was hoping for a macro that takes his spreadsheet and adds it to mine accordingly. Thanks. I know it's a lot of words, but I'll be happy to answer any questions.
    Attached Files Attached Files
    Last edited by nesthead98; 12-01-2009 at 12:55 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: replace certain values

    Hi,

    maybe the solution does not require a macro. Maybe it can be solved with Vlookup and/or Index/Match. To help you further, it would be good to see a data sample. Why don't you prepare a workbook with three tabs

    - your data
    - your co-worker's data
    - your expected outcome

    A handful of rows per sheet should suffice, but make sure you include enough data to illustrate what you want to achieve and specify the logic that leads to the result.

    To upload a workbook, click "Go Advanced" below and then the paperclip icon to attach a file

    cheers

  3. #3
    Forum Contributor FRIEL's Avatar
    Join Date
    03-07-2008
    Location
    Coventry
    MS-Off Ver
    2003 and 2007
    Posts
    266

    Re: replace certain values

    i assume that the Missing data is blank?
    I dont like to use code i dont understand
    it makes it hard to use in other situations
    so please try to be as clear and patent as possible with me

    Criticism is welcomed

  4. #4
    Registered User
    Join Date
    07-22-2009
    Location
    NYC, NY
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: replace certain values

    My coworker has this information missing. I occasionally have it. example.xls shows I think every situation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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