+ Reply to Thread
Results 1 to 6 of 6

Conditional Formating

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Conditional Formating

    Hello:

    Please refer to attached sheet.

    I have time range in column A and B.
    For each time range, there is Labor cost and Sales information for each day.

    I want to apply the conditional formating either by formula or VB Macro with condition as below.

    Daily Labor & Sales info is in
    column D,E for 1st day,
    column F,G for 2nd day and so on..

    I want to highlight the cell in column E,F,H and so on if labor cost for a given hour is greater then 40%.
    To calculate the labor cost %, you would divide Labor Cost by Sales for a given hour.
    Example :
    D5/E5 = 0.37 which is below 40% that mean no highlight
    H14/I14 = 0.53 which is above 40% that mean cell H14 needs to be highlighted.

    Please help and let me know if any questions.

    Thank you

    Riz Momin
    Attached Files Attached Files
    Last edited by rizmomin; 07-10-2013 at 10:16 AM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Conditional Formating

    =(D3/E3>0.40)
    format as required

    Use Format Painter (paintbrush) to copy to other cells
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    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 Formating

    This looks to work..

    =AND(ISNUMBER(D$1);D$2="Labor";E$2="Sales";D3/E3>0,4)
    Attached Files Attached Files
    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.

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Conditional Formating

    Hi Special-K:

    I have 64 columns across and would need alternate column starting Column D to highlight and apply the above formula.
    Is there an easy way to highlight these columns because manually choosing 32 alternate column is difficult and could lead to error.

    Please let me know if any questions

    Thank you

    Riz Momin

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Conditional Formating

    Hi Fotis1991:

    Thank you so much for your great help...this works.

    Riz Momin
    Last edited by rizmomin; 07-10-2013 at 10:16 AM.

  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: Conditional Formating

    Quote Originally Posted by rizmomin View Post
    Hi Fotis1999:

    Thank you so much for your great help...this works.

    Riz Momin


    You are welcome and thanks for the feed back.

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thank you.

    Also, PLS, Change the date in my name from 1999 to 1991, otherwise it will ask me (the forum) the consent of my guardian !

+ 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