+ Reply to Thread
Results 1 to 3 of 3

Replace data in a table with same data from another table, bringing formatting with it.

  1. #1
    Registered User
    Join Date
    11-17-2014
    Location
    Hudson Falls, New York
    MS-Off Ver
    Home and Student 2010
    Posts
    15

    Replace data in a table with same data from another table, bringing formatting with it.

    I am working on an inventory price change list. The list had over 6K items on it from inventory additions over the life of the company. I wanted to fix the prices of the currently used items first to get the "important" items done, so that I can go back and fix the "unimportant" ones later. I pinged the inventory list for things sold/ordered in the last three years and reduced the list to 780 items. So I have sheet1 that has the full 6000 item list, and sheet 2 which has the 780 "current" items. I went through the "current" items and fixed all the prices and as I was fixing them, I changed the text color to orange so I could track which ones had been fixed in the accounting software. Now, I want to replace the items in the long list with the same items from the short list, but keep the orange text formatting when the data comes in. Is there a formula, or a VBA code to do what I am trying to accomplish? EX:

    Original Short (In Orange)
    Item: Desc: Item: Desc:
    703 Wall mount Siren 747 Wall Mount Siren
    712 Flush Mount Siren 814 Ceiling Mount Horn Strobe
    747 Wall Mount Siren
    800 Surface Mount Horn Strobe
    814 Ceiling Mount Horn Strobe


    So I want the items from the Short list to replace themselves on the long list and carry the orange text (747 and 814 on the long list become orange text) so that I can see on the long list, what's been done and what hasn't, OR, if I can use it to delete the short list items off the long list, that would serve the same purpose. I thought about using 'remove duplicates' but I'm not sure if I can designate "remove the ones without formatting" or if it just deletes the first one or what... Thank you for any help you can offer.

  2. #2
    Registered User
    Join Date
    06-27-2013
    Location
    Boulder, CO
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: Replace data in a table with same data from another table, bringing formatting with it

    You might try this:
    Highlight the row with your part numbers in the long list
    Go to Conditional formatting > highlight cells rules > Formula
    Input the following formula:
    =lookup(first cell,Sheet2!(parts # Column(i.e. $H:$H)=first cell
    format to change cell fill and or font formats
    Click OK

    That should get you what you're looking for.

    Hope that helps.

    -Z

  3. #3
    Registered User
    Join Date
    11-17-2014
    Location
    Hudson Falls, New York
    MS-Off Ver
    Home and Student 2010
    Posts
    15

    Re: Replace data in a table with same data from another table, bringing formatting with it

    I used VLOOKUP to update the pricing.

+ 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. Scanning barcodes not bringing up corresponding data in the table
    By eggshall in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-03-2014, 08:02 AM
  2. Scanning barcodes not bringing up corresponding data in the table
    By eggshall in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-02-2014, 07:54 PM
  3. Format Data as Table - Row Colors Don't Match
    By Gard5096 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-15-2013, 02:21 PM
  4. Comparing a Table with another data Table to replace with a Code
    By acsishere in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-28-2008, 01:26 PM
  5. [SOLVED] Replace SQL Table with Excel data
    By Ken Valenti in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2006, 06:15 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