+ Reply to Thread
Results 1 to 4 of 4

[SOLVED] Conditional formatting numbers that go up in 5's

  1. #1
    Registered User
    Join Date
    11-30-2009
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    30

    [SOLVED] Conditional formatting numbers that go up in 5's

    Hello,

    I am trying to use a cond. format that will highlight a cell if it is eg. 5,10,15,20,25,30,35,40,45,50 etc

    My set-up is like this:

    A1
    25

    B1
    Revert to macro

    So because A1 is a multiple of 5, that cell and B1 needs to be highlighted. (all the numbers have a description next to them that i would like highlighted aswell)

    I highlight both cells and then i do a conditional format of 'Formula Is' and then '=IF=$A1=5;10;15;20;25' but it yields no results.

    Can anybody modify my formula to make it work?


    Thank you
    Last edited by thewrathful; 04-14-2010 at 03:52 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Conditional formatting numbers that go up in 5's

    Try this formula in the Conditional Format

    =MOD(A1,5)>0
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional formatting numbers that go up in 5's

    i think that should be
    =mod(a1,5)=0 if you want all that are divisible by 5 highlited if its the other way around highliting all those
    that are not then just =mod(a1,5) will do
    Last edited by martindwilson; 04-11-2010 at 07:44 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    11-30-2009
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Conditional formatting numbers that go up in 5's

    Thanks guys! Good work.

+ 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