+ Reply to Thread
Results 1 to 18 of 18

right formula to include it in conditional format when I need to include many criterias

  1. #1
    Forum Contributor MGadAllah's Avatar
    Join Date
    04-13-2008
    Location
    Sheet1
    MS-Off Ver
    365,2307,16.0.16626.20170,64bit
    Posts
    190

    right formula to include it in conditional format when I need to include many criterias

    Hi,
    Please I would like to add a new conditional format with a custom formula.
    I choose "use a formula to determine which cells to format" to insert the formula.
    I've 30 values separated into 2 sets, each set is 15.
    (S1-01, S1-02 ..., S1-15)
    (S2-01, S2-02 ..., S2-15)
    I add a drop down list contains the 30 values.
    I want to add a formula in conditional format ... I want it to do the following:-
    If I choose any value of the 1st set (S1-01, S1-02 ..., S1-15), I want cell color to be filled with green color and font color white.
    If I choose any value of the 2nd set (S2-01, S2-02 ..., S2-15), I want cell color to be filled with blue color and font color white.
    So please what is the right formula?

  2. #2
    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: right formula to include it in conditional format when I need to include many criteria

    Hi

    Higilight your cell-range. Let's say A2. Then in CF rules uses these formulaw(eatch one for eatch condition).

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


    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.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: right formula to include it in conditional format when I need to include many criteria

    Hi,

    Try

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


    where A1 is the drop down cell.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor MGadAllah's Avatar
    Join Date
    04-13-2008
    Location
    Sheet1
    MS-Off Ver
    365,2307,16.0.16626.20170,64bit
    Posts
    190

    Re: right formula to include it in conditional format when I need to include many criteria

    Thanks a lot for the fast reply.
    Please note that in each cell in the range I will choose a one value only of the 30 values existing in the drop down list I've created.
    Please check this example in this document
    https://www.dropbox.com/s/3iryky9kyu...rmat.xlsx?dl=0

    conditional format.xlsx

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: right formula to include it in conditional format when I need to include many criteria

    Make New Rules for conditional formatting using the below formulas.....

    For Green
    Please Login or Register  to view this content.
    For Blue
    Please Login or Register  to view this content.
    Is this what you are trying to achieve?
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  6. #6
    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: right formula to include it in conditional format when I need to include many criteria

    Sample of what we suggested.
    Attached Files Attached Files

  7. #7
    Forum Contributor MGadAllah's Avatar
    Join Date
    04-13-2008
    Location
    Sheet1
    MS-Off Ver
    365,2307,16.0.16626.20170,64bit
    Posts
    190

    Re: right formula to include it in conditional format when I need to include many criteria

    Thanks a lot ... it seems that every one mentioned the same formula.
    What does it means?
    It does the job yes. Thanks a lot

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: right formula to include it in conditional format when I need to include many criteria

    You're welcome.
    If that takes care of your question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.
    Moreover you may also click on * (star) to Add Reputation to those who have put their time and efforts to help you in this forum. This is another way to say thanks to them.

  9. #9
    Forum Contributor MGadAllah's Avatar
    Join Date
    04-13-2008
    Location
    Sheet1
    MS-Off Ver
    365,2307,16.0.16626.20170,64bit
    Posts
    190

    Re: right formula to include it in conditional format when I need to include many criteria

    What does it means? I mean regarding the formula exactly?

  10. #10
    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: right formula to include it in conditional format when I need to include many criteria

    if the 2 first(left(b1,2), letters-numbers, are S1 then gives you a true result so the cf condition highlight the cell.

  11. #11
    Forum Contributor MGadAllah's Avatar
    Join Date
    04-13-2008
    Location
    Sheet1
    MS-Off Ver
    365,2307,16.0.16626.20170,64bit
    Posts
    190

    Re: right formula to include it in conditional format when I need to include many criteria

    Agents absence & attendance schedule - final.xlsx
    I am afraid that it did not worked the way I want and it seems that I've missed expressed the right meaning.
    Attached is the real document so can get a better understanding.
    Please work only on January sheet.
    choose from drop down menu in any given day anything and try to apply the formula you mentioned earlier.
    Thanks a lot

  12. #12
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: right formula to include it in conditional format when I need to include many criteria

    On January Sheet, select the range B32:AF39 and use the following formula for conditional formatting.

    For Green
    Please Login or Register  to view this content.
    For Blue
    Please Login or Register  to view this content.
    See the attached sheet with conditional formatting applied.

  13. #13
    Forum Contributor MGadAllah's Avatar
    Join Date
    04-13-2008
    Location
    Sheet1
    MS-Off Ver
    365,2307,16.0.16626.20170,64bit
    Posts
    190

    Re: right formula to include it in conditional format when I need to include many criteria

    But I want to apply it for the full whole range of days start from B5 till the end of AF39
    Any way to do so?

  14. #14
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: right formula to include it in conditional format when I need to include many criteria

    Oh really sorry. I didn't scroll up. See the attached sheet now.

  15. #15
    Forum Contributor MGadAllah's Avatar
    Join Date
    04-13-2008
    Location
    Sheet1
    MS-Off Ver
    365,2307,16.0.16626.20170,64bit
    Posts
    190

    Re: right formula to include it in conditional format when I need to include many criteria

    Yes this is the right way :D
    Reputation added.
    may I ask for another issue please :$
    Please as you can see I am using a formula to determine the day of the week according to the formula in B4:AF4
    Does there is any way or any work around so in case the day in the cell in that row or range, if it is Friday or Saturday to highlight its column with any color?

  16. #16
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: right formula to include it in conditional format when I need to include many criteria

    Select the range B5:AF39 and use the following formula for conditional formatting.
    Please Login or Register  to view this content.
    Please find the attached sheet with conditional formatting applied. You can edit the formatting as per your choice. To do so, select the range again --> Conditional Formatting --> Manage Rules --> Select the correct rule from the list --> Edit --> Format --> Set the formatting as per your choice.

  17. #17
    Forum Contributor MGadAllah's Avatar
    Join Date
    04-13-2008
    Location
    Sheet1
    MS-Off Ver
    365,2307,16.0.16626.20170,64bit
    Posts
    190

    Re: right formula to include it in conditional format when I need to include many criteria

    Agents absence & attendance schedule - final (1).xlsx
    This is not what I mean my friend.
    I mean if the value in any cell in the range of B4:AF4 equal to friday or saturday, I want to make its column in the range of this column highlighted in another color.
    I did it manually and want to do it with conditional format.

  18. #18
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: right formula to include it in conditional format when I need to include many criteria

    In A2, I have input 1/1/2014 and custom formatted it as "mmmm" to show month name. Then Select the range B5:AF39 and use the following formula for conditional formatting....

    Please Login or Register  to view this content.
    See the attached sheet.

    Is this what you are trying to achieve?

+ 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] Editing a Macro to include multiple rows and include text formatting for leading zeros
    By missmea2005 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-04-2014, 09:50 AM
  2. [SOLVED] How to create a formula/format for a long number to include a period and not round
    By Rita Bush in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-13-2013, 01:13 PM
  3. To Include or Not Include Holidays When Forecasting
    By mycon73 in forum Excel General
    Replies: 7
    Last Post: 11-03-2013, 04:09 PM
  4. conditional formula, if date entered, include in totals
    By arbert in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-24-2012, 09:29 PM
  5. Conditional Formula for time window to include a buffer zone
    By sonny.thind in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-23-2011, 12:27 PM

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