+ Reply to Thread
Results 1 to 4 of 4

Applying conditional format to INDIRECT referenced cells

  1. #1
    Registered User
    Join Date
    06-02-2014
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    3

    Question Applying conditional format to INDIRECT referenced cells

    Hi folks,

    I have a spreadsheet which has dates in column A, times in column B and a numerical figure in column C.
    I also have helper columns which have a figure for the start and end row for that section of data (see below)

    I need to apply a Color Scale conditional format to the numerical figures across each day, for example:

    DATE | TIME | FIGURE | startRow | endRow
    01/06/2014 | 07:00 | 6 | 2 | 7
    01/06/2014 | 08:00 | 9 | 2 | 7
    01/06/2014 | 10:15 | 1 | 2 | 7
    01/06/2014 | 12:00 | 0 | 2 | 7
    01/06/2014 | 15:00 | 18 | 2 | 7
    01/06/2014 | 19:25 | 19 | 2 | 7
    02/06/2014 | 09:30 | 1 | 8 | 11
    02/06/2014 | 09:40 | 6 | 8 | 11
    02/06/2014 | 10:05 | 2 | 8 | 11
    02/06/2014 | 10:25 | 10 | 8 | 11
    03/06/2014 | 08:00 | 6 | 12 | 12
    04/06/2014 | 09:00 | 42 | 13 | 13

    In the above example I need the format ranging from 6 down to 19 and a new format from 8 down to 10.

    I've created helper columns for the first and last row of each data set but I can't seem to use INDIRECT and the cell data in the "Applies To" section of the conditional format. Any ideas please?

    The formula I'm trying is:

    =INDIRECT("C"&D2):INDIRECT("C"&E2)

    VBA is a possibility as there's already a lot of advanced VBA in the spreadsheet; I was just hoping to save time with a straight forward "apply the format to these cells" via INDIRECT if it's possible?

    Thanks folks.
    Last edited by MiniBlueDragon; 06-02-2014 at 12:19 PM.

  2. #2
    Registered User
    Join Date
    06-02-2014
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    3

    Re: Applying conditional format to INDIRECT referenced cells

    Hmmm... I take it I've asked for something impossible then?

  3. #3
    Registered User
    Join Date
    07-01-2011
    Location
    Australia
    MS-Off Ver
    Excel 2011 (Mac)
    Posts
    38

    Re: Applying conditional format to INDIRECT referenced cells

    MiniBlue,

    If I understand you correctly I think you mean from values 6-19 and 1-10? not 8-10?

    I can't visualise the conditional formatting option you are talking about but could you use the date itself as the condition? This of course is limiting as you will need as many rules as there are dates...

    Regards,
    Zac

  4. #4
    Registered User
    Join Date
    06-02-2014
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    3

    Re: Applying conditional format to INDIRECT referenced cells

    Yes that's correct:

    The date 01/06/2014 has 6 entries with values 6, 9, 1, 0, 18 and 19 as an example and those values need a Color Scale applied to them.

    The next date of 02/06/2014 has 4 entries with values of 1, 6, 2 and 10 and that requires a new Colour Scale being applied to it.

    The "rule" for the data set is Colour Scale so I believe it's only the "Applies To" field that I can edit which is why I thought perhaps INDIRECT would work as I can define the row number for the start and finish for that data set:

    =INDIRECT("C"&D2):INDIRECT("C"&E2)

    I could create a rule based on the Date as you suggested but as each day the entire data set is updated I'd have to manually update all the color scales daily anyway (and if I'm doing that I may as well just select the cells and apply it manually rather than doing it programmatically)

+ 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. Replies: 9
    Last Post: 11-20-2013, 09:37 PM
  2. Conditional Format a Referenced Cell
    By nathanB in forum Excel General
    Replies: 3
    Last Post: 11-09-2012, 05:51 AM
  3. INDIRECT in conditional format
    By rhudgins in forum Excel General
    Replies: 6
    Last Post: 08-17-2010, 09:53 AM
  4. Replies: 5
    Last Post: 07-30-2010, 08:12 AM
  5. Applying number format from referenced cell
    By DBS in forum Excel General
    Replies: 2
    Last Post: 01-05-2006, 10:50 AM

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