+ Reply to Thread
Results 1 to 9 of 9

conditional format 1 cell based on multiple criteria of other cells

  1. #1
    Registered User
    Join Date
    04-14-2015
    Location
    London
    MS-Off Ver
    2007
    Posts
    36

    conditional format 1 cell based on multiple criteria of other cells

    Hello fellow excel comrades, I call for your help on how to conditional format 1 cell based on multiple criteria of other cells.
    A am struggling to get the following formula to work:

    Cell to be formated is A3

    =AND($B1:$B1000="1",$S1:$S1000="TRUE") Fill cell RED
    =AND($B1:$B1000="2",$S1:$S1000="TRUE") Fill cell BLUE

    I have looked at many ways and can get it to work if formatting many cells but I just need it to format 1 cell and work in hierarchy, if condition 1 is met stop and don't format further, if not then proceed to condition 2 and so forth.

    I have uploaded my sample spreadsheet.

    You assistance is much appreciated.

    Thanks in advance.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: conditional format 1 cell based on multiple criteria of other cells

    What is the logic behind the formatting rule that you are trying to apply?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor jayajaya_4's Avatar
    Join Date
    05-09-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    259

    Re: conditional format 1 cell based on multiple criteria of other cells

    attached file is not working dear???

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: conditional format 1 cell based on multiple criteria of other cells

    Perhaps..

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    How can you use Conditional Formating.

    --In Excel 2007 and 2010, Conditional Formatting is in the Styles group on the Home tab. In Excel 2003, Conditional Formatting is on the Format menu. See here how you can work using CF.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    04-14-2015
    Location
    London
    MS-Off Ver
    2007
    Posts
    36

    Re: conditional format 1 cell based on multiple criteria of other cells

    Wow, thank you all for your prompt responses....

    @ jayajaya_4 - not sure why the file upload isn't working but Fotis1991 seems to have downloaded and re-uploaded it so you could try download his version.

    @ Glenn Kennedy - the logic is I need to use this one cell A3 as a traffic or behaviour indicator. I don't want to highlight the data range being referenced, i want to use the data to highlight this one cell only.

    @ Fotis1991 - thanks for your help but not quite what I was after as per my response to Glenn above but thanks for your help so far.

    Hope you guys can help..

    thanks in advance

  6. #6
    Forum Contributor jayajaya_4's Avatar
    Join Date
    05-09-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    259

    Re: conditional format 1 cell based on multiple criteria of other cells

    both the files are not working skoolz

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: conditional format 1 cell based on multiple criteria of other cells

    Another try. Not sure that i got the logic!

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: conditional format 1 cell based on multiple criteria of other cells

    Hi. Not quite what I meant, though... Do you want it to go red if there is ONE match in that long range of a 1 in column B and a True in the same row (or any row???, or all rows???) of Column D (or S, as in your posted sheet...)

  9. #9
    Registered User
    Join Date
    04-14-2015
    Location
    London
    MS-Off Ver
    2007
    Posts
    36

    Re: conditional format 1 cell based on multiple criteria of other cells

    Quote Originally Posted by Fotis1991 View Post
    Another try. Not sure that i got the logic!

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Perfect!!! Thanks a lot Fotis1991 . That is exactly what I was after and I had a sneeky suspicion that the AND formula wasn't suitable as you have demonstrated.

    @ Glenn Kennedy - Yes, I needed it to go red the moment a the first match of the 2 conditions was met across a row and stop, if no matches then proceed to second conditional formating rule.

    Thanks you all. This thread has delivered!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Conditional format based on multiple criteria macro
    By sokeefe14 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-08-2015, 09:00 AM
  2. [SOLVED] VBA Conditional Format Range of cells based upon criteria in one cell. Repeat for all rows
    By razwan1978 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-16-2015, 03:21 PM
  3. [SOLVED] Conditional format based on multiple criteria
    By Kandy1084 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-24-2014, 01:36 AM
  4. Conditional Format to look in multiple cells based on another cell
    By proaction in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-29-2011, 11:02 AM
  5. [SOLVED] Conditional Format based on multiple criteria
    By maw230 in forum Excel General
    Replies: 9
    Last Post: 02-16-2010, 06:24 PM

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