+ Reply to Thread
Results 1 to 5 of 5

Conditional Format to look in multiple cells based on another cell

  1. #1
    Registered User
    Join Date
    08-19-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    6

    Conditional Format to look in multiple cells based on another cell

    Using Excel 2010. We have a spreadsheet to give people a quick view of errors/missing data. We download a report and then paste it in this spreadsheet daily.

    I'm using conditional formatting. I've got it down for some of the criteria we are looking for (e.g. if E2 = "1390" & F2 = RR then change color). But now I've been asked to go further with this...

    Here is what I need to do: If colum E is "1390" and columns A-D do NOT have one of these codes, "496" "428.0" "416.0" then highlight A-D.

    I've attached an example. I don't care about what color it turns. I can change that later.

    I'll need to do this for a couple other codes in column E, but if I can get some guidance on one, I should be able to get the others down.

    Thanks,
    Carolyn
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional Format to look in multiple cells based on another cell

    Highlight A2:D100, then the CF setting would be:

    FormulaIs: =AND($E2=1390, AND(ISERROR(MATCH(428, $A2:$D2, 0)), ISERROR(MATCH(496, $A2:$D2, 0)), ISERROR(MATCH(416, $A2:$D2, 0))))
    Pattern: choose a color
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-19-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Conditional Format to look in multiple cells based on another cell

    This worked beautifully. Sorry for responding back so slowly. I haven't been able to try it until now.


    With this figured out, they now would like a range of numbers to be highlighted. So if column E is "E5070" and columns A-D are not equal to or between 600-815, turn a color.

    Thanks,
    Carolyn
    Last edited by proaction; 12-27-2011 at 03:56 PM.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional Format to look in multiple cells based on another cell

    Want to attach a sample sheet demonstrating what you mean... sample data and sample results manually colored?

  5. #5
    Registered User
    Join Date
    08-19-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Conditional Format to look in multiple cells based on another cell

    Attached is the example. It also has the conditional formatting you gave me for my initial response and notes for what I'd like it to do. I highlighed in yellow what should be highlighted based on my "criteria" as well as added a column with x's for what should be colored.

    I've changed the range to be the following 480.0- 508.9.

    What I'm trying to get it to do: If column E is "E0570" and columns A-D do not have ANY of the numbers within the range of 480.0 - 508.9, highlight A-D.

    I may be over doing it with the examples/explaining what I want, but... It doesn't matter how many DX codes there are (1,2,3, or 4). If 1 of them is within the range, it shouldn't change color.

    Scenarios below have HCPC (column E) of E5070:
    1. If there are 2 DX numbers and 1 of them is 481 & the other is 999, A-D would NOT be highlighted.
    2. If there are 3 DX numbers and none of them are equal to or betweeen 480.0-508.9, highlight
    3. If there is 1 DX number and it is not equal to or between 480.0-508.9, highlight
    4. If there is 1 DX number which is 500.5, it will NOT be highlighted.

    Hope this helps.
    Thanks,
    Carolyn
    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)

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