+ Reply to Thread
Results 1 to 6 of 6

Import data and update records

  1. #1
    Registered User
    Join Date
    11-12-2013
    Location
    Geneva
    MS-Off Ver
    Excel 2007
    Posts
    59

    Import data and update records

    Hi there,

    This may be a bit complicated, but basically I would like to frequently update a worksheet by importing a csv file that matches with my current columns and rows structure and will contain new data = additional rows (this is not a problem), but also existing data that should be updated (replacing old value for the new one).

    I am not pretty sure whether this is possible or not, if it is; it should def hlookup or match existing values in my rows and then don't know how to, but replacing all new values (in columns) for the old ones.

    This is an introduction to the problem, I would start sharing with you guys more requirements of background whenever you need it, as I am not sure whether this is feasible with Excel?

    THanks a lot for your input!

  2. #2
    Registered User
    Join Date
    11-12-2013
    Location
    Geneva
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: Import data and update records

    Hi,

    Any ideas? Thanks a lot for any single suggestion.

    All the best,

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Import data and update records

    Sounds like something you could do with VBA. Import the data into a blank tab, run the VBA which updates existing data and adds new data. Unfortunately, VBA is not my forte.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    11-12-2013
    Location
    Geneva
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: Import data and update records

    Thanks Chemist!

    So think it is possible. Do you think it could be done with formulas? I have tried different approaches but none would make it. I would rather prefer to use formulas instead of, but if no way then VBA will be fine, I guess...

    Eitherway, is there any forum user that could give me a hand with VBA to achieve this?

    Thanks!!

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Import data and update records

    so after the import you would have additional data at the end of a table, some of which would be duplicates of data earlier in the table and you would want the data closest to the bottom of the table to overwrite the duplicates which are higher up the table? If so, you could something like:

    Please Login or Register  to view this content.
    Assuming your unique ID's would be in column A.

    If you could upload a workbook with an example of your data after the import I could post a less generalised solution.

    With a formula you would need a blank worksheet with a formula to pick up the last unique row in, then copy and paste the values over top top of the original sheet. Again, it would be useful with a workbook to develop the formula in.
    Last edited by ragulduy; 11-27-2013 at 10:53 AM.

  6. #6
    Registered User
    Join Date
    11-12-2013
    Location
    Geneva
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: Import data and update records

    Hey, thanks a lot for it!

    You really understood what I meant. I will share with you in a few days an example of it!

    Cheers!

+ 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] Power Pivot SQL Data Import - How to update import filter
    By minnesotaart in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-29-2013, 12:39 PM
  2. [SOLVED] need to be able to update records with button click and delete records sample included
    By unreal11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2013, 11:45 PM
  3. [SOLVED] Update matched records when import
    By onmyway in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-10-2013, 07:19 AM
  4. Search records from userform and update data list
    By craigw27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-30-2013, 08:55 AM
  5. Creating a Custom Data Entry Form to Update Multiple Excel Records at Once
    By Scotty81 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-19-2009, 04:30 PM

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