Input predetermined date from column in Numbers

Hi!
I'm trying to calculate my worked hours by inputing Time in in cell C and Time out in cell D, and having Numbers calculate the numbers of worked hours in cell E, by using =Cell D - Cell C and it is working fine.
My problem is that Numbers automatically choses the current date and inputs it into all cells that are formated to show time only, Cell C and Cell D.
In Column B, I've typed in the correct date, eg. 16 augusti 2012.
My question is:
How to I get Numbers to choose the date from Cell B instead of todays date?
I've tried to input a formula =Date(cellB) which is working, but it stops me from inputing a time.
For example, in Cell B, I've typed in 16 augusti 2012 and in Cell C I've typed in =Date(cellB)+time(09:00:00) but get a syntax error.
To complicate matters, I'm using Numbers in Sweden, with the language set to Swedish... I don't know if that changes how to input a formula.
BR,
Jemma

Jemsann wrote:
Most of my time in and out occurrs on the same day, but not always, so hopefully I'll be able to find a formula that works for both instances.
Your formula seems to bypass the date issue althogeter. Does that mean that Numbers have no (rather simple) way of getting a date from another cell?
If I use the formula used in E2 and E3, then I might as well have the current date as my hidden datevalue, or does it function in an another manner?
Hi Jemma,
Use Badunit's version fo the formula if you have shifts that cross the midnight boundary. That version will work for for shifts of up to 23 hours and 59 minutes (and 59 seconds). For any shift less than 24 hours in length, the shift will have started and ended on the same calendar day if the starting time (of day) or TIMEVALUE is smaller than the finish time (of day) or TIMEVALUE, and will have started on the previous calendar day if the start TOD or TIMEVALUE is greater than the finish TOD or TIMEVALUE.
If you need to retrieve the Date from one cell (B6 in the formula below) and combine it with the Time part of the Date and Time value in a second cell (C2 in the example), try:
=TIMEVALUE(C2)+DATEVALUE(B6)
The Function Browser says DATEVALUE converts a date presented as a text string to a Date and Time value, but it seems to also read the date part of a full Date and Time value and convert this to a Date and Time value with the Time set to 00:00:00 (as it would be if you entered only the date part).
Regards,
Barry

Similar Messages

  • How to trim data from column

    Morning gurus
    I have two tables, with column matching data, BUT i need to trim the columns of one of the tables
    the data appears in xpq_log table as follows
    LOG_DATE                     LOG_PTR     LOG_HDR
    01/06/2011 00:00:00     0609pro     0609IN002C_06
    04/06/2011 00:00:00     0609pro     0609IN002C_06
    05/06/2011 00:00:00     0609pro     0609IN002C_06
    06/06/2011 00:00:00     0609pro     0609IN002C_06
    07/06/2011 00:00:00     0609pro     0609IN002C_06
    09/06/2011 00:00:00     0609pro     0609IN002C_06
    10/06/2011 00:00:00     0609pro     0609IN002C_06
    12/06/2011 00:00:00     0609pro     0609IN002C_06
    01/06/2012 00:00:00     0609pro     0609IN002C_06
    02/06/2012 00:00:00     0609pro     0609IN002C_06
    03/06/2012 00:00:00     0609pro     0609IN002C_06
    06/06/2012 00:00:00     0609pro     0609IN002C_06
    07/06/2012 00:00:00     0609pro     0609IN002C_06
    08/06/2012 00:00:00     0609pro     0609IN002C_06
    09/06/2012 00:00:00     0609pro     0609IN002C_06In printpdf table as follows
    PDF_REPORT     PDF_DESCRIPTION
    IN002C                     STOCK FILE PURGE - PRINT WH CONTROLHow can i trim data from column(log_hdr) to match column(pdf_report)?
    Any help will be much appreciated

    Alberto,
    Even we can use regexp_substr to something fix string( Known part of a string).
    Like:-
    SQL> ed
    Wrote file afiedt.buf
      1  WITH xpq_log AS
      2  (
      3     SELECT '0609IN002C_06' log_hdr FROM DUAL
      4  )
      5* SELECT REGEXP_SUBSTR(log_hdr,'[[:alnum:]]+[C$]',1,1) PDF_REPORT FROM xpq_log
    SQL> /
    PDF_RE
    IN002C
    Thanks!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to fill a table with data from columns & rows from a txt file

    I am trying to fill say:
    Myname     Myclass     Mycollege
    Mohan     MD     Stanford
    from a txt file into 3 columns of a table. I can easily do it into a textarea component by
    clicking a button:
    try{
    FileReader fr = new FileReader("F:/CreatorProjects1/stan.txt");
    BufferedReader br = new BufferedReader(fr);
    String s1="";
    String s="";
    stantxtarea.setValue(s);
    while((s=br.readLine())!=null) {
    s1 = s1+s;
    s1=s1+"\n";
    stantxtarea.setValue(s1);
    br.close();
    fr.close();
    } catch(Exception e) {
    e.printStackTrace();
    return null;
    All table components seem to need a database. I do not use any database. I run exe files that give output to txt files. How to solve it?
    I appreciate any help in this regard...
    dr.mohan rao

    there may be another way. This is some thing some thing I can recommend. You can create property type of ObjectListDataProvider in session or application based on the scope you required. Create web bean class with property you want to show in the column (say col1, col2, col2). Initialize the list property like similar below
    List dataList = new ArrayList();
    ObjectListDataProvider mytableprops = new ObjectListDataProvider();
    try {
    //start loop read data from your txt file
    //create instance of web bean for each line
    //add web bean instance into dataList
    //end of loop readind data from txt file
    oldpins.setList(dataList );
    oldpins.setObjectType(NotificationProfileBean.class);
    } catch (Exception ee1){;}
    return oldpins;
    Sri Thuraisamy

  • How to Group Data from column?

    Hi All,
    Can any one solve my problem please?
    I have Two Column "Age" and "Employee ID".
    I want to Group "Number of Employees" for specific AGE range Like:
    Age | Number of Employees
    20 to 30 | 06
    31 to 40 | 13
    41 to 50 | 16
    51 to 60 | 03
    And data in Columns are fallowing
    Age | Employees ID
    30 | 002
    38 | 008
    33 | 298
    22 | 213
    54 | 083
    24 | 098
    So on.
    Waiting for your HELP.
    In advance Thank you very much...
    Take care

    Here you go..
    Drag any column in Answers and name it as Age and in its fx write
    case
    when tablename.age between 20 and 30 then '20 to 30'
    when tablename.age between 31 and 40 then '31 to 40'
    when tablename.age between 41 and 50 then '41 to 50'
    when tablename.age between 51 and 60 then '51 to 60'
    end
    Drag any column in Answers and name it as "Number of Employees" and in its fx write
    Count(tablename.EmployeeID)
    This would give you the desired Report
    Hope its helpful...
    Thanks
    Ashish Gupta

  • How can i request an input of data from a deployed web service via a html

    Hi all, I am currently having trouble with a web service. I want a client to be able to input a numerical value for a control in a deployed VI.
    At present i have one main vi that generates a signal and i've collected waveform data and displayed this data on a a chart. The web service uses a static folder containing html and javascript files. The html file calls the js file which parses the waveform data and returns to html to be stored as a chart_div. I have all the controls and indicators in one VI, connected by terminals using GET method.
    I am looking for a way of scripting a request form so that when called by the html file, the client user can input a control and change the values on the waveform graph. I also have an update button that requests updated data. 
    If anyone could suggest a method of how to accomplish this it would be SO helpful
    Thanks, Chris

    Hi Chris,
    I take it you are using the RESTful API method to GET the data. In that case you shoul be able to perform a http POST from your js code in order to update the controls.
    This could be done as form components are updated, or after a submit button is pressed (I'm sure you are familiar with this part).
    Please see here for more information: http://zone.ni.com/reference/en-XX/help/371361J-01​/lvhowto/build_web_service/
    I hope this helps.

  • Selecting only normal character data from column

    Hi,
    We have a table column which stores party names and this could consist of non english characters. Would anyone know how do we just select regular english character rows from the table using a select query and not include the rows which have non-english characters?
    Thanks

    There iare two points with the suggestion by Frank.
    First i think he missed an +
    and secondly it doesnt work for example with german umlauts.
    with data as (
    select 'SERPI!! GAB' s from dual union all
    select 'SE£ GRA' from dual union all
    select 'ARA%%& sa' from dual union all
    select 'dasssädsa' from dual union all
    select 'ara€ ssa' from dual union all
    select 'gabriele dsa' from dual
    SELECT     *
    FROM     data
    WHERE     REGEXP_LIKE ( s
                  , '^[A-Za-z]+$'
    no rwos selected
    with data as (
    select 'SERPI!! GAB' s from dual union all
    select 'SE£ GRA' from dual union all
    select 'ARA%%& sa' from dual union all
    select 'dasssadsa' from dual union all
    select 'ara€ ssa' from dual union all
    select 'gabriele dsa' from dual
    SELECT     *
    FROM     data
    WHERE     REGEXP_LIKE ( s
                  , '^[A-Za-z]+$'
    S
    dasssadsa
    (without umlaut)
    so perhaps you will give translate a try e.g.
    with data as (
    select 'SERPI!! GAB' s from dual union all
    select 'SE£ GRA' from dual union all
    select 'ARA%%& sa' from dual union all
    select '@dass äsadsa' from dual union all
    select 'ara€ ssa' from dual union all
    select 'gabriele dsa' from dual
    select s
    ,  translate(
        lower(s)
        ,'@abcdefghijklmnopqrstuvwxyz1234567890 '
      ) t
    from data
    where
    length(
      translate(
        lower(s)
        ,'@abcdefghijklmnopqrstuvwxyz1234567890 '
    < length(s)
    S T
    SERPI!! GAB !!
    SE£ GRA £
    ARA%%& sa %%&
    @dass äsadsa @ä
    ara€ ssa € porjection is just for explanation purpose
    regards

  • [beginner] I need to take data from 4  in Numbers '09 and combine info

    I need to take 4 cells of data that has name and address in column and combine all cell information into a single cell in address format so it can be copied and pasted onto labels.
    e.g. A1 cell: John A2 cell" smith A3 city A4 state A5 zip code
    how can i get all of that info to be:
    John Smith
    city, state, zip code
    if anyone has an idea. thanks!

    Adding to what Yvan posted, if you want the exact format you posted, with commas and a line feed, it would be this:
    A1&" "&A2&CHAR(10)&A3&", "&A4&", "&A5
    The CHAR function isn't supposed to take codes smaller than 32 but 10 works. It is a line feed.
    You may also want to reconsider the comma between the state and zip code as that is typically just a space.

  • "Command error: COL(1 )=" when input master data from BI InfoObject.

    Hi,
    BPC 7.5 NW. version
    when i use the DM package IMPORT_IOBJ_MASTER with Transport and conversion files,
    i got the error ""Command error: COL(1 )="" and no data will be transported.
    does anyone know such kind of error or is there any instruction about the error in BPC?
    Thanks advance for help.
    BRs,
    XIaojun

    H,
    Did you manage to get a fix? I'm having similar error for BPC 10 when loading transactional data both from flat file and infoobject.
    The 'Command Error: COL(3,1:3) =' is when using an *IF statement in the mapping.
    If I don't use the *IF statement then I'm unable to select and direct transactional data into the correct accounts and dimension master data so really need to use them!
    Any help would be much appreciated.
    Nick

  • How can i open a PDF bank statement in numbers so that the rows and columns contain properly aligned data from statement?

    how can i open a PDF bank statement in "numbers" so that the rows and columns contain properly aligned data from statement?

    Numbers can store pdfs pages or clippings but does not directly open pdf files.  To get the bank statement into Numbers as a table I would open the bank statment in Preview (or Skim) or some pdf viewer.
    Then hold the option key while selecting a column of data.
    Then copy
    Then switch to numbers and paste the column into a table
    Then repeat for the other columns in the pdf document
    It would be easier (in my opinion) to download the QFX or CSV version from your bank

  • How can I Move data from one column to another in my access table?

    I have two columns, one that stores current month’s data and one that stores last month’s data. Every month data from column 2 (this month’s data) needs to be moved to column 1 that holds last month’s data. I then null out column 2 so I can accumulates this month’s data.
    I understand how to drop a column or add a column, how do I transfer data from one column to another.
    Here is my trial code:
    <cfquery name="qQueryChangeColumnName" datasource="#dsn#">
      ALTER TABLE leaderboard
      UPDATE leaderboard SET  points2 = points3
    </cfquery>
    Unfortunately, I get the following error:
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error in ALTER TABLE statement.
    How can I transfer my data with the alter table method?

    I looked up the Access SQL reference (which is probably a
    good place to start when having issues with Access SQL), and
    it suggests you probably need a WHERE clause in there.
    I agree the documentation is a good place to start. But you should not need a WHERE clause here.
    Too few parameters. Expected 1.
    If you run the SQL directly in Access, what are the results? At the very least, it should provide a more informative error message..

  • Mail Merge using data from Numbers for iPad

    Here is my situation:
    I use Numbers for iPad to collect data on-site when I'm doing estimates. I then download the data from iCloud to Numbers on my laptop and complete the estimates. I would then like to be able to merge the data into a proposal template I've created in Pages.
    The issue seems to be that Numbers for iPad removes header rows but Pages won't accept a Numbers document as a merge source unless it has header rows.
    Has anyone found a workaround for this?

    I was using Excel and Word for my small business. Then in 2007 I upgraded the whole office to Apple, began using Numbers for basic invoicing. Back then, the solution I found was to use CSV export to InDesign. A few days back I downloaded the 09 tryout and thought using mail merge would be easy.
    I get the false populating too: I assume it comes from empty records, as they do not overwrite field names. Somehow I don't think I'm going to go through 2 years of accounting records to reformat my spreadsheet, just so Pages can correctly work with data that is in fact correctly formatted.
    Also, there must be an option with the mail merge feature to choose which records I want to merge?!? The current solution (duplicating and erasing unwanted ones) is ridiculous, hiding unwanted rows in Numbers also doesn't work.
    As most of the new features in iWork 09 are cosmetic, this one would have been a reason to use iWork as a real office suite. Pity - not really worth the update.

  • Autofilling cells with existing data above in column? Numbers 2.0 did it, seems lost in 3.0

    Autofilling cells with existing data above in column? Numbers 2.0 did it, seems lost in 3.0
    Hello,
    Just upgraded to Numbers 3.0 and use it for keeping the books on my business. When I input my receipts at the end of the day in to Numbers, it used to autofill the cell with suggestions as I type using existing data that is present in the same column within the table.
    For example, I purchase parts from "Parts Store". Before instead of typing the entire phrase, I could just input the letter P and "Parts Store" would instantly pop up as a suggestion. I could hit enter and I would move on to the next cell. Made inputing data a lot easier.
    It worked in 2.0, but seems lost in 3.0. Is there a way to turn this on? I tried searching with no luck.
    Thanks for your help!
    AJ

    Hi AJ,
    Cells formatted as pop-up are designed for this purpose, to choose from a list of repeating values. Even less typing.  I like them better myself.  No typos.
    In the new Numbers hitting the spacebar doesn't activate a list so you have to go to the trackpad or mouse to make a pick from the list. It's very fast for me, but that depends on your setup and habits.
    SG

  • Is there a way to create address labels using data from a Numbers document?

    I'd like to print mailing labels for holiday cards and my wife created the list in a Numbers spreadsheet.
    Is there any way to export to Pages or some other label printing application?
    Thanks.

    Righty-ho. This is based on a spreadsheet like this with named columns in Numbers 3.5. (The rows must be consecutive - the script moves on as soon as it sees an empty row):
    With the spreadsheet open, run the following AppleScript. It will create a group called Christmas List in Contacts, and then import the name and address data from the spreadsheet, adding each person to the group:
    tell application "Numbers" to tell front document to tell active sheet to tell table 1
      set all_contacts to {}
      set row_count to count rows
      repeat with each_row from 2 to row_count
      set nu_contact to {}
      set first_name to value of cell each_row of column "First"
      if first_name is missing value then exit repeat
      copy first_name to end of nu_contact
      copy (value of cell each_row of column "Last") to end of nu_contact
      copy (value of cell each_row of column "Address1") to end of nu_contact
      copy (value of cell each_row of column "Address2") to end of nu_contact
      copy nu_contact to end of all_contacts
      end repeat
    end tell
    tell application "Contacts"
      set group_exists to (every group whose name is "Christmas List")
      if the result is {} then
      make new group at end of groups
      set name of the result to "Christmas List"
      save
      end if
      repeat with each_contact in all_contacts
      activate
      set nu_person to (make new person with properties {first name:item 1 of each_contact, last name:item 2 of each_contact})
      save
      make new address at end of addresses of nu_person with properties {street:item 3 of each_contact, city:item 4 of each_contact}
      save
      add nu_person to group "Christmas List"
      save
      end repeat
    end tell
    Contacts will look like this:
    With the Christmas List group selected in Contacts, go to the Print menu and choose the label format you want:
    Once the labels are printed, select all the names in the Christmas List Group and press the delete key:
    Click the middle "Delete" button and the contacts will be gone.You can then delete the Christmas List group itself.
    This can also be done in Numbers 09, but the script would have to be modified slightly.
    Hope it helps,
    H

  • Retrieve data from one numbers file and insert it in another?

    My goal is this:  I want to essentially link two numbers files.  I need data from several different tables in different sheets to automatically populate cells in a totally separate numbers file. 
    Here is why:  I have very detailed orders that all feed (link) to summary pages that are shared with clients.  I also need that same summary information, however, to feed to another file that calculates the margins.  The summary pages (sometimes dozens of pages) are critical for clients to see, but as you can imagine, the margins tables must never be seen by the clients. My preference is to have them be totally separate files so it eliminates the possibility of the margins table every being accidentally sent to clients.
    I'm wondering if applescript is the only or best way to accomplish this, or if there might be a more simple solution.
    Thanks in advance.
    Bob

    It may be done with a script but as I have no info about the structure of the document and about which values must be passed, I can't help you.
    More, I doubt that you are sending the Numbers document to your clients because this app isn't widely used.
    My guess is that you print the file in a PDF.
    The number of pages in the PDF will dramatically change if you include the sheets containing the margins so, it would be easy to check if you built a wrong document.
    To do the trick with a script, it seems that the easiest scheme would be:
    duplicate the original file
    add the columns required for the calculations
    create the formulas and insert them
    copy the relevant columns
    paste them in the original document.
    I'm reluctant to work this way. The risk of errors is too big.
    Here is an alternate scheme.
    In your document, change the layout so that columns which are supposed to be seen by clients are contiguous.
    This way, you may easily hide the columns which you want to keep 'secret'.
    I don't know the way you are working but with a bit of luck, once the formulas are built, maybe you have no need to unhide the 'margins columns'.
    Yvan KOENIG (VALLAURIS, France) mercredi 4 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : http://public.me.com/koenigyvan
    Please : Search for questions similar to your own before submitting them to the community
    For iWork's applications dedicated to iOS, go to :
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • Type of object from a database date/time column

    Hello everyone,
    I've got a concern regarding the way in which coldfusion is
    treating date/time columns in a database.
    In my opinion when I select a column that is let's say
    timestamp type - the object in a query is CF's date/time object.
    I've checked the query by getMetaData() and it looks like each
    column has its own database type (eq. varchar2, date, etc).
    My concern comes from a fact that I've heard that Coldfusion
    is treating the date-time columns in a database as strings and in
    each case it parses them. So the difference in a locale between a
    database server and a Coldfusion server may result in a wrong
    date/time object.
    Example:
    Locale of database EU: yyyy/mm/dd
    Locale of Coldfusion US: yyyy/dd/mm
    The date like 1st of February 2007 stored in a database would
    look then in Coldfusion like: 2nd of January 2007
    Could someone please confirm which version is valid?

    Johnny852 wrote:
    > In my opinion when I select a column that is let's say
    timestamp type - the
    > object in a query is CF's date/time object. I've checked
    the query by
    > getMetaData() and it looks like each column has its own
    database type (eq.
    > varchar2, date, etc).
    if you already know cf is returning a datetime from a
    datetime in the db, what's
    the question?
    > My concern comes from a fact that I've heard that
    Coldfusion is treating the
    "fact"? unless the datetime is stored as a string, that's not
    a "fact".
    > Example:
    > Locale of database EU: yyyy/mm/dd
    > Locale of Coldfusion US: yyyy/dd/mm
    btw neither of your example "locales" are in fact locales.
    > The date like 1st of February 2007 stored in a database
    would look then in
    > Coldfusion like: 2nd of January 2007
    if you pass a numeric string representation (2/1/2007 for
    instance) of a date to
    cf, it will be interpreted via the cf server's "default"
    local (ie en_US,
    month/day/year) unless you use one of the LS functions like
    LSParseDateTime() &
    specifically set the the locale (like setLocale("th_TH")) or
    make the date
    non-ambiguous (2-feb-2007) or build the date yourself from
    user input using
    createDate() or createDateTime(). you just need to convert
    the user's string
    representation to a valid cf datetime object (or i guess
    force to database to
    follow the user's locale date mask).

Maybe you are looking for