+ Reply to Thread
Results 1 to 16 of 16

Row Banding + column hi-lite

  1. #1
    Registered User
    Join Date
    02-08-2007
    Posts
    69

    Row Banding + column hi-lite

    I can do one or the other but not both? Using =MOD(ROW(),2) I get the row banding for easier reading but when I add in a conditional format for a column all the cells in the column are shaded instead of every second one. What I am trying to end up with is every second row shaded and any entry in the one column that exceeds a specified value to be displayed in red font. How can I get both conditions to occur without interfering with each other?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    The first conditional format meeting the criteria is applied and others are ignored, so here you need three conditional formats:

    One for red font and shading (this must be first)

    One for shading only

    One for red font only

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    You need to define 3 conditions.
    For a range starting in D1 where red font is applied to cells with a value greater than 7.

    Formula - format Red font and row shade colour
    =AND(MOD(ROW(),2)=0,D1>7)

    Formula - row shade colour
    =MOD(ROW(),2)=0

    Cell Value Greater than 7 - red font
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Another CF combination that should work....

    It assumes column D must be greater than 7 is your other condition

    see attached
    Attached Images Attached Images
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Registered User
    Join Date
    02-08-2007
    Posts
    69
    I'm not getting something? The first 2 suggestions didn't work at all, several columns and rows were affected? The third suggestion gave an error, something about = and - in the sane formula? I attached a screen shot. I would like rows 6 - 299 banded and column V (6 - 299) should go red when equal to or greater than 10:00.
    Attached Images Attached Images

  6. #6
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi Attila,
    if you could post a small sample of your data as an xls file ( see "Manage attachments" in the Reply to thread form), we will be able to help you much better
    Cheers

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Why post a picture if you want help with a spreadsheet?

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Judging by the image... I think you need to wrap the 10:00 in quotes and add +0 immediately after and before the closing parenthesis

  9. #9
    Registered User
    Join Date
    02-08-2007
    Posts
    69
    shg - because I'm not to bright? lol
    Workbook is far to big to post so i thought a screenshot would help, I guess not? I cut out a bunch of stuff to get the size down. I have the banding in place and I would like to have it so any value in col V the is equal to or greater than 10:00 shows in red font. On the worksheet V8 & V11 should show up in red font without screwing up the banding?
    Attached Files Attached Files
    Last edited by Attila; 09-02-2008 at 12:27 PM.

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You could post an ad-hoc workbook and someone will plug in the CF.

  11. #11
    Registered User
    Join Date
    02-08-2007
    Posts
    69
    is my condensed workbook screwed up and can't be opened?

  12. #12
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    is my condensed workbook screwed up and can't be opened?
    No; I just never saw it. Editing your post does not bring it to the top of the queue.

    See attached.

    I use V6 to contain the value that triggers the red font, but you can put it elsewhere or hard-code it the formulas.
    Attached Images Attached Images

  13. #13
    Registered User
    Join Date
    02-08-2007
    Posts
    69
    Thanks shg I didn't notice your last post, we must have put them up about the same time? I tried you clip but it turns all text red? I think I typed it in exactly as you showed it, some of it is unclear (looks like something before the M in the first line but I'm not sure what). I will look at it again tomorrow as it's time for work.

  14. #14
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Take a closer look. In the example posted, you can see examples of the default formatting and all three conditional formats.

  15. #15
    Registered User
    Join Date
    02-08-2007
    Posts
    69
    What am I missing? I tried several times and always the same result, the banding works fine but all cells have red font? I only want entries = to or > than 10:00 in column V to display as read? Attached is what I coded in my workbook, I'm not seeing what is differant from the example posted in message 12?
    Attached Images Attached Images

  16. #16
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    This might help. I applied shg's conditional formatting to your workbook. If you want to have the value directly in the conditional formulas you need to put it in quotes and add 0, eg
    Please Login or Register  to view this content.
    See attached.

    ChemistB
    My 2¢
    Attached Files Attached Files

+ 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. VBA; find string and copy
    By Bill Rudd in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-06-2008, 10:41 PM
  2. Massive Sorting question.
    By Rgaherty in forum Excel Programming / VBA / Macros
    Replies: 35
    Last Post: 11-07-2007, 02:15 PM
  3. looping issues
    By Marcus Gee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2007, 11:42 PM
  4. Replies: 5
    Last Post: 06-06-2007, 07:27 AM
  5. Determine Top 5 in Column
    By mark_c_carey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-19-2007, 02:26 AM

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