+ Reply to Thread
Results 1 to 10 of 10

Trying to creat a formula the will apply conditional formatting when both conditons occure

  1. #1
    Registered User
    Join Date
    03-17-2015
    Location
    Boston, MA
    MS-Off Ver
    2013
    Posts
    11

    Trying to creat a formula the will apply conditional formatting when both conditons occure

    Hello,

    I have a worksheet and want to apply conditional formatting if one column has a blank for start date but another column lists the account as active. While I can apply each condition separately I can't seem to get them to work together with any results. I have tried using =and(p2="".x2="active"). Excel stops working

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Trying to creat a formula the will apply conditional formatting when both conditons oc

    What do you mean "excel stops working"?
    Your CF looks right. Perhaps post a sample sheet

  3. #3
    Registered User
    Join Date
    03-17-2015
    Location
    Boston, MA
    MS-Off Ver
    2013
    Posts
    11

    Re: Trying to creat a formula the will apply conditional formatting when both conditons oc

    cond.format.xlsx

    I get a message from excel that I can't use this as a formula. There is a problem or the circle keeps spinning

  4. #4
    Registered User
    Join Date
    03-17-2015
    Location
    Boston, MA
    MS-Off Ver
    2013
    Posts
    11

    Re: Trying to creat a formula the will apply conditional formatting when both conditons oc

    In this one the column letters will have changed to a2 "" and I2 "active"

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Trying to creat a formula the will apply conditional formatting when both conditons oc

    Does the attached help?
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Trying to creat a formula the will apply conditional formatting when both conditons oc

    I have tried using =and(p2="".x2="active"). Excel stops working
    1. Not sure what you are trying to do with that 2nd part... =and(p2="".x2="active")
    to begin with, you need to use , not . to seperate contitions

    2. try this instead...=AND(A2="",I2="Active")

    3. Do NOT format the entire column with CF, and dont use full column ranges, it will slow your file down - and could be whats causing excel to crash on you.
    Only use the range you need
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Registered User
    Join Date
    03-17-2015
    Location
    Boston, MA
    MS-Off Ver
    2013
    Posts
    11

    Re: Trying to creat a formula the will apply conditional formatting when both conditons oc

    Thanks for looking at this. I did post a sample below. The columns are changed because I took out some data. Excel says it is not a valid formula

  8. #8
    Registered User
    Join Date
    03-17-2015
    Location
    Boston, MA
    MS-Off Ver
    2013
    Posts
    11

    Re: Trying to creat a formula the will apply conditional formatting when both conditons oc

    yours works perfectly. I finally got it down to that and it was off by 1 row. I row above. Thank you !! So much!!

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Trying to creat a formula the will apply conditional formatting when both conditons oc

    Just out of curiosity, which 1 worked for you? (I didnt open Pepe's file)

  10. #10
    Registered User
    Join Date
    03-17-2015
    Location
    Boston, MA
    MS-Off Ver
    2013
    Posts
    11

    Re: Trying to creat a formula the will apply conditional formatting when both conditons oc

    They both work. I believe the file the client gave me has problems as when I apply it to that file instead of the smaller one it works...just offset by one row above. Haven't figured that out yet.
    Thanks

+ 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. [SOLVED] Apply conditional formatting to a cell that contains a formula
    By abacus78 in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 11-20-2014, 04:49 PM
  2. Replies: 4
    Last Post: 06-28-2013, 12:27 PM
  3. Apply Conditional Formatting Formula to Count output
    By mboukili in forum Excel General
    Replies: 7
    Last Post: 06-10-2013, 10:57 AM
  4. multiple conditons for conditional formatting
    By leem in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-03-2012, 09:38 AM
  5. Replies: 1
    Last Post: 08-22-2005, 09:05 AM

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