Stop Numbers form auto-formatting imported data

I use a program to track my time, and it exports as a tab-delimited text file. This should be perfect, just import the data into a Numbers table and bada-bing, right?
Unfortunately, Numbers is taking it upon itself to auto-format the data as it comes in. For example, there are 2 columns in the report that get auto-formatted. The event start column is exported in the form: dd/mm/yyyy hh:mm, and this is handled fine. The duration column is exported in the form: hh:mm, yet is auto formatted as dd/mm/yyyy hh:mm by Numbers.
Does anyone know a way to stop Numbers from doing this? My only quick workaround is to import the report in Excel first, then open the Excel xsls file in Numbers (and at that point, why bother using Numbers at all?).
HELP!

No need to use two applications!
--[SCRIPT dateTime2duration.app]
Enregistrer le script en tant que Script, Application ou Progiciel : dateTime2duration.xxx
déplacer l'application créée dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
Sélectionner les cellules à convertir
menu Scripts > Numbers > dateTime2duration
Le script insère les durées correspondantes.
--=====
L'aide du Finder explique:
L'Utilitaire AppleScript permet d'activer le Menu des scripts :
Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
Cochez la case "Afficher le menu des scripts dans la barre de menus".
+++++++
Save the script as a Script, an Application or an Application Bundle: dateTime2duration.xxx
Move the newly created application into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
Select cells to convert.
menu Scripts > Numbers > dateTime2durationNumbers
The script insert the corresponding durations.
--=====
The Finder's Help explains:
To make the Script menu appear:
Open the AppleScript utility located in Applications/AppleScript.
Select the "Show Script Menu in menu bar" checkbox.
--=====
Yvan KOENIG (Vallauris FRANCE)
14 mai 2009
--=====
on run
set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
set localOffset to (time to GMT)
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
repeat with x from colNum1 to colNum2
tell column x
repeat with y from rowNum1 to rowNum2
try
set theDate to (value of cell y)
if class of theDate is date then
tell (theDate - localOffset)
set {hh, mm, ss} to {(its hours) as text, its minutes, its seconds}
end tell
set value of cell y to hh & "h" & mm & "m" & ss & "s"
end if -- class…
end try
end repeat -- y
end tell -- column x
end repeat -- x
end tell -- Numbers …
end run
--=====
on getSelParams()
local r_Name, t_Name, s_Name, d_Name, col_Num1, row_Num1, col_Num2, row_Num2
set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
if r_Name is missing value then
if my parleAnglais() then
error "No selected cells"
else
error "Il n'y a pas de cellule sélectionnée !"
end if
end if
set two_Names to my decoupe(r_Name, ":")
set {row_Num1, col_Num1} to my decipher(item 1 of two_Names, d_Name, s_Name, t_Name)
if item 2 of two_Names = item 1 of two_Names then
set {row_Num2, col_Num2} to {row_Num1, col_Num1}
else
set {row_Num2, col_Num2} to my decipher(item 2 of two_Names, d_Name, s_Name, t_Name)
end if
return {d_Name, s_Name, t_Name, r_Name, row_Num1, col_Num1, row_Num2, col_Num2}
end getSelParams
--=====
on decipher(n, d, s, t)
tell application "Numbers" to tell document d to tell sheet s to tell table t to return {address of row of cell n, address of column of cell n}
end decipher
--=====
set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
on getSelection()
local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
tell application "Numbers" to tell document 1
repeat with i from 1 to the count of sheets
tell sheet i
set x to the count of tables
if x > 0 then
repeat with y from 1 to x
try
(selection range of table y) as text
on error errMsg number errNum
set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
return {theDoc, theSheet, theTable, theRange}
end try
end repeat -- y
end if -- x>0
end tell -- sheet
end repeat -- i
end tell -- document
return {missing value, missing value, missing value, missing value}
end getSelection
--=====
on decoupe(t, d)
local l
set AppleScript's text item delimiters to d
set l to text items of t
set AppleScript's text item delimiters to ""
return l
end decoupe
--=====
on parleAnglais()
local z
try
tell application "Numbers" to set z to localized string "Cancel"
on error
set z to "Cancel"
end try
return (z is not "Annuler")
end parleAnglais
--=====
--[/SCRIPT]
Yvan KOENIG (from FRANCE jeudi 14 mai 2009 14:01:29)

Similar Messages

  • How do I stop Numbers from changing my number data into a date?

    I am trying to create a chart and some of the data ranges from 0-4, 5-9, 10-14, etc...
    When I enter 5-9 on a field, it automatically changes to May 9, 2012. Any help is appreciated.

    L,
    Your ranges need to be in a Header Column, and your values in the second column, a body column.
    Before you begin entering your ranges, set the Format of the Header Column to Text.
    That will prevent the "5-9" entry from converting to a date.
    Jerry

  • Importing data into dynamic form

    I have not yet had a chance to work with LiveCycle, and I have been given a project which I need to determine if LiveCycle would be the correct solution. The client originally wanted this to be a Microsoft Word form, but I doubt that I can meet the requirements using Word.
    I need to design a form which a user can enter multiple line items either manually, or by importing existing data. The data itself would be about 40-50 distinct pieces of data, in a block of  several sections and multiple lines (i.e Name, Address block, Phone/fax/email, contact and comment section, etc) and would be a combination of text fields and checkboxes. There would be 2-3 of these blocks per page (with a static header/footer), plus a cover page with data fields for the organization using the form.
    I know that I could create this type of dynamic form in LiveCycle to be entered manually, but I don’t know what options, if any, I would have in giving the user the ability to import existing data from an unknown source (could be a text file, a local or hosted database, excel, etc.).
    My questions are about the feasibility of LiveCycle for this project:
    Can data be imported from a data source the user chooses? Are there any limitations to what kinds of data sources can be used? Would I need to program a custom function to allow the user to match the proper fields for the import, or is there a built in function to handle this?
    Would there be any platform/application limitations? Can the form be used with Reader on a desktop computer (Mac or PC), or on a tablet (and if so, is a specific app necessary instead of the default app)?
    Are there any other foreseeable issues I may have to deal with?

    Thanks for the info. A few followup questions if you don't mind:
    1. Needs to configure an ODBC-connection on every system it is used.
    This form will be sent to our client, and they will send it to their customers. Can the connection setup be scripted, or is it simple enough that a generic set of instruction can be given to the end user to allow them to setup the connection and map their fields to the form's content easily?
    2. Requires Acrobat or a reader-enabled from to use in Reader. Data is automatically populated in the form fields. Only xml files for import allowed. Allows to use XSLT to format imported data.
    I doubt that the end user would have their data in a compatible XML format, so this option may not be necessary. Is Reader-enabling a form in LiveCycle comparable to the process in Acrobat? I have heard LiveCycle Enterprise is very expensive and required for certain functions, does this apply here? Does this require a specific server setup for these forms?
    3. Difficult scripting to update field values automatically. Works in Reader and Acrobat.
    The data would not need to be updated automatically, just pull current data into the form. This would be a one-way operation, there would be no need to update the data source from values within the form. I would still need to give the user a way to map their fields to the form.
    Are you aware of any tutorials or example files that would help give me a start? I had a brief look at the LiveCycle Designer ES2 Scripting Reference, but I"m not sure which objects to look into.
    None of these methods will work on mobile devices as there is currently no support of XFA in Reader Mobile.
    Good to know. The same is probably true if I were to create the form in Word/Office.

  • Pulling my hair out: Change format from date to number format?

    I was recently sent a formatted Excel spreadsheet in which to enter my own numbers.  The format is date and duration, but the last column is the total number of hours and minutes converted into decimals, e.g. 3hrs. 30mins. = 3.5 hours.
    It was going fine until last night when I tried to enter 5:73 as a number, not a duration, but Numbers keeps changing it to 6m 13s.  I've tried changing the format from Duration to Number but although the cell will say 0:00, when I enter the number 5:73 it automatically switches back.
    The weird thing is that it's only happening on about one-third of the cells.  I even cut-and-pasted a section of the spreadsheet that didn't have this problem, cleared the contents and then typed my info into the same lines and rows and it's still doing the same thing.
    How can I see the hidden formatting in Numbers cells to see if I can figure what needs to be changed?
    Thank you.

    Hi Jane,
    dragging on bottom right corner but all that does is increase the range, not the size of the actual cell itself.
    Hover the cursor over the right of a column (Column B in this example) until the cursor becomes a cross with arrows pointing East and West. Drag right to widen the column.
    Or use the Format Panel > Table > Row & Column Size
    (You may have to drag the panel up to see this)
    I really miss in Numbers is being able to edit cell contents in a formula bar.
    Here is the formula bar in Numbers 3.2 after clicking twice on a cell
    The formula bar is moveable. Hover over the left of the bar until the cursor changes to a 'hand' and you can drag it.
    Resize the formula bar by hovering over any edge and drag
    Tricky with a trackpad, easier with a mouse .
    Also, the cell contents appear at bottom left of the Numbers window
    If you prefer Numbers 2.3, I agree it is much more user-friendly version.
    Regards,
    Ian.

  • Hi ... Is there a way to import data from fillable form pdf to iwork numbers ???

    Can somebody tell me ., is there a way to import data from fillable form PDF to iwork numbers or do i need to write a code to do this ???

    This may help but I have never used PDF forms:
    http://helpx.adobe.com/acrobat/kb/acrobat-forms-form-data-web.html

  • How do i keep only the name of a month in a cell in Numbers and not have it auto fill the date and time?

    how do i keep only the name of a month in a cell in Numbers and not have it auto fill the date and time?

    Hi JN and Barry,
    Barry wrote:
    The second case may not be included in the available D&T formats in Numbers 3
    For my region, the Date & Time data formats include month.
    The Date Pop-Up
    This may not be the case for all regions.
    Remember that the month is only the display, and the Full Date & Time is still there. If I change the format to reveal what is behind the curtain:
    Regards,
    Ian.

  • Can't import data-only Excel doc into Numbers 2013

    This is a disaster.
    I just downloaded two .xlsx Excel documents, and attempted to open them in the new (2013) Numbers.
    These were the simplest possible documents. 101 rows, 17 colmns, no header/side labels. I don't think it included any calculations at all. My coworker used Excel simply to format her data as a table.
    The imported Excel table is almost completely blank. A column of dates, and a couple of columns of literal numbers survived. It lost all of the text. I'm sure the column widths were lost. If you try to edit a cell, the editing bar at the bottom does nothing; it has no content, it does not respond to keys or clicks, it stays blank and unresponsive when you select a cell. If you type an = in a cell, there is no expression builder, and clicking in other cells to add them to a calculation merely changes the selection to those cells.
    In iWork 2009, the apps posted a notice when they couldn't make a 100% faithful import — and in my usage, those were for missing fonts, not absent functionality. No such notice here.
    My question:
    Is there any way I can read at least a spreadsheet that makes no use of Excel features?
    Further remark, but not a question
    I had heard that the days were gone when people had to install Office because that's what they use at work. I managed to get away without using Office from 1989 to this day. I think it's ironic that at the moment Microsoft lost its lock on productivity tools, I am now forced to install Office.

    Forgive me, this is not practical advice.
    I installed Numbers 3. From the Mac App Store, there being no other way. As is its practice, MAS, wipes out every trace of previous versions of the software it replaces. Numbers 2.3 simply does not exist on my machine.
    Yes, I have Time Machine backups. Have you tried drag-installing iWorks applications? They will not run. They rely on system-level frameworks that I am not confident I can dig out of Time Machine.
    No, I do not have my original distribution media for iWorks. I bought iWorks nearly six years ago, when computers still had optical drives. It happens I have a couple of 3.5" floppies from the first developer-tools releases in 1984, but those are relics. I don't have the DVD (or CD?).
    If I did have the DVD, it would not contain version 2.3. 2.3 came from an Apple update I downloaded from the support site five years ago. I challenge you to give me a live URL for that updater.
    P.S. Perhaps I am oversensitive, but I think the implication is gratuitous, that only a fancy-pants rocket scientist would want to import a spreadsheet that contains 100 lines of dates, text, and numbers in 17 columns.
    When one double-clicks an .xlsx file, Numbers opens it. Import of Excel files is not an advanced future direction. It is an intended function of the application today. Numbers responds to double-clicking .xlsx files today. If it were not an intended function, it would not attempt to open the file; or at least it would post some kind of alert that the operation is not yet implemented.

  • How do I stop auto update of date/time

    Hi,
    I'm starting to despair, a while ago I stupidly clicked on auto update/time on a letter I was working on, it seemed like a good idea at the time. But now whenever I open any letter the date is automatically updated which is a major problem as I am losing the references to when I actually wrote and therefore sent these letters. I'm too scared to open letters now because I'll lose this important piece of information.
    Any help appreciated!
    Thanks
    Nathalie

    Next time, don't use the Pages 's insert date_time feature.
    Use the one delivered in the free WordService from Devon Technologies.
    It always inserts a fixed date_time.
    But I have wondering about your problem.
    The Pages User Guide states:
    • To add and format the date and time, place the insertion point where you want the value to appear, and then choose Insert > Date & Time.
    To change the date and time format, Control-click the date and time value, choose Edit Date & Time, and then choose a date and time format from the pop-up menu. *If you want the document to always show the current date and time, select “Automatically update on open.”*
    Which, if I understand well means that the default setting is that the inserted date_time is a frozen (fixed) one.
    Yvan KOENIG (VALLAURIS, France) mardi 30 mars 2010 16:29:17

  • Import data into a form in Acrobat Pro X

    Have followed directions on importing data in text format into a form in Acrobat Pro X . Does not work. Is it possible to import a large amount of data into a form and have multiple forms created? Very frustrating and disappointing.

    Here's a recent topic that discusses this type of thing: http://forums.adobe.com/message/3397600
    Note that some of the code that was posted isn't correct, but you will see the general approach outlined. It does require some JavaScript programming. Have you done any before?

  • Import data into Numbers from web?

    Is there a way to import data from the internet directly into Numbers without programming/writing an applescript or using a different program?
    Can you do this while using only Numbers and the web?

    And how is Numbers to know how to extract the exact data you want from an external source, unless that source is in a format familiar to Numbers, which HTML isn't? For an automated process like this, you will need scripting, and that means learning to program/understand scripts.
    For example, here's some HTML code from a web page that includes volume data for one symbol:
    <td class="mbi_left" align="left" width="35%">BM&FBOVESPA SA</td><td align="right" width="10%">12.37</td><td align="right" width="10%">0.22</td><td align="right" width="10%">1.81</td><td align="right" width="20%">11,611,700</td><td align="right" width="15%">09/18</td>
    Numbers can't interpret this without being told exactly what to extract. Also, Numbers doesn't go out to the web on its own at fixed intervals (as I suspect you may want) without a program telling it what to do. This is just a spreadsheet after all.

  • Imovie 09 How do I stop Imovie from auto importing video from iphoto

    Imovie 09 How do I stop Imovie from auto importing video from iphoto.
    Hi I've done a lot of searches on how to do this but no answers found.
    Imovie is beginning to become really slow because of the large number of video's. It takes 3 minutes to startup. Editing is sometimes slow lot's of spinning beach balls e.t.c.
    I would like to only import the video I want to edit and hopefully get a quicker Imovie in the process.
    My Iphoto library is about 95 Gbyte in size.
    My mac has 4 gb ram and I use the internal disk.
    Any other ways to work with Imovie/Iphoto are also welcome.
    regards

    I won't get iMovie 9 till Tuesday, but based on what you said I may need to take some precautions. One reason I didn't like iMovie 8 is because it automatically imported everything in iPhoto library. What I'm going to do is create a new iPhoto library before importing the photos/videos from the camera. Or if you already have it in your main iPhoto library copy only the photos you'll use in your iMovie 9 project to the new library. Then start iPhoto while pressing the option key which will allow you to select the new iPhoto library you have created. Then I suppose that when you start iMovie 9 it will automatically import only the photos/videos from the new library.

  • How do I convert an excel (2008) document to Numbers?  When I drag the Excel document onto the Numbers icon I get, "Import error.  The file format is invalid"

    How can I convert an Excel (2008) document to Numbers.  When I drag the Excel document onto the Numbers icon I get, "Import error.  The file format is invalid.

    That extension identifies the most current Excel file format, a format that can be opened by Numbers '09 (and by Numbers '08).
    A check with Numbers '09 shows it capable of opening .xlsx files when right-clicked (and Numbers chose as the application to open, when double-clicked (if Numbers has been set as the default application to open this type of file, or when dragged to the Numbers icon in the dock.
    I see two possibilities for Numbers inability to open it and the message you receive:
    1. The file is not actually an Excel file, and the sender has added the .xlsx extension to the filename manually.
    2. The file is an Excel file, but has somehow been corrupted.
    Have you tried opening the file with a different application? The open source Office suites, OpenOffice.org, LibreOffice and NeoOffice can also open .xlsx files. If they're unable to open this one, that would point toward the file itself being faulty. You can download these applications from their rspective websites, linked in the names above. All request a donation to support future development, but only Neo requires one to have been made recently, and that only for the current release (which won't be necessary to open .xlsx files).
    Regards,
    Barry

  • Format of date and numbers

    Hi,
    in Italy the format of date is DD/MM/YYYY e the formato of numbers is NNN,DD (DD means Decimal).
    I use Excel for IPAD but when I write for instance 28/03/2015 the field shows 03/28/2015, the same problem is for numbers where the comma and the dot are inverted.
    How do I change the format of date and numbers?
    Thank you in advance.
    Max

    The general format of the date is tied to the language...use US english, get US date formatting.
    You may want to poke around in excel's settings. I know the desktop version allows you to alter the date formatting, but I'm not sure if the iPad app has that. Look for 'cell formatting' in the settings and see if it's alterable.
    If not, you can try to make your template on a PC, then put that excel onto your iPad and see if it honors the cell formatting already in place.

  • SSIS 2012 is intermittently failing with below "Invalid date format" while importing data from a source table into a Destination table with same exact schema.

    We migrated Packages from SSIS 2008 to 2012. The Package is working fine in all the environments except in one of our environment.
    SSIS 2012 is intermittently failing with below error while importing data from a source table into a Destination table with same exact schema.
    Error: 2014-01-28 15:52:05.19
       Code: 0x80004005
       Source: xxxxxxxx SSIS.Pipeline
       Description: Unspecified error
    End Error
    Error: 2014-01-28 15:52:05.19
       Code: 0xC0202009
       Source: Process xxxxxx Load TableName [48]
       Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Invalid date format".
    End Error
    Error: 2014-01-28 15:52:05.19
       Code: 0xC020901C
       Source: Process xxxxxxxx Load TableName [48]
       Description: There was an error with Load TableName.Inputs[OLE DB Destination Input].Columns[Updated] on Load TableName.Inputs[OLE DB Destination Input]. The column status returned was: "Conversion failed because the data value overflowed
    the specified type.".
    End Error
    But when we reorder the column in "Updated" in Destination table, the package is importing data successfully.
    This looks like bug to me, Any suggestion?

    Hi Mohideen,
    Based on my research, the issue might be related to one of the following factors:
    Memory pressure. Check there is a memory challenge when the issue occurs. In addition, if the package runs in 32-bit runtime on the specific server, use the 64-bit runtime instead.
    A known issue with SQL Native Client. As a workaround, use .NET data provider instead of SNAC.
    Hope this helps.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Error while importing data from excel to forms

    Hi,
    I am working on Oracle forms 10g, and I'm supposed to import data from excel sheet to forms.
    While the user enters the data,sometimes after entering a particular word he/she hits the alt+enter button.
    As a result the data appears in two lines in a single row
    So,when I try to import the data it's not importing the data in a right manner.
    S0,I want to replace this linefeed and carry with five spaces.
    Eg:The user instead of entering Geekpedia enters Geek
    pedia
    in the excel sheet.
    Now when I import this in the forms I want it to be imported as Geek Pedia.(5 spaces between Geek and pedia).

    Maybe you can consider save excel as .csv files and then you can load them as flatfiles to external table in OWB.

Maybe you are looking for