+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting/Data Validation?

  1. #1
    Registered User
    Join Date
    10-06-2009
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2007
    Posts
    1

    Conditional Formatting/Data Validation?

    I am fairly proficient in Excel, but can't seem to figure this one out:

    How do I conditionally format a cell to highlight items that are not in correct quantities? For example, I can only order a product in multiples of 10. What if my coworkers place orders for: 10, 30, 50, 75, 90, and 102. I want it to automatically highlight the 75 and 102. It seems like it would be as simple as setting the cell value to "not equal to" 10*x (x=any number). But this doesn't work, how can I do this?

    For the record, the quantities are actually more like 20,000 and 10,000...

    If not conditional formatting, it would be just as good (perhaps better) if I could use data validation.

    Thanks!!

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Conditional Formatting/Data Validation?

    1230dc,

    See the attached workbook "1230dc.xlsx" with Conditional Formatting in range A1:A6

    Formula:
    =MOD($A1,10)>0
    Attached Files Attached Files
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Conditional Formatting/Data Validation?

    I agree Validation makes more sense but perhaps coupled with Conditional Formatting (just in case) as DV can be circumvented (unintentionally most of the time).

    Highlight A1 and apply custom DV rule of: =MOD(A1,10)=0

    Re: Stan's CF formula - you can actually dispense with the >0 test given only 0 = FALSE in XL (ie the numeric output will dictate TRUE/FALSE)

+ 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