+ Reply to Thread
Results 1 to 12 of 12

Conditional formatting, highlight multiple of a specific number

  1. #1
    Registered User
    Join Date
    03-19-2012
    Location
    Iasi, Romania
    MS-Off Ver
    Excel 2010
    Posts
    5

    Conditional formatting, highlight multiple of a specific number

    Hi everybody,

    I have a row with the days of the year 1,2,3,.....365. And I would like to highlight every 12th day (12, 24, 36, 48 .....) , or every X th day .

    I have been struggling with this problem for hours now , I would appreciate your help .

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Conditional formatting, highlight multiple of a specific number

    try using the following formula for you conditional formating rule

    =MOD(A$1,12)=0
    Last edited by DGagnon; 03-19-2012 at 05:57 PM. Reason: Numbers in Row1, not Column A
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Conditional formatting, highlight multiple of a specific number

    Hi use this formula in CF
    =MOD(A$1,12)=0
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  4. #4
    Registered User
    Join Date
    03-19-2012
    Location
    Iasi, Romania
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Conditional formatting, highlight multiple of a specific number

    Yeah , I've been trying that already, but somehow it doesn't work . Is it possible to be because I have excel 2010 ?

  5. #5
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Conditional formatting, highlight multiple of a specific number

    make sure you highlight the entire row first, with A1 as the first selected value, then you should be good. unless by chance your values are actualy Date values instead of just numbers, in which case we would need to make a change to the formula as so:

    =MOD(A$1-DATE(2012,1,1)+1,12)=0

  6. #6
    Registered User
    Join Date
    03-19-2012
    Location
    Iasi, Romania
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Conditional formatting, highlight multiple of a specific number

    The cell's are formatted as general, I tried formatting the cell as number but I had the same problem. I don't know what I'm doing wrong. Here's a video of what I'm doing, maybe you can figure out what I'm doing wrong.

    http://www.youtube.com/watch?v=QayNz...ature=youtu.be


    Thank you very much for your help !

  7. #7
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Conditional formatting, highlight multiple of a specific number

    Hi

    Your problem is in 0:30 of this film (you have pasted the formula with the empty space " " on the end (You have copied this directly from forum with it)). Type it by hand or copy in proper way.
    regards

  8. #8
    Registered User
    Join Date
    03-19-2012
    Location
    Iasi, Romania
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Conditional formatting, highlight multiple of a specific number

    Quote Originally Posted by tom1977 View Post
    Hi

    Your problem is in 0:30 of this film (you have pasted the formula with the empty space " " on the end (You have copied this directly from forum with it)). Type it by hand or copy in proper way.
    regards
    Didn't work, wrote it myself by hand. I hate this excel (2010), why do they have to screw everything up. Maybe I'll go back to 2007.

  9. #9
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Conditional formatting, highlight multiple of a specific number

    have a look at the attached file, it should help you with this
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-19-2012
    Location
    Iasi, Romania
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Conditional formatting, highlight multiple of a specific number

    Thanks very very much DGagnon, that did it !! It was a semi colon not a comma between A$1 and 12 :D !

    The correct formula is =MOD(A$1;12)=0

    Again, thank you very much !

  11. #11
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Conditional formatting, highlight multiple of a specific number

    ah yes, that is a regional setting, in canada/us we always use comma, where as i think alot of Europian countries use semi-colon. you will probably find that most solutions you find here will have a comma, and you can replace them with Semi Colon to make it work for you.

    Good luck!

  12. #12
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Conditional formatting, highlight multiple of a specific number

    Please mark this thread as solved. If you don't know how to mark it as solved check out FAQ's.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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