Merge text formatted columns to single date column
Hi folks,
Not the most experienced of spreadsheet users, so hoping this is a quick fix:
I need to combine text data from columns A (Year), B (Month) & C (Date) into a new column as a date. I've tried a few combinations of =DATE(C2,B2,A2), but can't pinpoint the proper merge term.
I'd also like to know how to repeat the function down through several thousand rows without having to repeat the exercise for each row...
Many thanks,
Matt
Do you know that Apple designed two well done resources PDFs which every user may download from the Help Menu ?
There are :
Numbers User Guide
iWork Formulas and Functions User Guide.
In the second one we may see:
Your problem is that you used the reverse parameters ordering.
Yvan KOENIG (VALLAURIS, France) mercredi 14 avril 2010 18:32:27
Similar Messages
-
When I save a page under text format, the text is limited to 80 columns only, how to extend to 120 columns (or more)?
HI K,
This is the Numbers (Mac OS) forum. Your question about Numbers for iOS will probably get better results posting in the iWork for iOS area. the link will take you there.
Regards,
Barry -
Why oracle text index column taking long time
why oracle text index column is taking long time to return result.I created text index on a column if I run the query on a single table result is very fast.If I join table with other table (10 records only )
it is taking long time but in explain plan it is searching by index only.
I created this index for searching a varchar2 column,the data is comma seperated values like ( UK,US,IT,BR) and the table having records 20 lakhs.Normally if I query with like operater
( like '%US%' ) it is taking full table scan because I am using '%' both sides. Please help me on this regard how to search the data with less time. Here is may sample code and explain plan.
SQL*Plus: Release 9.2.0.1.0 - Production on Wed Jan 28 16:54:22 2009
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> set timing on
SQL> set linesize 180
SQL> explain plan for SELECT T.esongid FROM (SELECT A.ESONGID FROM wcmedeco.EDECO_ESONGS_TERR_CTRY
A WHERE CONTAINS(A.TERR_CTRY_NAMES,'US')>0
2 GROUP BY A.ESONGID)K,T
3 WHERE K.ESONGID=T.ESONGID;
Explained.
Elapsed: 00:00:00.01
SQL> select *from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
| Id | Operation | Name | Rows | Bytes | Cost |
| 0 | SELECT STATEMENT | | 1 | 26 | 4 |
| 1 | NESTED LOOPS | | 1 | 26 | 4 |
| 2 | VIEW | | 1 | 13 | 4 |
| 3 | SORT GROUP BY | | 1 | 89 | 4 |
| 4 | TABLE ACCESS BY INDEX ROWID| EDECO_ESONGS_TERR_CTRY | 1 | 89 | 2 |
| 5 | DOMAIN INDEX | IDX_TERR_CTRY_NAMES | | | 0 |
| 6 | INDEX RANGE SCAN | IDX_ESONGID_T | 1 | 13 | 1 |
PLAN_TABLE_OUTPUT
Note: cpu costing is off, 'PLAN_TABLE' is old version
14 rows selected.
Elapsed: 00:00:00.00
SQL> Regards,
RajasekharYou have not formatted your code properly so we cannot see the query you're executing. Please put some line breaks in.
Secondly, how fresh are the statistics on those tables? Are you really returning one record out of twenty million?
Cheers, APC
blog: http://radiofreetooting.blogspot.com -
Convert mm/dd/yyyy text format to date format
I imported a csv file and the date column is in text format. How do I convert it from m/d/yyyy text format to yyyy-mm-dd DATE format in Numbers v 3.1?
Thanks for any help you can give!UPDATE: I found that your formula didnt produce the correct result
It changed mm/dd/yyyy to yyyy/dd/mm — rather than the desired yyyy/mm/dd
By hacking at it, I found that changing the D column formulas around fixed this.
Your original function:
D2=RIGHT(A2,4)&"-"&MID(A2, B2+1, C2−B2−1)&"-"&LEFT(A2,B2−1)
Changed:
D2 =RIGHT(A2,4)&"-"&LEFT(A2,B2−1)&"-"&+MID(A2, B2+1, C2−B2−1) -
Can't see HTML and Custom text format under data format tab in obiee.
Hi,
I want to add a java script to my report but I can't see HTML/Custom text format option under Data Format Tab--->"Treat Text as" menu.
My report is a union report.
For data column and numeric columns i can see custom option available but for text columns it is not visisble.
Any idea why it is not showing and what should be done here.
Any pointers are welcome.
Please help,it is really urgent.
Thank in advance!
Edited by: 810008 on May 18, 2011 10:03 PMHi,
Select text column (varchar column) -> Treat Text as -> custom text format ->Remove @ (default) -> add [html]<script>sometext(‘@’)</script> followed by your javascript
for eg:
[html]<script>buildGoogleChart(‘@’)</script> <head> <script type="text/javascript"> function show_alert() { alert("Hello! I am an alert box!"); } </script> </head> <body> <input type="button" onclick="show_alert()" value="Show alert box" /> </body> </html>
hope helps u.........
cheers,
Aravind -
Is there a Numbers equivalent to Excel's "Text to Columns"?
I am new to Numbers 09. In Excel I often need to take large amounts of ASCII text data, with hundreds or even thousands of line, paste the data into Column A, then use the "Text to Columns" utility to parse the data into separate columns for further manipulation, calculation, or graphing. Is there a similar process available in Numbers?
I found a way to accomplish this, assuming you also have iWork “Pages” available.
Paste your delimited text into a blank"Pages" document. Do a Find / Replace on your delimiting character (comma or whatever) and replace it with a tab character.
To do this, use Edit > Find > Find... and choose “Advanced” (at the top of the pop-up). Your delimiter goes in the Find text box. Then use the “Insert” pull-down menu to set the Replace text to “Tab.” It puts a little arrow symbol into the text box.
Your original text probably has line breaks already. But if it has a separate delimiter instead, you can convert them into the required line breaks in the same way, using Find/Replace to "Paragraph Break.". Hopefully the same delimiter is not used for both row and column breaks in your data.
Now copy/paste that text from Pages into a single cell in Numbers and it should break it into columns and rows.
MS Office for Mac isn’t that expensive. After this ordeal I’ve ordered a copy. -
Excel date to Numbers text format troubles
I've been sent an Excel .xls document which I'm opening in Numbers '09 (2.1).
The spreadsheet has a date column which I need to be in text format as dd/mm/yyyy. I expected the original Excel document to have the dates already in text format but Numbers says the fields are 'Custom' and shows the dates in US format: 11/04/2011, even although my Mac is set to UK format. No matter, I can set the cells to text format, however that results in the date being shown as 04/11/00002011.
Where did those extra zeros in the year come from!?
How can I reformat the dates to the dd/mm/yyyy format as text?
I've tried a couple of formula to create a new column
=Year(A1)
for example and I think I could recreate the date like that, but the cell must be text format.
DGHere is the script required to peek dates from Numbers then poke them in Numbers.
--{code}
Apply this script to a Numbers table containing :
B2 : 1943/12/31 23:59
B3 : 1789/07/14
B4 : 2010/01/01 00:12
B5 : = NOW()
set myTimeZone to (do shell script ("/usr/bin/perl -le 'print( readlink(\"/etc/localtime\") =~m{zoneinfo/(.*)} )' ")) -- Perl code by Mark J. Reed.
tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
repeat with r from 2 to 5
set thenumbersdate to value of cell r of column 2
set value of cell r of column 3 to thenumbersdate as text
set thenumbersdate to my TZtoGMT(thenumbersdate, myTimeZone)
tell cell r of column 4
set format to text
set value to thenumbersdate as text
end tell
tell cell r of column 5
set format to text
set value to short date string of thenumbersdate
end tell
end repeat
end tell
--=====
set myTimeZone to (do shell script ("/usr/bin/perl -le 'print( readlink(\"/etc/localtime\") =~m{zoneinfo/(.*)} )' ")) -- Perl code by Mark J. Reed.
set thenumbersdate to my TZtoGMT(thenumbersdate, myTimeZone)
Handlers by Nigel GARVEY
http://macscripter.net/viewtopic.php?id=36449
(* Convert an ISO-format date string to an AppleScript date. *)
on isotToDate(isot)
set n to (text 1 thru 8 of isot) as integer
set ASDate to (current date)
tell ASDate to set {day, year, its month, day} to {1, n div 10000, n mod 10000 div 100, n mod 100}
if ((count isot) > 8) then
set n to (text 10 thru 15 of isot) as integer
set ASDate's time to n div 10000 * hours + n mod 10000 div 100 * minutes + n mod 100
end if
return ASDate
end isotToDate
--=====
(* Transpose an AppleScript date/time from the given time zone to GMT. *)
on TZtoGMT(TZDate, TZ)
-- The difference between TZDate when it's local and the GMT date we want is usually
-- the same as the difference between the local date when TZDate is GMT and TZDate itself …
set GMTDate to TZDate - (GMTtoTZ(TZDate, TZ) - TZDate)
-- … but not around the time the clocks go forward. If the GMT obtained doesn't reciprocate to TZDate,
-- shift to a nearby local date where the above DOES work, get a new GMT, unshift it by the same amount.
set testDate to GMTtoTZ(GMTDate, TZ)
if (testDate is not TZDate) then
if (GMTDate > testDate) then -- "Clocks forward" is towards GMT.
set shift to GMTDate - testDate
else -- "Clocks forward" is away from GMT.
set shift to -days
end if
set nearbyDate to TZDate + shift
set GMTDate to nearbyDate - (GMTtoTZ(nearbyDate, TZ) - nearbyDate) - shift
end if
return GMTDate
end TZtoGMT
--=====
(* Transpose an AppleScript date/time from GMT to the given time zone. *)
on GMTtoTZ(GMTDate, TZ)
-- Subtract date "Thursday 1 January 1970 00:00:00" from the GMT date. Result in seconds, as text.
copy GMTDate to date19700101
tell date19700101 to set {year, its month, day, time} to {1970, 1, 1, 0}
set eraTime to (GMTDate - date19700101)
if (eraTime > 99999999) then
set eraTime to (eraTime div 100000000 as text) & text 2 thru 9 of (100000000 + eraTime mod 100000000 as integer as text)
else if (eraTime < -99999999) then
set eraTime to (eraTime div 100000000 as text) & text 3 thru 10 of (-100000000 + eraTime mod 100000000 as integer as text)
else
set eraTime to eraTime as text
end if
return isotToDate(do shell script ("TZ='" & TZ & "' /bin/date -r " & eraTime & " +%Y%m%dT%H%M%S"))
end GMTtoTZ
--=====
--{code}
Yvan KOENIG (VALLAURIS, France) samedi 5 novembre 2011 14:14:26
iMac 21”5, i7, 2.8 GHz, 4 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 -
I imported a tab delineated file into numbers and it put it into 1 column. The manual shows a menu bar Item "Divide text into columns" that doesn't appear on my tool bar. What now?
Mac,
Got it. Thanks for the explicit reference, that really helps.
I think the User Guide is a bit misleading there. The Guide is referring to the text in a Text Box and how you can format the box to display text in multiple columns, as in a newspaper page.
This feature doesn't parse your data into table columns, sorry. If you want to describe your data, we may be able to help with that.
It may be simple. Let's try the simple approach. If you Select and Copy the tab delimited data, then switch to a Numbers Table, click ONCE in a table cell and Command-V. Your data should spread across columns. If you click twice in a cell all your data will go into one column when you paste.
Jerry -
Run time data binding via FormCalc/JavaScript+wrong text formating
Hello Everybody
I need to print a text block with company details depending on company code (different details for different codes). I tried to use this code for event "calculate":
if ($record.LS_HEADER.BUKRS == "1000") then
$ = $record.COMP_DETAILS_1000
elseif ($record.LS_HEADER.BUKRS == "1000") then
$ = $record.COMP_DETAILS_2000
endif
$record.COMP_DETAILS_1000, $record.COMP_DETAILS_2000 are elements from the form context which are linked to textmodules.
This code works and it prints correct textmodules for different company codes. But the printed text is not formated like text in the textmodules. The most important thing here is that these texts are always printed as a single long string and I need paragraphs like in the textmodules. It's a problem... If I use a statical binding (without FormCalc programming) the text modules will be printed with correct formating.
Using of checkbox "Allow Multiline Lines" hasn't helped here...
Have you any idea how should I do the run time data binding?
Thank you very much in advance!Hello,
the important part is "If I use a statical binding (without FormCalc programming) the text modules will be printed with correct formating." That means you can get the text in the shape you want. Just do that. Get all the texts. Next use the JS/FC scripting to hide all but one text. You get only one text to display and you use static binding to get the proper text format.
Hope this helps, Otto -
Mysterious formatting columns table
Hi all,
i don't post a problem, but a curiosity. I'm managing a Oracle BI environment developed by others, so many aspects are unknown for me. I've observed that if i make an Answers request dragging and dropping any columns from my subject area, any of them are still formatted. In detail, if i drag and drop a column that contains double values it is formatted, otherwise if (from same table) i drag and drop a column that contains integer values it isn't formatted. All columns have same class "TableHdg".
I ask me, where is specified this behaviour? In css style? But how a css style can distinguish between a double and integer values to decide how formatting columns?
Thanks
Giancarlo
Edited by: 832596 on 15-apr-2011 3.47Hi,
thanks for your reply. I've formatted hundreds of tables but i've never noted these options. Incredible!!!!!!!!!. Can you tell me, when i click on "Save as the system-wide for this data type" (for example), where Oracle BI saves formatting options? In a css file? What?
Thanks
Giancarlo -
How to wrap the text in column headers?
Hi Friends,
Can anyone please suggest how to wrap the text in column headers of a Java WebDynpro table?
I believe that caption is the only UI element that a column header can have and it does not allow wrapping of the text.
My original requirement is as follows,
In a table I need to dynamically set the width of the columns according to the width configured by the user in some other view. All the columns of the table are dynamically rendered.
Now what happens is when the user sets the width of the column to a rather low value, say 15 pixels, then the column is displayed like
Supplier Catalog Name
Sheila
Catalog
Name
Dropdown
As you can see it looks rather odd.
Supplier Catalog Name is the header of the column and I use IWDCaption for header.
Sheila Catalog Name Dropdown is the value of a particular row at the specified column. I am using a TextView as the TableCellEditor.
I think what is happening here is that the framework wraps the text in the TextView according to the width specified (15px) and then the column width is extended because it can not accommodate the text (Supplier Catalog Name ) of the column header.
We are using SAP NetWeaver Development Studio 7.0.12 as the IDE.
I searched some forums and many people have suggested using scrollable columns but I don't understand how it will help in wrapping the text in a column header.
Any help would be of great advantage.
Thanks
AmitHi Deepti,
Thanks a lot for the answer but the option that you have specified does not wrap the text. Instead it truncates the text being displayed and only the substring of the text which could be displayed in the given pixels is displayed.
I need to show the whole text wrapped (Meaning if the width of the column is not sufficient then the text goes into the next line).
Ayyapparaj,
Thanks to you too for an helpful answer. It seems that the Netweaver has finally come up with a way to wrap the text in the column headers but as Manoj pointed out, I do not see the property headerTextWrapping for a table column, Can you please specify which version of netweaver supports it?
We are using SAP NetWeaver Development Studio 7.0.12 as the IDE.
Thanks
Amit Kapoor -
Run-Time error 1004 when VBA run Text-To-Column
Expert,
I got error message 1004 said "Excel can convert only column at a time, The range can be many rows tall but no more than one column wide, try again by selecting cells in one column only. my VBA code is this. If I copy B5 only, the Text-To-Column
is working. can you help ?
Sheets("Sheet1").Range("B5:E300").Copy
Sheets("Sheet2").Select
Range("A2:E300").PasteSpecial xlPasteAll
Columns("B:M").Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Application.CutCopyMode = False
Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=False, Comma:=True, Space:=False, Other:=False, FieldInfo _
:=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1), Array(5, 1), Array(6, 1), _
Array(7, 1), Array(8, 1), Array(9, 1), Array(10, 1), Array(11, 1), Array(12, 1)), _
TrailingMinusNumbers:=True
Thanks
James LiangRe: text to columns error
You have four columns selected when you call text to columns, so ...
Replace the word "Selection" with Range("A1:A300") so it looks like...
Range("A1:A300").TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
The above is my guess as to what you want to work with; I didn't experiment with the rest of the code.
Jim Cone
Portland, Oregon USA
free & commercial excel programs (n/a xl2013)
https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2 -
How to get text from column labels in pivot using javascript?
Hi, is it possible to get text from column labels in pivot using javascript? How?
You don't get a response from a URLRequest, you get the response from a URLLoader:
View this sample page for URLRequest and URLLoader and I think it'll make more sense to you.
http://help.adobe.com/en_US/air/reference/html/flash/net/URLRequest.html#URLRequest() -
Hi,
I wanted to save data acquired from NI-DAQ (for example, NI 9234) in a file using the DAQ-mx ANSI C Code. The response I got was as follows:-
One way to do it is with TDMS logging. DAQmx comes with functions designed to log to a TDMS file. This is a special file type that is used for collecting data in a logical format. It can be displayed in a TDMS viewer where data is separated into groups and channels. NI-DAQmx provides examples for how to log to TDMS. Look at the TDMS examples in the C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage directory.
However, now I want to know is there a way that using that same C code, can we save the data in a .txt file format (Text File) instead of a TDMS file? We actually want to access that file through MATLAB (that's why we want to save it in text format).
Also on an other note, is there a way we can access & open TDMS files by MATLAB?
Thanks,
Sauvik Das GuptaThere's a way you can access TDMS files in MATLAB:
http://zone.ni.com/devzone/cda/tut/p/id/7446 -
Merge/Concat Multiple Columns in a Flat-File wthin ODI
Hi,
I was wondering if there is a quick way to merge/concat multiple columns in a Flat-File from within ODI, a functionality kinda similar to Essbase load rule files for join/split columns etc.
Please let me know.
ThanksLooks like the CONCAT function works only with Memory Engine. Could someone please confirm this? If this is true, I guess applying the patch is the only resolution.
Thanks
Maybe you are looking for
-
My iPhone 4S went into lockup with a screen displaying an image of the USB connector pointing to the iTunes logo. I was traveling and took the phone to the closest Verizon store. The store informed me that I had a brick lock and that only an Apple re
-
To transfer data from one db table to anotherdb's table
I have to transfer data from one db table A to another db table B. Both the tables have data which is common. I want to transfer data from table A to table B. Data transfer needed is only the excess data in table A
-
WRT54G Ver 6 Constant Need To Reset!
I purchased a WRT54G Ver 6.0 Router in April to bring to Iraq with me. I have it connected to my iDirect 3000 Satellite Modem, with the static IP config input into the WRT54G. I have two computers on my desk, my personnal XPS 1710 with Vista and my
-
Applications don't install..please help
I own a Nokia n81 8 gig. It has 3 n-gage demos bundled but only one of them is installed, space impact. Fifa and asphalt demos are not installed and when I try to install them with the application manager it says that the certificate is expired, may
-
I just set up my twitch account, and I successfully did my first xbox live livestream with a pip facecam. The only issue is, the quality of the video was not so hot. I am very new to streaming. Basically, my framerate was odd looking and it appeared