+ Reply to Thread
Results 1 to 7 of 7

SUM number values according to days of week and highlight red If exceeds ?

  1. #1
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    SUM number values according to days of week and highlight red If exceeds ?

    Hello,

    I have these two columns :

    (F2 to L2) : 1. (Mon) 2. (Tue) 3. (Wed) 5. (Thu) 6. (Fri) 7. (Sat) 8. (Sun)

    (F4 to L4) : .11-13 .6-14 .6-13 .7-15 .7-15 .7-15 .7-15


    Question : IF SUM of number values exceeds =56 from Monday to Sunday, I want to highlight all number cells ( those which are SUM) with RED, or optional a Pop-up window like "You exceeded value ! ". Is It possible ?

    thanks for your help !

    Regards, Luka

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: SUM number values according to days of week and highlight red If exceeds ?

    can you load a sample spreadsheet

    Not sure if you just have a number in cells F4 to L4 or if you have the text as shown

    if a number
    you should be able to use conditional formatting
    =sum($F$4:F4)>56

    see attached

    for 2007 or 2010 excel version
    Conditional Formatting

    Highlight applicable range >>
    F4 to L4

    Home Tab >> Styles >> Conditional Formatting
    New Rule >> Use a formula to determine which cells to format
    Edit the Rule Description: Format values where this formula is true:

    =sum($F$4:F4)>56

    Format… [Number, Font, Border, Fill]
    choose the format you would like to apply when the condition is true
    OK >> OK
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: SUM number values according to days of week and highlight red If exceeds ?

    Here is a sample spreadsheet,

    I hope now you will understand.
    sample.png

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: SUM number values according to days of week and highlight red If exceeds ?

    not a spreadsheet , thats a picture - a spreadsheet would help

    no sorry, i don t understand - i see the hours worked are a number in row 5 - so just change to use row 5

    and you can change the apply to row 1 if you like

    dont know the criteria you are using for the red and yellow on the days of week

    a fuller explanation would help me

  5. #5
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: SUM number values according to days of week and highlight red If exceeds ?

    Ok, here is spreadsheet.

    other colours are not important. This is a sheet of working hours for employees. All I need is to calculate these hours from Monday to Sunday - if they exceed 56 then this must be highlighted or even best, a popup window "Hours have exceeded max. week limit !"
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: SUM number values according to days of week and highlight red If exceeds ?

    found a solution for me:

    =SUMPRODUCT(($A$1:$AE$1-WEEKDAY($A$1:$AE$1,3)=A$1-WEEKDAY(A$1,3))*$A$2:$AE$2)>56


    Anyway, thanks for all your help !!

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: SUM number values according to days of week and highlight red If exceeds ?

    glad you found a solution and thanks for posting here - very useful to know

+ 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] Highlight current week number.
    By izy0502 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-07-2014, 09:45 AM
  2. Translate ~Number of days in a week to number of days across months
    By martin ridley in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-26-2008, 01:09 PM
  3. Number of Week Days _including_ Holidays
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  4. Number of Week Days _including_ Holidays
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  5. [SOLVED] Number of Week Days _including_ Holidays
    By Andrew Perry in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01: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