+ Reply to Thread
Results 1 to 4 of 4

Vlookup retrieve cell data and conditional formatting

  1. #1
    Registered User
    Join Date
    06-24-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Vlookup retrieve cell data and conditional formatting

    Hi, I have two two excel files and I would like to figure out a way to have a vlookup (or something similar) pull both the data in the cell and the conditional formatting from one file to the other. Is there a macro that would do this for me?

    Thanks

  2. #2
    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
    52,929

    Re: Vlookup retrieve cell data and conditional formatting

    vlookup into another file works the same way as for another sheet (or the same sheet), so you just open both files, and build the vlookup that way.

    for the CF, you cant exactly "pull" the CF in without VB, but what you could do is apply (up front) the same CF to the cell where the answer will go

    does this help at all?
    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

  3. #3
    Registered User
    Join Date
    06-24-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Vlookup retrieve cell data and conditional formatting

    Thanks for the reply FDibbins. Do you know a way in VB to get the conditional formatting to be pulled from the first sheet into the second sheet? To give you more details, the file I am working with has many different sections (one section for each type of mutual fund). I want the cells to be green for the funds that beat the benchmark for that section and red if they underperform the benchmark. I have 20+ sections all with different benchmarks so it would be very time consuming to manually do the conditional formatting for each section each month when the new data comes in. My raw data is in excel (with the cells already conditionally formatted in red or green) and comes from a software program called Morningstar Direct.

    Would it be easier to do VB code that would bring over just the cell color instead of the conditional formatting?

    Thanks!

  4. #4
    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
    52,929

    Re: Vlookup retrieve cell data and conditional formatting

    my VB is primitive at best, sorry, but maybe 1 of the others can help

+ 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