Year (date) and Month (date) "YYMM" in number.

In the column 'G' I use the formula = month (date)

In the column 'H' I use the formula = year (date)

Is it possible to use the formula above to create a "YYMM' as the column 'I '?

Column 'G and H' will be deleted if the column 'I' is the work.

Hi LV.

Here is an example of use of Numbers ' 09. The first method (in column (C) is feasible in 3 numbers; the second is maybe not.

Columns C and D are left in the default auto format (and alignment).

Column C, automatically align left, excerpts from the last two formatted numbers Year() then extracts and oncatenates the last two digits of a string built consisting of two zeros & the number Month() one or two. The result is a text string of four digits, as shown.

C2 and filled down: = RIGHT ((B), 2 YEAR) & RIGHT ("00" & MONTH (B), 2)

Column D simply copies the string Date and time of B and displays it by using a custom format, showing that the two-digit year & the monthnumber double-digit.

D2 and filled down: = B

Custom format for the cells D2 - D8:

Kind regards

Barry

Tags: iWork

Similar Questions

  • Select the year max and max date for a code

    Hello

    I need to extract max year and month max for one code particulare.

    My table contains:

    YEAR MONTH CODE

    ====   =====    ====

    2014 6 X

    2014 7 X

    2013 5 Y

    2013 6 Y


    I need to extract:


    2014 7 X

    2013 6 Y


    I don't like max(YEAR|| le mois), I want the column separated.


    Thank you

    Try this:

    WITH test_data AS (
      SELECT 2014 AS yr, 6 AS mth, 'X' AS code FROM DUAL
      UNION ALL
      SELECT 2014 AS yr, 7 AS mth, 'X' AS code FROM DUAL
      UNION ALL
      SELECT 2013 AS yr, 5 AS mth, 'Y' AS code FROM DUAL
      UNION ALL
      SELECT 2013 AS yr, 6 AS mth, 'Y' AS code FROM DUAL
    )
    SELECT yr
         , MAX(mth) KEEP (DENSE_RANK FIRST ORDER BY 100*yr+mth DESC) AS mth
         , MAX(code) KEEP (DENSE_RANK FIRST ORDER BY 100*yr+mth DESC) AS code
    FROM   test_data
    GROUP BY yr
    ORDER BY 1;
    

    Obviously by storing your dates as the DATE, then ranked by who would be more elegant!

  • Find invalid date and month not corresponding with the calendar

    Helllo,

    I want to find the line to invalid date, which do not correspond with day and month.

    Also, the program should capture the data if the year < 1900

    Thanks in advance



    with xx as
    (select 101 as the ID, May 24, 1899 ' than double create_date)
    Union of all the
    Select 101, 32/03/2012 "of the double
    Union of all the
    Select 102 30/02/2012 "of the double
    Union of all the
    Select 101, 29/02/2013 "of the double
    Union of all the
    Select 102, February 28, 2013 "of the double
    Union of all the
    Select 102, 24 January 2012 ' double
    Union of all the
    Select 101, ' - 11/22 / 2012 "of the double
    Union of all the
    Select 102, ' 05/42/2012 "of the double
    Union of all the
    Select 101, ' 01/72/2012 "of the double
    )

    Select * from xx
  • OK im cloud one year $19,99 Member takes each month on my account but my apps are on trial or have completed his motorcade and I have no serial number and activates them

    OK im cloud one year $19,99 Member takes each month on my account but my apps are on trial or have completed his motorcade and I have no serial number and activates them

    Hi Jay,.

    Adobe trial and purchased applications are same, if you are showing that the trial has expired it would be a mistake to solve this, you can check the link below:

    ( Make sure you use the same Adobe ID / Email ID that you used to purchase the subscription )

    Download the creative application of cloud from here: Download Adobe Creative Cloud apps | Adobe Creative Cloud free trial

    Connect and disconnect activate Cloud Creative applications

    If it does not help him follow the link below

    Adobe Creative Cloud apps back in test mode after 2015 set CC to update

    * NOTE: Make sure that your firewall of your computer or security software firewall does not block Adobe, if you are not sure of it then just turn off the firewall for awhile disconnect you and you connect on the creative application of cloud and check.

    Let us know if that helps.

    Kind regards

    Sandrine Bani

  • Time of year and month to generate

    Hello

    How can I generate years and months certain period, by using a single query

    Example: I would like to generate every month between 2010 and 2012, it shows

    201001

    201002

    ...

    ..

    201012

    201101

    201102

    ..

    201112

    201201

    201202

    201203

    ....

    ....

    201212

    How can I make using query without using cursor?

    TIA

    using

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    PL/SQL Release 11.2.0.4.0 - Production

    CORE Production 11.2.0.4.0

    AMT for Linux: Version 11.2.0.4.0 - Production

    NLSRTL Version 11.2.0.4.0 - Production

    So, technically... you always use a cursor.

    Select add_months (date ' 2010-01-01', rownum-1)

    OF the double

    connect add_months (date ' 2010-01-01', rownum-1)<= date="">

    /

    would give you a start every day of a month of 01/2010 to 12/2012 as a DATE!

    HTH

  • To find the last year data / data of the year an individual

    Hello

    How to find the data for the whole of last year, I tried like

    entered_date between to_char (December 31, 2008 11:59:59 ', ' HH12:MI:SS MM/DD/YYYY ')
    and to_char (1 January 2010 00:00:00 ',' DD/MM/YYYY HH12:MI:SS'), but it's an error invalid number.

    Thank you.

    Hello

    If you want something that doesn't require you to hardcode a year, but the numbers automatically in what year it is:

    WHERE   entered_date     >= ADD_MONTHS ( TRUNC (SYSDATE, 'YEAR')
                                              , -24
                                    )
    AND     entered_date     <  ADD_MONTHS ( TRUNC (SYSDATE, 'YEAR')
                                              , -12
                                    )
    

    There are a couple of things to notice on the expression that you posted (in addition to using TO_CHAR TO_DATE instead):

    WHERE  entered_date     BETWEEN TO_DATE ('12/31/2008 11:59:59', 'MM/DD/YYYY HH12:MI:SS')
                          AND       TO_DATE ('01/01/2010 00:00:00', 'MM/DD/YYYY HH12:MI:SS')
    

    BETWEEN includes two end points, so the phrase above covers just a little over a year. It includes a second of 2008 and a second in 2010, as well as the whole of 2009.

    Currently, 2010 is the last year, so the expression you have posted (as well as my suggestion) is actually for the year before last year, but it can easily be changed for the whole year.

  • incompatible data types: expected NUMBER got LONG

    Version 3.2.20.09

    Hello

    I use SQL Developer and want to see trigger body using as a function but unfortunately its data type is long so that I get the error message, is there a way by which I can see the bodies of trigger...

    Example query

    TRIGGER_BODY

    SELECT TRIGGER_BODY FROM user_triggers

    WHERE TRIGGER_BODY LIKE '% HEAR. "

    Error

    ORA-00932: inconsistent data types: expected NUMBER got LONG

    00932 00000 - ' incompatible data types: wait %s %s got. "

    * Cause:

    * Action:

    Error on line: column 2: 7

    This isn't a matter of SQL Developer.  Access quick, but partial, the answer is that the display of a LONG column in SQL * more / developer SQL can be done by issuing just one

    1000 long - value (or some other, more)

    You are referencing a LONG in a WHERE clause, however, is absolutely forbidden as I know.  Maybe something new (System invisible columns generated in LONG columns in the data mirrored dictionary?) are available in 12 c, but disapproval of LONG was announced in Oracle 8 in favour of the LOBs.

    Anyway, if you do not want to ask this question in the forum of PL/SQL, see solution code of Laurent Schneider in this old debate...

    Search long data type in the column

  • Zero-view fixed year date do?

    Zero-view fixed year date do?

    Refer to this link, which explain the zero display feature for example.

    Hyperion Financial Management: Zero display and default display settings. Edgewater Ranzal Weblog

    Let us know if you more details.

    Thank you

    ~ KKT ~.

  • Insert the ROWNUM in a column of data type of NUMBER table

    Hello

    I have a table that has a column named "rank" of the NUMBER data type. Basically, I want to make an analysis of top-n and insert the ROWNUM with other columns in the table.

    Definition of table1:

    CREATE TABLE

    (

    col1 VARCHAR2 (10),

    Col2 NUMBER,

    NUMBER of col3,

    rank NUMBER

    );

    INSERT INTO table1

    SELECT col1, col2, col3, rownum

    DE)

    SELECT col1, col2, col3

    FROM table2

    ORDER BY DESC of col3

    )

    WHERE rownum < = 5;

    I get an error ORA-01722: invalid number. I think the mistake is virtual ROWNUM is not data type of NUMBER, so I tried to cast as CAST (ROWNUM AS NUMBER), but it does not work, same error. Can can you please shed some light on how to convert a ROWNUM number or if the issue is something else.

    you're right, your example worked. It is an example of table I just created just to illustrate the problem, but my real table was always showing the same problem. Weird, isn't? However when I added the column names after that insert the question but statement I resolved. Adding code

    INSERT INTO TABLE1

    (col1, col2, col3, rank) - added

    SELECT col1, col2, col3, rownum

    DE)

    SELECT col1, col2, col3

    FROM table2

    ORDER BY DESC of col3

    )

    WHERE rownum<=>

    So that means ROWNUM returns number; and another confusion: why the inclusion of the column has solved my problem when it is not necessary for your example. in any case thank you.

  • Problem transforming any XML data to a number of

    Ask for help, I am trying to transform XML data into a number that I can use in formulations to animate. It is a simplified example of what I'm trying to do. I have successfully comes from the xml file info in the text on the stage. My problem is that I need to have value data imported to be a number so that I can do with her future calculations, such as adding two numbers together to create a new variable total. I have accumulated my brain reading on XML data, has spent several days trying obvious solutions without result, and yes I'm new on even though I tried many encoding options.

    Thank you, Cindy j..

    -IMPORT of ONE XML FILE "textimport.xml".

    <? XML version = "1.0" encoding = "UTF-8"? >

    < mediansaleschart >

    < figureone > 20 < / figureone >

    < figuretwo > 10 < / figuretwo >

    < / mediansaleschart >

    -EDGE ANIMER CODING scene/creationComplete

    $.ajax({)

    type: 'GET ',.

    URL: "textimport.xml",

    data type: "xml."

    success: {function (xml)}

    textOne = $(xml).find('figureone').text ();

    textOneTxt.html (textOne);

    textTwo = $(xml).find('figuretwo').text ();

    textTwoTxt.html (textTwo);

    }

    });

    var textOneTxt = $(this.lookupSelector ("textOneTxt"));

    var textTwoTxt = $(this.lookupSelector ("textTwoTxt"));

    -EDGE ANIMER OF ELEMENTS ON THE STAGE, text elements

    textOneTxt

    textTwoTxt

    To get the value of the xml node, you must use parseInt.

    So for the total, I did something like this

    myTotal = parseInt (figureone) + parseInt (figuretwo);

    You should also make use of the last reference of research

    Instead of

    $(this.lookupSelector ("textOneTxt"));

    Use this notation

    sym.$("textOneTxt");

    Here's an example - http://www.heathrowe.com/edge/xmlnum/

    Download - http://www.heathrowe.com/edge/xmlnum/xmlnum.zip

    Code on compositionReady.

    var figureone, figuretwo, myTotal;
    var outputField = sym.$("xmlOutput");
    var messageString;

    $.ajax({)

    type: 'GET ',.
    URL: "sampleoutput.xml",
    data type: "xml."
    success: {function (xml)}
    figureone = $(xml).find('figureone').text ();
    figuretwo = $(xml).find('figuretwo').text ();
    myTotal = parseInt (figureone) + parseInt (figuretwo);
    messageString = "Figure a single value is:" + figureone + "
    "
    Figure two value is: "+ figuretwo +".
    "
    The total value is: "+ myTotal;

    outputField.html (messageString);
    }
    });

    ///////////////// End Code ////////////////////////

    HTH

    Darrell

  • Implicit coercion of a date for a number of unrelated type

    I use the following to select every day of the month displayed on the date picker.

    var start_d:Date = new Date();
    start_d.month = chooser.displayedMonth;
    start_d.date = 0;

    var end_d:Date = new Date();

    find the last day in the month
    var dt:Date = new Date (chooser.displayedYear, chooser.displayedMonth + 1, 0);

    Alert.Show (DT. ToString());
    end_d.month = chooser.displayedMonth;
    end_d.date = 25;
    calendar.selectedRanges = [{rangeStart: start_d, rangeEnd: end_d}];

    I find the last day of the month for day DisplayedMonth + 1 0. If I say 'end_d.date = 25' this code runs to select the day 1 to 25 on the date picker, but I can't make it work with the last day of the month when I do this: 'end_d.date = dt;' I get an implicit constraint of the mistake of a date to a number of independent typoe. So I tried this:

    var df:DateFormatter = new DateFormatter();
    df.formatString = "DD";
    var formattedDate:String = df.format (chooser.selectedDate);
    end_d.date = formattedDate;

    but I get the same error. No idea how to get this latest date to be the last day of the month?

    Try this:

    end_d.date = dt.date;

    SelectedRanges property requires numerical values. DT is a type of Date, but dt.date's number. Here is the test application I used.


    http://www.Adobe.com/2006/mxml"layout ="absolute">

    public function setCalendarRange (): void {}
    var start_d:Date = new Date();
    start_d.month = chooser.displayedMonth;
    start_d.date = 0;
    var end_d:Date = new Date();
    find the last day in the month
    var dt:Date = new Date (chooser.displayedYear, chooser.displayedMonth + 1, 0);
    end_d.month = chooser.displayedMonth;
    end_d.date = dt.date;
    calendar.selectedRanges = [{rangeStart: start_d, rangeEnd: end_d}];
    }
    ]]>



    Vygo

  • Giving date based return number interval

    Here is an example of what I am trying to accomplish. The setting I will use is which days are available for work in the format of (0,1,1,1,1,1,0).

    The first digit represents the Sunday and the last is Saturday. If the day was 0 you have to jump that date, but if the date has a 1 you can use this date. So if the data contained an 0 for Monday if will have to jump Monday when days are added. I can find a way to put the SQL set to skip the Saturday and Sunday, but may not know how to use the format (0,1,1,1,1,1,0) to determine if the work is authorized.

    Here's the SQL I use as a concept I need help on how to incorporate it.

    ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
    CREATE or REPLACE function custom_add_days
    (start_date_in date, number of days_in)
    date of return
    IS
    number of v_counter;
    date of v_new_date;
    number of v_day_number;
    BEGIN

    / * This routine adds a specified number of days (ie: days_in) at a date (ie: start_date). */
    / * It will ignore all weekend days - Saturday and Sunday * /.
    v_counter: = 1;
    v_new_date: = start_date_in;

    / * Loop to determine how many days to add * /.
    all in v_counter < = days_in
    loop
    / * Add a day * /.
    v_new_date: = v_new_date + 1;
    v_day_number: = to_char (v_new_date, 'd');

    / * Increment counter if day falls between Monday to Friday * /.
    If v_day_number > = 2 and v_day_number < = 6 then
    v_counter: = v_counter + 1;
    end if;

    end loop;

    RETURN v_new_date;

    Sorry did not see your last post.

    Maybe something like that (changed your function a bit):

    SQL> CREATE OR REPLACE FUNCTION custom_add_days (
      2     start_date_in   DATE,
      3     work_days       VARCHAR2,
      4     days_in         NUMBER
      5  )
      6     RETURN DATE
      7  IS
      8     v_counter          NUMBER;
      9     v_new_date         DATE;
     10     v_day_number       NUMBER;
     11     v_loop_counter     NUMBER := 0;
     12     work_days_status   NUMBER;
     13  BEGIN
     14  /* This routine will add a specified number of days (ie: days_in) to a date (ie: start_date). *
    /
     15  /* It will skip all weekend days - Saturdays and Sundays */
     16     v_counter := 1;
     17     v_new_date := start_date_in;
     18
     19  /* Loop to determine how many days to add */
     20     WHILE v_counter <= days_in
     21     LOOP
     22  /* Add a day */
     23        v_new_date := v_new_date + 1;
     24        v_day_number := TO_NUMBER(TO_CHAR (v_new_date, 'd'));
     25        v_loop_counter := v_loop_counter + 1;
     26        work_days_status :=
     27           TO_NUMBER (SUBSTR (REPLACE (work_days, ','),
     28                              CASE
     29                                 WHEN MOD (v_loop_counter, 7) = 0
     30                                    THEN 7
     31                                 ELSE MOD (v_loop_counter, 7)
     32                              END,
     33                              1
     34                             )
     35                     );
     36
     37  /* Increment counter if day falls between Monday to Friday */
     38        IF  work_days_status = 1
     39        THEN
     40           v_counter := v_counter + 1;
     41        END IF;
     42     END LOOP;
     43
     44     RETURN v_new_date;
     45  END;
     46  /
    
    Function created.
    
    SQL> show errors
    No errors.
    SQL> SELECT sysdate FROM Dual
      2  /
    
    SYSDATE
    ---------
    01-JUL-09
    
    1 row selected.
    
    SQL> SELECT CUSTOM_ADD_DAYS(sysdate, '1,0,1,1,1,0,1', 3) FROM Dual
      2  /
    
    CUSTOM_AD
    ---------
    05-JUL-09
    
    1 row selected.
    
    SQL> 
    

    Kind regards
    JO

    Published by: Joice John July 1, 2009 06:08

  • Hello, I bought a membership year of the CC at the price of $19.99 student, my card was charged and my order from Adobe number is AD004286941EDU. However, my account says I have no orders existing and after download, all the creative cloud applications

    Hello, I bought a membership year of the CC at the price of $19.99 student, my card was charged and my order from Adobe number is AD004286941EDU. However, my account says I have no existing order and after download, all the creative cloud applications give me the possibility to either BUY or make the 30 DAYS TRIAL.

    What gives?

    allow at least a day working pst for your purchase to complete.  Today is Saturday afternoon pst.

    After this time, check your account, Adobe ID Code

    If it fails to demonstrate what you expect, contact adobe support during the time pst by clicking here and, when available, click on "still need help," http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • I try to install creative suite 6 a disc that I bought a few years ago. I have an educational version and I have the serial number that was sent to me by e-mail from Adobe last week. My serial number is long of 20 numbers, but there are a 6 boxes which is

    I try to install creative suite 6 a disc that I bought a few years ago. I have an educational version and I have the serial number that was sent to me by e-mail from Adobe last week. My serial number is long of 20 numbers, but there are 6 boxes that appear to require 24 digits and told me that the number is incorrect. What should I do?

    Using redemption code

    http://helpx.Adobe.com/x-productkb/global/redemption-code-help.html

  • I own Adobe Acrobat 8 Standard (serial number &lt; removed &gt;). I bought new about 3 years ago and have my original CD, box and the serial number. I had to reformat my hard drive and reinstall windows 7 original. Everything is OK. Now I'm trying to

    I have ownd Adobe Acrobat 8 Standard (serial number < removed >). I bought new about 3 years ago and have my original CD, box and the serial number. I had to reformat my hard drive and reinstall windows 7 original. Everything is OK. Now I'm trying to reinstall my Acrobat 8 legally bought and paid for, but he says that it cannot connect to Adobe to confirm my serial number and gave me only 30 days use because it is not registered.

    Help, please

    Post edited by: Bil Colthurst

    Serial number and activation support (non - CC) https://forums.adobe.com/thread/2041990 to adjust the number of activations

    If the cat person sends you back to this open forum, you are out of luck... only Adobe can help, nobody here can access the activation server

Maybe you are looking for

  • How to determine if the XP operating system is genuine

    They gave me this computer, Dell Precision 340, which had been built in 2003. He moved with Windows XP Pro version 2002 registered 3 pack. I was on the site of Microsoft trying to download Security Essentials and the site told me that this operating

  • Setup: default password (admin) does not work

    Hello I have reset my linksys wap54G and tried to run the Setup Wizard again. However, if I type the default password it says: "Access violation at address 004864BB in module 'Setup.exe'. Read of address FFFFFE1C. » I thought that, maybe an error on

  • Access denied drive C

    I have an 'Access denied' tag on my C drive and can not use it at all. Cannot use office etc. and programs does not load?

  • What can cause my windows 7 keeps freezing upwards

    What can cause my windows 7 keeps freezing upwards

  • Get the Parent for each record in the child

    Dear Experts,I have a table that contains the parent and child information. I need to make a request to get the parents of each book of the child table. I tried to write the query but does not get the expected results. Please help me.Table: relations