+ Reply to Thread
Results 1 to 6 of 6

Using Index(Indirect(Match)) formula and need output to retain original formatting

  1. #1
    Registered User
    Join Date
    09-15-2015
    Location
    New Mexico
    MS-Off Ver
    2010, 2013
    Posts
    3

    Using Index(Indirect(Match)) formula and need output to retain original formatting

    Hi All,

    I'm VERY new to VBA and pretty decent with formulas. The attached .xls file shows an example of what I'm trying to accomplish (actual set-up, but bogus data). I have three sheets, "Compare", "Jun-15", and "Jul-15". The Jun and Jul worksheets have data with formatted cells with color. In the Compare worksheet I want to put the data side by side for easy visual comparison. I've got the formulas figured out to pull the data, but I want the returned values to retain their color formatting from the Jun and Jul worksheets. This is something I will do monthly, which is why I used "Indirect" in the formula, so I could easily update the months on my Compare sheet and have it automatically update data based upon whatever months I select.

    Hope that makes sense. From what I can tell, I need to write a VBA code in order to do that, but I haven't been able to figure it out or find exactly what I need on the forum.

    If someone knows how to do this, it would be GREATLY appreciated!!!
    Project Comparison.xlsx

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Using Index(Indirect(Match)) formula and need output to retain original formatting

    Hi there,

    You've probably considered and rejected this approach already, but I'll ask anyway!

    Have you thought about using Conditional Formatting to highlight cells on the monthly data worksheets, and then using the same Conditional Formatting conditions on the Compare worksheet?

    Regards,

    Greg M

  3. #3
    Registered User
    Join Date
    09-15-2015
    Location
    New Mexico
    MS-Off Ver
    2010, 2013
    Posts
    3

    Re: Using Index(Indirect(Match)) formula and need output to retain original formatting

    Greg M,

    Yes, I have considered that, but my raw data does not have a hard and fast rule I could list for what makes the cell red, yellow, or green. The output is the # of activities in a particular schedule to do not meet the metric and the color is based the % of activities not meeting the criteria. However, my raw data just provides the # of activities not meeting the metric and the color. I'm considering going back and adding in a column for the total # of activities on the project so I can then build a conditional format formula tied to the percentage. I am also trying to increase my capabilities in excel and thought someone on the forum would know how to use VBA to do that.

    Thanks for your reply though!
    Ldy4x4jeep

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Using Index(Indirect(Match)) formula and need output to retain original formatting

    Hi Ldy4x4jeep,
    try this
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-15-2015
    Location
    New Mexico
    MS-Off Ver
    2010, 2013
    Posts
    3

    Re: Using Index(Indirect(Match)) formula and need output to retain original formatting

    Hi Nilem,

    That worked perfectly!!! Thank you so much! I can't wait to get to know VBA well enough to do that on my own.

    Thanks again!
    Ldy4x4jeep

  6. #6
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Using Index(Indirect(Match)) formula and need output to retain original formatting

    Hi again,

    Thanks for your feedback - glad you were able to get a solution on here.

    regards,

    Greg M

+ 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] Index Match Formula doesn't recognize output from Right Formula as lookup value.
    By GoGators in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-10-2015, 11:33 AM
  2. [SOLVED] Indirect/Index/match/if formula not working
    By VincentNL in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 12-10-2014, 10:28 AM
  3. [SOLVED] Indirect-index-match formula is returning #Value
    By brent_excel in forum Excel General
    Replies: 3
    Last Post: 08-01-2014, 05:52 PM
  4. Insert Word Document with a macro, retain original formatting
    By dwhims in forum Word Programming / VBA / Macros
    Replies: 2
    Last Post: 11-26-2013, 06:05 PM
  5. What Formula is best to use? MATCH INDEX INDIRECT? Help !
    By cjhazeh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-18-2013, 06:15 AM
  6. Retain formatting of original list (Data Validation)
    By demonfly100 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-28-2012, 07:19 AM
  7. Index Indirect and Match Formula Question
    By petevang in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-25-2010, 03:59 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