+ Reply to Thread
Results 1 to 5 of 5

Vlookup that finds a match and copies the cell formatting as well

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    Los Angeles
    MS-Off Ver
    Excel 2013
    Posts
    2

    Vlookup that finds a match and copies the cell formatting as well

    Strangely enough, this is by far the most difficult solution to find. I just want a vlookup to give me the answer along with the cell formatting. I understand a function cannot yield cell formatting - however there is VBA code that will. I just cannot figure out the code for this somwhat simple task.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,767

    Re: Vlookup that finds a match and copies the cell formatting as well

    This thread had a similar situation

    http://www.excelforum.com/excel-prog...using-vba.html

    It is not exactly the same, but you should be able to adapt from the code provided.

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    07-10-2013
    Location
    Los Angeles
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Vlookup that finds a match and copies the cell formatting as well

    Not quite what I was looking for buddy. I appreciate the attempt. I have seven vlookups roughly 300 rows long that need to copy over the cell value and the cell format.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,767

    Re: Vlookup that finds a match and copies the cell formatting as well

    Perhaps you should post a sample document so that we can provide you with a response suitable to your situation.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Vlookup that finds a match and copies the cell formatting as well

    You will need a VBA solution for this. Formulas do not copy formatting across. The closest you will come, is if there is some logic/rule to the formatting, you might be able to use Conditional Formatting
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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