Background color based on day of the week?

I have a column filled with dates going from 1-1-2007 to 12-31-2007. Using the autofill it was easy getting the dates auto-filled in. The only trouble with the overview is that's rather hard to see which days belong to the weekend, and which belong to the workweek (forgive my english..).
Is there a way to automatically color the background of a cell, based on that specific data?
If not, is it possible then to create a pattern? like 5cells green, 2 cells red, 5 cells green, 2cells red.. etc. you get the point.
I thank you in advance for your help!

I solved the problem it seems. I'll leave it for others with this trouble:
In make case I just made the first two weekend cells Blue. I made a selection of these cells + 5 extra (the 5 days during the week). Then I just take the rightlower corner and start dragging to the lowest cell, overwriting the current cells, making them still appear the same but now with a 2 blue colored cells every 7 cells.

Similar Messages

  • Range Partitioning a table based on day of the week

    I have a logging table which i want to partition into 7 partition, each one for the day of the week, eg MON,TUE, WED. I am aware and I can do a list partition by creating a parition key which stores 'DY' of the week and this means that I need to add another column to the existing table.
    I wanted to explore the option of creating a range parition based on the timestamp column that already exists. Can anyone let me know if this option is possible?
    Example
    create table test_partition
    ( log_id number,
    log_date TIMESTAMP(6),
    log_value varchar2(100)
    PARTITION BY RANGE (log_date)
    PARTITION p1_mon VALUES LESS THAN (), ---- Not sure what can be used here to create this parition.
    PARTITION p2_tue VALUES LESS THAN (),
    PARTITION p3_wed VALUES LESS THAN (),
    PARTITION p4_thu VALUES LESS THAN (),
    PARTITION p5_fri VALUES LESS THAN (),
    PARTITION p6_sat VALUES LESS THAN (),
    PARTITION p7_sun VALUES LESS THAN ()
    Any oracle guru with some suggestion for this would be highly appreciated..
    Cheers,
    VJ

    Something like:
    PARTITION P1_MON VALUES LESS THAN (TIMESTAMP'2009-03-10 00:00:00')
    ....Bear in mind that you will have to write a procedure to drop and create your daily partitions, and run that on a daily basis. Also you would be well advised to create a catchall partition that holds anything that won't go into your latest specified partition, eg:
    PARTITION P_MAX VALUES LESS THAN (MAXVALUE)

  • How to schedule in broadcaster based on Days of the week

    Hi Gurus,
    Using BEx broadcaster I have to schedule a report for Wednesday and Friday of every week.
    In the broadcaster I can se only the number of days, weeks and year.
    Please help out with a solution.
    Thanks
    Prasad

    Thanks!
    But I didn't undertand how to set it in broadcsater as there are no Weekdays mentioned.
    Can you please help out with the steps to do this?
    Thanks
    Prasad

  • Unique Auto Replies based on day of the week

    I want to setup auto reply rules similar to the Out-of-Office without having the user having to turn them on.  Additionally I want to set the rules to be at one time on weekdays, another on Saturdays, and a third on Sundays.  How can I set rules
    that do this?

    Hi,
    Sorry, we can't do this in Outlook, but you can repost in Outlook for Developer forum to confirm if we can achieve this goal using codes:
    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=outlookdev
    Best Regards,
    Steve Fan
    TechNet Community Support

  • Change Column Header / Column Background color based on a value in a specific row in the same column

    SSRS 2012
    Dataset (40 columns) including the first 3 rows for Report layout configuration (eg: the <second> row specifies the column background color).
    Starting from the 4th row, the dataset contains data to be displayed.
    I would like to change the background color of the ColumnHeader/Column based on the value in the same column in the <second> row.
    How can I accomplish the this requirement? (this must be applied for all the columns)
    Thanks

    Hi Fasttrck2,
    Per my understanding that you want to specify the background color of all the columns/column header based on the value in one special column of the special row, right?
    I have tested on my local environment and you can add expression to condition show the background color in the columns properties or the column header properties.
    Details information below for your reference:
    Specify the background color in the Column header: you can select the entire column header row and in the properties add expression in the Background color :
    If you want to specify the background color for the entire column, you can select the entire column and add the expression, repeat to add background color for other columns.
    If you want to specify the background color based on the value in the specific columns and row, you can create an hidden parameter to get the list of values from the  specific column, specify the Available values and default values by select "Get
    values from a query", finally using the expression as below to get the specific value you want:
    Expression(Backgroud Color):
    =IIF(Parameters!Para.Value(1)="1221","red","yellow")
    If your problem still exists, please try to provide some smaple data of the report and also the snapshot of the report structure to help us more effective to provide an solution.
    Any problem, please feel free to ask.
    Regards
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • Report Request - Tickets by day of the week

    So there are plenty of reports that show data based on past X days, but as far as I can see, none break it up into by days of the week.
    Example, For the last month, how many tickets were closed on Monday, Tuesday, by what Tech, in which Category/Location/Custom attribute.
    Could someone better than I make this happen?
    This topic first appeared in the Spiceworks Community

    I am not sure about your help.  Text variable is part of the header of a column and how is it possible to use the text variable as part of the result area.  I want the day to be part of the line item in the report.
    Appreciate if any one can provide their thoughts and input.
    Regards
    Sundar

  • Oracle returning incorrect day of the week

    Hi there,
    I have a table named Performance, which includes a date field named PDATE, some other attributes such as title, etc, and a field named WEEKDAY, which includes the numerical value for the day of the week. Here is an example:
    PER#
    P#
    THEATRE#
    WEEKDAY
    PDATE
    PHOUR
    PMINUTE
    COMMENTS
    1
    1
    1
    1
    02-MAR-10
    19
    30
    Normal evening time
    2
    1
    1
    2
    03-MAR-10
    19
    30
    Normal evening time
    58
    6
    6
    3
    04-MAR-10
    19
    30
    Normal evening time
    5
    1
    1
    4
    05-MAR-10
    19
    30
    Normal evening time
    I went to verify the day of the week in a calendar (in fact I checked more than one) and I noticed that the Weekday value seems incorrect. For instance, the 2nd of March was a Tuesday so I would expect WEEKDAY to say 3 (considering Sunday to be the 1st day of the week, which is the universal norm), or perhaps 2 (considering Monday to be the 1st day of the week).
    First thing that came to mind is, since the WEEKDAY is a number field which has been pre-populated, the person who populated it made a mistake.
    So I went to verify this by running a query that would give me the correct day of the week by extracting it from the PDATE field:
    SELECT DISTINCT pdate, EXTRACT(year from pdate) year,
    to_char(to_date(pdate,'DD/MM/YYYY'),'DY') weekdaycalc, weekday
    FROM ops$yyang00.Performance
    ORDER BY pdate
    And to my astonishment, I got the following table as a return:
    PDATE
    YEAR
    WEEKDAYCALC
    WEEKDAY
    02-MAR-10
    2010
    SUN
    1
    03-MAR-10
    2010
    MON
    2
    04-MAR-10
    2010
    TUE
    3
    05-MAR-10
    2010
    WED
    4
    06-MAR-10
    2010
    THU
    5
    07-MAR-10
    2010
    FRI
    6
    08-MAR-10
    2010
    SAT
    7
    09-MAR-10
    2010
    SUN
    1
    10-MAR-10
    2010
    MON
    2
    As you can see, all of the above WEEKDAYCALC values are incorrect, and seem to match the incorrect values in WEEKDAY.
    I could perhaps understand some weird WEEKDAY numbering if there is some general database setting where I could specify any day of the week to be the first day. However, I can't think of any logical explanation on why Oracle would call a Tuesday Sunday.
    Could someone please advise what I mght be doing wrong? This is driving me insane!
    Thank you in advance for all the help and support.
    Regards,
    P.

    Hi,
    1bded5c7-e555-4306-ac86-45da83dff439 wrote:
    Thanks both Frank and Solomon for the help. I am quite new to Oracle and I feel you folks went the extra mile on the explanation
    Based on your explanations, I changed the formula so the date format would be processed as YY rather than YYY.
    SELECT DISTINCT pdate, EXTRACT(year from pdate) year,   
    to_char(to_date(pdate,'DD/MM/YY'),'DY') weekdaycalc, weekday   
    FROM Performance   
    ORDER BY pdate  
    And I got the correct values now:
    PDATE
    YEAR
    WEEKDAYCALC
    WEEKDAY
    02-MAR-10
    2010
    TUE
    1
    03-MAR-10
    2010
    WED
    2
    04-MAR-10
    2010
    THU
    3
    05-MAR-10
    2010
    FRI
    4
    06-MAR-10
    2010
    SAT
    5
    07-MAR-10
    2010
    SUN
    6
    08-MAR-10
    2010
    MON
    7
    The interesting bit here, is the original WEEKDAY field, which clearly has been created with the same mistake I did (this whole table wasn't created by me). I reckon I spotted a design bug.
    Regards,
    P.
    No; you're still calling TO_DATE on something that is already a DATE, and you're still using an implicit conversion (only now you're using a format such that the current NLS settings don't cause you to get punished.  If your DBA changes the NLS settings next week, then you will have similar errors again.)
    If you want to see what day of the week pdate is, then use:
    TO_CHAR (pdate, 'DY')
    or, to make it NLS-independent:
    TO_CHAR (pdate, 'DY', 'NLS_DATE_LANGUAGE=ENGLISH')
    This is simpler than what you posted, it's more efficient and easier to debug and to maintain, and it also gets the results you want in all cases.
    One more time: TO_DATE, as the name hints, converts something (a VARCHAR2, to be precise) TO a DATE.  If pdate is already a DATE, then what do you need to convert?  You're implicitly converting a DATE to a VARCHAR2, then explicitly converting that VARCHAR2 back to a DATE, and then calling TO_CHAR.  That's 3 function calls (1 of them error prone) where only 1 is needed.
    Also if you ever have to reconcile 2-digit years with 4-digit years (and, again, in this problem you don't) the correct way is to convert the 2-digit year to a 4-digit year, not vice-versa.
    Calling Tuesday the 1st day of the week could make sense in a particular application.

  • Weekdays option in alarm does not correspond to first day of the week option in calendar

    I am based in Oman where the week is Saturday to Thursday and Friday is weekly off instead of Sunday. Inspite of changing first day of the week to saturday in calendar option and choosing weekdays option in Alarm, it rings on Fridays and does not ring on Sundays. Its very upsetting. Can anyone suggest a solution for this?? Thanks in advance.

    i just did this on my Blackberry curve 8330 to make sure my answer was correct, and what i was able to do was.
    Go to your calender, select the first day you would like it to start i i will start monday for example, Recurrence set to weekly. when selecting weekly another option will appear below it ( S M T W T F S ) highlight and select a letter that marks the day  Saturday , Monday , Tuesday Ect.  and the letting will become BOLD meaning it is selected. Thus giving you the option to select any , and as many days per week you wish, and have the recurrence as often as you want

  • No Background Color for ALL DAY EVENTS

    Is there a way to prevent the background color from All-Day-Events in iCal? I would prefer to print/view the calendar w/o the background colors.

    No one answered

  • How to set background color for selected days in DateChooser

    How to set background color for selected days. I created
    checkbox for each day [Son,Mon,Tue,Wed,Thu,Fri,Sat] and a
    DateChooser, I want to change the background color for the selected
    day when i click on a button after selecting the desired checkboxs
    [ monthly wise/yearly wise]
    Thanks in advance

    There is no button involved in the following code, but it may
    be of use to you:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()">
    <mx:Script>
    <![CDATA[
    private var origColor:uint;
    private function init():void {
    origColor = dc.getStyle("selectionColor");
    public function setBackGrdColors(newColor:uint):void {
    dc.setStyle("selectionColor", origColor);
    if(dc.selectedDate){
    var dayOfWeek:Number = dc.selectedDate.day;
    else{
    return;
    switch(dayOfWeek) {
    case 0:
    if(sun.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 1:
    if(mon.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 2:
    if(tue.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 3:
    if(wed.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 4:
    if(thu.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 5:
    if(fri.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 6:
    if(sat.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    default:
    break;
    ]]>
    </mx:Script>
    <mx:VBox horizontalAlign="center" verticalGap="20">
    <mx:DateChooser id="dc" textAlign="left"
    change="setBackGrdColors(cellColor.selectedColor)"/>
    <mx:HBox width="100%" horizontalAlign="center">
    <mx:CheckBox id="sun" label="Sun"/>
    <mx:CheckBox id="mon" label="Mon"/>
    <mx:CheckBox id="tue" label="Tue"/>
    <mx:CheckBox id="wed" label="Wed"/>
    </mx:HBox>
    <mx:HBox width="100%" horizontalAlign="center">
    <mx:CheckBox id="thu" label="Thu"/>
    <mx:CheckBox id="fri" label="Fri"/>
    <mx:CheckBox id="sat" label="Sat"/>
    </mx:HBox>
    <mx:HBox width="300" horizontalAlign="center">
    <mx:Label text="Background Color" />
    <mx:ColorPicker id="cellColor"
    selectedColor="#FF00FF"/>
    </mx:HBox>
    </mx:VBox>
    </mx:Application>

  • Range Partitioning for the day of the week

    I have a logging table which i want to partition into 7 partition, each one for the day of the week, eg MON,TUE, WED. I am aware and I can do a list partition by creating a parition key which stores 'DY' of the week and this means that I need to add another column to the existing table.
    I wanted to explore the option of creating a range parition based on the timestamp column that already exists. Can anyone let me know if this option is possible?
    Example
    create table test_partition
    ( log_id number,
    log_date TIMESTAMP(6),
    log_value varchar2(100)
    PARTITION BY RANGE (log_date)
    PARTITION p1_mon VALUES LESS THAN (), ---- Not sure what can be used here to create this parition.
    PARTITION p2_tue VALUES LESS THAN (),
    PARTITION p3_wed VALUES LESS THAN (),
    PARTITION p4_thu VALUES LESS THAN (),
    PARTITION p5_fri VALUES LESS THAN (),
    PARTITION p6_sat VALUES LESS THAN (),
    PARTITION p7_sun VALUES LESS THAN ()
    Any oracle guru with some suggestion for this would be highly appreciated..
    Cheers,
    VJ

    VJ,
    Here is an example of daily partitioning , let me know if this is what you want or you can modify this even to weekly, monthly, quarterly and yearly partitions.
    CREATE TABLE YY_EVENT
      PART_KEY       DATE                           NOT NULL,
      SUBPART_VALUE  NUMBER                             NULL,
      EVENT_NAME     VARCHAR2(30 BYTE)                  NULL,
      EVENT_VALUE    NUMBER                             NULL
    TABLESPACE TEST_DATA
    PARTITION BY RANGE (PART_KEY)
      PARTITION Y_EVENT_20090310 VALUES LESS THAN (TO_DATE(' 2009-03-11 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        LOGGING
        NOCOMPRESS
        TABLESPACE TEST_DATA, 
      PARTITION Y_EVENT_20090311 VALUES LESS THAN (TO_DATE(' 2009-03-12 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        LOGGING
        NOCOMPRESS
        TABLESPACE TEST_DATA
    )Regards

  • Dependent on the day of the week

    Hi. I was wondering if someone could please help me.
    I need some way of Director detecting what day of the week it
    is, and based on that day it needs to open a specific folder.
    So if its currently wednesday, I need it to open the
    'wednesday' folder in explorer.
    I would really appreciate your help. Thanks

    There's a Calendar behavior in the Text section of the
    Library Palette (Window | Library Palette). This has a GetWeekDay
    () method.
    put script("Calendar").GetWeekDay(the systemDate)
    -- "Sun"
    vScript = script("Calendar")
    vScript.myFullDayFlag = TRUE
    put vScript.GetWeekDay(the systemDate)
    -- "Sunday"
    You can find an updated version of the Calendar behavior
    >here<,

  • Generating the last day of the week

    HI All,
    I have the Year value (for eg 2002, 2006) and the week number value in the year ( for eg : 32, 52) . Based on this information, how can I get the last day of the particular week.
    for eg What is the last day of the week - 2002,32
    Any pointer would be great.
    Thanks and Regards
    Venkat

    Or try this:
    SQL> WITH t AS
         (SELECT 2006 YEAR, 1 week
            FROM DUAL
          UNION ALL
          SELECT 2002 YEAR, 32 week
            FROM DUAL
          UNION ALL
          SELECT 2005 YEAR, 52 week
            FROM DUAL
          UNION ALL
          SELECT 2006 YEAR, 52 week
            FROM DUAL)
    SELECT YEAR,
           week,
           CASE
              WHEN TO_CHAR (TRUNC (TO_DATE (YEAR, 'RR'), 'RR'), 'IW') != 1
                 THEN TRUNC (TRUNC (TO_DATE (YEAR, 'RR'), 'RR') + 7, 'IW')
              ELSE TRUNC (TRUNC (TO_DATE (YEAR, 'RR'), 'RR'), 'IW')
           END
           + 6 + (week - 1) * 7 LAST_DAY
      FROM t
                                                  YEAR                                               WEEK LAST_DAY
                                                  2006                                                  1 08-JAN-06
                                                  2002                                                 32 11-AUG-02
                                                  2005                                                 52 01-JAN-06
                                                  2006                                                 52 31-DEZ-06
    4 rows selected.

  • Months/ days of the week not in English?

    Hi,
    When connecting my iPhone with iTunes for the first time, it seems that it picked up the location from my computer’s regional and languages, and as a result the menus on my calendar and weather applications, as well as the time on the home screen (month, day) - are in different language. Everything related to days of the week and months – not in English.
    I’ve changed the main setting from the control panel, installed the iTunes again, but I can’t find how I could change it for the iPhone. (The location within the iTunes store is correct.)
    Any suggestions?

    Thanks Phil,
    I don’t know how it got messed up… Seems ok now, but this is how it looked like:
    Language – English
    Voice control – Английски
    Keyboards 1 – Bulgaria ON
    Region Format – Bulgarian

  • Setting the first day of the week

    Hi,
    Is there any other place in Mac OS X where I could set system's first day of the week, except iCal? In iCal it's set to Sunday, but in OmniFocus mini calendars show Monday as the first day of the week, although even there in OmniFocus preferences I've set it to use Sunday as the first day of the week. Developer says that OmniFocus is using system's settings, but nowhere in my system (except iCal) I can find where I could set the first day of the week. I have set English as the default language and order of list sorting in the International settings. Any ideas or suggestions?

    Unless it is set with the Country in the International preferences, I don't think their tech support knows what they are talking about. However, if that is where it would be set, you should be able to override it with the custom settings, but you can't.
    I'd ask them to tell you where that gets set, or is stored. Ask them what system call is used to get that value. My guess is they won't be able to tell you.

Maybe you are looking for

  • When I am trying to assign a job to my name, i am getting an error.

    Hi, In R12, when I am trying to assign a job to my name, i am getting an error(APP-PER-07510: You cannot continue, Future changes exist). my user was end dated. i deleted that end date and trying to working on that, i can create a new user and will w

  • I need help getting my MacBook Pro to play a DVD.

    I have spent the past hour trying to figure out why my MacBook Pro, OS X 10.6.8, to play a DVD I have inserted into the drive. I have restarted the computer and verified that there is a DVD drive installed. I have been been able to play DVDs for a wh

  • IMac graphics card

    Is it possible to upgrade the graphics card in any mac? I've had a couple of apple people tell me this isn't possible. But come on!!! How can they possibly not allow you to upgrade a graphics card? Does anyone know if this is possible if it is taken

  • Crystal Reports for Eclipse Version 2 - XML, XSD Report. Need hep !!!

    Dear all, I'm using Crystal Reports for Eclipse Version 2 I have looked for "Programmatically Create Reports off of XML or Web Services Data Sources", then i found some ways to do this. But all the time, we have to use both XSD and XML files for Repo

  • Need to find all Bugs and QF created for 8.0.0.13

    Hi all, I kneed to know how to find all bugs and possibly patches/QF created on top of 8.0.0.13 for bugs found in 8.0.0.13 after its release on Jan 2012. This is for my Customer that needs to know if they have to plan some QF in proactive way. I can