+ Reply to Thread
Results 1 to 4 of 4

Multiple conditional formats and priorities

Hybrid View

wilro85 Multiple conditional formats... 09-10-2007, 05:12 PM
Greg M Hi there, This one gets a... 09-10-2007, 08:06 PM
wilro85 Yep that did it. Thanks a... 09-11-2007, 05:32 PM
Greg M Hi again Wilro, Many... 09-12-2007, 10:49 AM
  1. #1
    Forum Contributor
    Join Date
    09-02-2005
    Posts
    146

    Multiple conditional formats and priorities

    I'm having trouble with my conditional formating, I was hoping I could get some help with it.

    So basically I have a parts lists. For readability I want every other row to be highlighted, so I'm using this formula:

    =MOD(ROW(),2)=0 and changing the highlight color

    In addition to that, if the sell price is below the cost of the part, then that cell needs to have its text appear in red.

    =AND(H16>=0,J16<F16)

    With how I have it now, if the text needs to be red, then the cell won't be highlighted. Do I need to combine the two formulas? If so, how?

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

    This one gets a little bit complicated - you need to utilise all three of the conditions which conditional formatting allows:

    Condition 1, Format BOLD on HIGHLIGHT:
    =AND(H16>=0,  J16<F16,  MOD(ROW(),2)=0)
    Condition 2, Format BOLD on WHITE:
    =AND(H16>=0,  J16<F16)
    Condition 3, Format NORMAL on HIGHLIGHT:
    =MOD(ROW(),2)=0
    This highlights the text in the cell whenever the arithmetic conditions are correct & maintains the alternate white/highlight pattern of the rows.

    Hope this helps - please let me know how you get on.

    Best regards,

    Greg M

  3. #3
    Forum Contributor
    Join Date
    09-02-2005
    Posts
    146
    Yep that did it. Thanks a bunch.

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

    Many thanks for the feedback. You're welcome - delighted to have helped.

    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)

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