Can we split data in field into 2 fields?

Have 'city, state' in 1 column, and would like to move the city to the previous column, remove the comma-space and leave the state in the original column. About 50% of the data in the column in question has this error.
Any ideas?

Yes. For this example you will put the city in one column and the state in another. The logic is that you find in the city, state field the position of the comma-space string with the function =FIND(", ",citystatecell). You combine that function with the LEFT function to return the string with the characters in the citystatecell up to the comma. =LEFT(citystatecell,FIND(", ",citystatecell)-1).
If Memphis, TN is the value being evaluated, Find will return 8, the position of the comma- subtract one to get the end of the city string. The LEFT and FIND combo will return the first 7 characters of the string- Memphis. The state can be extracted with similar logic.
If there is no comma-space, the FIND will error. To trap that you check for an error with the ISERROR function and IF function. If it is an error, then it must be a city without state, so return the string being evaluated.
Here is the formula I came up with for the city portion
IF(ISERROR(FIND(", ",citystate)),citystate,LEFT(citystate,(FIND(", ",citystate)-1)))
and the state portion will leave the state cell blank-
=IF(ISERROR(FIND(", ",citystate)),"",RIGHT(citystate,(LEN(citystate)-(FIND(", ",citystate)+1))))
The state formula does not assume the state is a 2 letter abbreviation.
HTH
Craig Sutherland

Similar Messages

  • Can I split an "iTunes LP" into individual tracks?

    Hi there,
    Sorry if this has been answered elsewhere but I've been looking for over an hour and can't find anything that helps.
    I recently purchased the song "Where Are We Now" by David Bowie in order to register my pre-order for the album "The Next Day" which came out a couple of weeks ago.  I didn't realise it was an iTunes LP and now I am stuck with two problems.
    1) I can't insert the original track I purchased into the main album so I have two entries on my iTunes library, one containing one song and one containing the rest of the album
    2) I can't split the iTunes album into separate tracks and it's driving me nuts. 
    If I have to play the album as a whole and not be able to cherry-pick tracks from it then okay, I guess I can live with that. But with track five as a stand-alone it means I have to listen to the rest of the album and then go back and listen to track five separately?  This can't be right.
    I've not come across iTunes albums before and they SUCK if this is what I have to put up with, and I'm certainly not buying the album again via individual songs because that'll cost me over £20.
    I hope someone can help, because I'm extremely annoyed. I can't even burn the thing onto a CD and then re-import it because I can't insert track five into the album where it should be.
    Thanks,
    Bee.
    iTunes 11 for Windows; iPad 3rd gen, iPhone 4S, iOS 6.1.3

    Okay, panic over, there was one step I didn't complete and now I've done it, it's worked fine.
    I shouldn't be allowed nice things. 
    As you were.
    Bee. x

  • How can I split my Dj mix into separate tracks and export the tracks

    How can I split my Dj mix into separate tracks and export the tracks. I'm trying to burn my Dj mix to cd and I don't want it to be one long track.

    Henryfrommo wrote:
    How can I split my Dj mix into separate tracks and export the tracks.
    http://www.bulletsandbones.com/GB/GBFAQ.html#exportsections
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • How can I split a pdf file into smaller files using Acrobat XI

    How can I split a pdf file into smaller files using Acrobat XI?

    Hi laforcej
    Open the PDF In Acrobat ...
    Go to Tools -> Pages -> Extract
    Now Select the Page Number you Want to Extract and Save them

  • How can I split an Orders05 iDoc into multiple iDocs?

    Hello,
    Can one of you experts please tell me how I can split an ORDERS05 iDoc into multiple iDocs based upon Delivery addresses? 
    For example, if the iDoc contains 3 different Delivery Addresses then I need to split it into 3 iDocs.
    It has been suggested to me that I can Create a custom function module. In this custom fm split the idoc into 3 based on the delivery address and create it using the FM MASTER_IDOC_DISTRIBUTE.
    Problem is I don't know how to do this.  Any help is greatly appreciated.  Thanks.
    Dan

    Hi Dan Avis
    Write a Custom  Z program .
    1 get order05 idoc number....
    2 get the segment details...(Based on you condition...)
    3 In a loop  send the data to the FM MASTER_IDOC_DISTRIBUTE  (Based on you condition...)
    4 IDOC will generated,,,every loop and
    5 Change the status of original idoc .
    or
    Create Function module and use the FM as process code to create 3 idocs...and processs...new generated idoc and block original idocs...
    Call me if you have questions  @ 302 290 5677
    Thanks
    Ramesh

  • FDMEE- Can the subledger data be brought into HFM using FDMEE?

    Hi Experts,
    Is it possible to bring the sub-ledger data from PeopleSoft using FDMEE to HFM. As per one of the requirement of client it is required to bring the transaction level data directly into HFM.
    Please suggest whether it is possible to bring the sub ledger data to HFM using FDMEE.
    Any insightful response will be helpful for us as it would help us to gain clarity and understanding.
    Thanks in advance.

    Hi Tony,
    I think I was not clear enough in my earlier post. Sorry about that. I didn't mention about multiple currency for single entity. I understand your point "Given that, FDM will not load to "multiple" currencies for a single entity", but that was not my question.
    Let's say, I've the below data file containing only 3 data rows. The first row gives USD value as entity 1001 is USD entity, but the second row has CAD value as entity 1002 is Canadian entity. The third row has UK value as entity 1003 is UK entity. My question was, can I load the below file into HFM using a single location in FDM? Or do I have to create 3 separate locations in FDM to load the below data file? Please note, one entity can have only one currency.
    Year,Period,Entity,Account,Value
    2010,August,1001,400010,145.65
    2010,August,1002,400010,35.05
    2010,August,1003,400010,10.05
    Here is the hierarchy in HFM, I created the location in FDM based on the "GSLUSD" node
    GSLUSD (USD)
    ---1001 (USD)
    ---1002USD (USD) -> Currency Translation happens here
    ---1002 (CAD)
    ---1003USD (USD) -> Currency Translation happens here
    ---1003 (UK)

  • Can you split an iTunes account into two separate iTunes accounts?

    My son and I have shared my iTunes account since he was in junior high. We have both added to it over the years, amassing a huge library.  My son has now left home and joined the military.  At this point we want separate accounts - so we can pay separately for our purchases, back up to our own Clouds, etc.  Can he take his purchased music from my library and move it to his own, new account?  This would leave me with only the music I have purchased, which is fine with me.  The library is currently on both of our computers.

    You can't split accounts nor transfer content from one account to another account - content will remain tied to the account that downloaded it.
    For new purchases he can have his own account, and he can have that and your shared existing account authorised on the computer's iTunes that he uses (Store > Authorise This Computer menu option).
    If he uses iTunes Match, automatic downloads or redownloads an account's past purchases then he may tie that computer (or iOS device) to that account for 90 days : http://support.apple.com/kb/HT4627 - so he wouldn't be able to do any of those three things on a different account until the 90 days have completed.

  • How can I split my current video into several segments. To put on 3 different disks. Can I do this with out losing all the work?

    I need help. I have completed my video and now realize it is too big for a single DVD. Is there a way I can split the video and not lose the current info so I can put video on 3 different disks?
    Thank You
    pbcatt

    pbcatt
    Thanks for the update. Looking forward to your results from further searches for that .iso file.
    If you burn a Timeline content to a video file saved to the computer hard drive, you can use Publish+Share/Computer/and one of those choices to get a video file (.mov, .mpg, .avi, wmv, mp4, m2t). But, this route does not allow for menus. You can take the saved video file and transfer it to USB Flash Drive or memory card, and, if your player supports that, you can playback the file with the player.
    When you burn a Timeline content to DVD-VIDEO on DVD disc, menus are supported. And, what you have on the DVD after the burn to disc are two folders (OpenDVD and VIDEO_TS) in the correct disc system format. It is the VIDEO_TS Folder on the disc that has the video files and menu files for DVD-VIDEO format.
    When you take the Timeline content to Publish+Share/Disc/DVD, but use Folder (4.7 GB), you end up with a saved folder which contains the same OpenDVD Folder and VIDEO_TS Folder that you would have gotten from the direct burn to disc. But, now you need to take just the VIDEO_TS Folder from the saved folder and get it to a DVD disc in the correct disc system format. You do that with a free 3rd party software such as ImgBurn.
    If you go the ISO Image route, your DVD video files (video and menu et al) are saved as a file in format represented by the .iso file extension. It is essentially a copy of your DVD-VIDEO data including menus. The .iso image produced can be taken to DVD disc to produce the DVD-VIDEO on DVD disc.
    So, in the case of burn to folder, you are looking for a saved folder with OpenDVD Folder and VIDEO_TS Folder inside.
    In the case of the burn to ISO Image, you are looking for a file with the .iso file extension.
    The Save In: location of the burn dialog should point to where you are going to find the folder or file after the burn to.
    Please consider. We will be watching for further developments.
    ATR
    Add On...have you told me yet what is exactly shown in the Save In field of your burn dialog?
    C:\Users\owner\Documents or something else?

  • How can I Split the PDF File into different pages?

    Hi,
    My requirment is to split the pdf file , which is obtained by using FM "convert_otf" , into seperate PDF file for each employee data(PERNR).
    Please suggest me the way to slipt the PDF file that has to be downloaded into the presentation server.

    Hi,
    Ok, looking at that programm didn't actually help me very much to understand what's going on, or where you have the CONVERT_OTF call... Regardless, if the suggestion by Raymond is not feasible in your scenario, the thing I'd try to do is - splitting the spool (OTF) contents before calling CONVERT_OTF into individual documents (feeding it to convert FM piecemeal)... The link to OTF format and commands documentation is here.
    Again, it's difficult to give a good algorithm without knowing the exact OTF contents (could you perhaps somehow export the display of spool in RAW format and attach here?) but it would boil down to approximately following:
    1) set the &first_page per PERNR = 1;
    2) run through OTF lines until the &end_page for PERNR has been identified somehow (hopefully there are Begin/End Form OTF commands '//' in that spool... and they correspond to the split of spool you need...);
    3) extract the otf contents from &first_page to the EP command of &end_page into separate OTF itab and, if necessary, add // (End of form) command at the end of itab;
    4) call CONVERT_OTF on the table and download;
    5) set the &first_page per PERNR = &end page + 1;
    6) repeat from 2) until end of spool OTF data
    Something like that... Depending how the Sapscript translates into OTF, you may also need to prepend a few commands found at the very beginning of the spool to each extracted invividual OTF document...
    I Hope you can get the gist of what I'm suggesting... splitting OTF is definetly easier than trying to split PDF, I feel. It's not ideal solution, because - what if the structure of OTF contents you would be realying on changes for some reason..?
    cheers
    Janis

  • How can I import data using .dmp into the table which has more columns then in import

    I am building the history for warehouse purpose on Oracle 8i database and want to use the old import (.dmp) files (from oracle 7.3.4) to import data but the underlying table is having few more columns which are not in my old DMP file .. how can I import the data into these altered tables while using the same *.imp files .
    Any solutions ?

    That is the most obvious solution .. but think of the case when my operational database which is the source of my data is undergoing changes every quarter i.e after every 3 months there are some changes on underlying table structures which means structures of my import files will always be different after evry quarter .. you can imagine the number of temporary import structures I need to create .. can't there be a solution wherein I can write an SQL over the import file to read the data in required format ..

  • Urgent How can I pull data from Essbase into BW 3.5

    Hi All,
    Can anyone tell me the extraction mechanism to extract data from Essbase (Hyperion Sales cube) into BW 3.5. Is it possible to extract data using DB connect. As far as I know it cannot be used for BW 3.1C but what about 3.5. Any links or information is greatly appreciated.
    Thanks
    Padma

    Hi Padma,
    by chance I read this post, I hope the information on following web-blog would be helpful for you:
    /people/happy.tony/blog/2006/09/18/hyperion-essbase-data-extraction-transformation-and-loading
    Regards,
    Lilly

  • I can't split a home DVD into multiple events. Why?

    I have a DVD of old super 8 movies that I converted into a DVD years ago and want to extract selected segments as short movie clips. I have been able to load the entire DVD as a single event but I wanted to break this single event into multiple events based on various themes. My problem is that I don't seem to be able to split the content at all. The "Split event before selected Clip" always appears to be grayed out. What am I doing wrong?
    paulfromcrystal

    I just figured it out.  Somehow I didn't change it to the correct code of 1.  So on the second shot of 5 allowed I realized I didn't change and save.  Now the dvd played.

  • Split data and insert into different rows

    I have a string like 'sfdsf,sfdsf,sfsd,qweqeqw,iuoi,"
    I have created a single column table
    I have to extract data from first untill comma(,) occurs and insert into the table like the following
    sfdsdf
    sfdsf
    sfsd
    qweqeqw
    iuoi
    Please help me how to do it

    Or a Single SQL query
    SELECT trim(',' from DECODE(ROWNUM,1,SUBSTR(STR,1,INSTR(STR,',',1)),
                                        LENGTH(STR)-LENGTH(REPLACE(STR,','))+1,SUBSTR(STR,INSTR(STR,',',-1,1)),
                                         SUBSTR(STR,INSTR(STR,',',1,ROWNUM-1), INSTR(STR,',',1,ROWNUM)-INSTR(STR,',',1,ROWNUM-1))
                                   ))  STR1
                     FROM (SELECT 'sfdsf,sfdsf,sfsd,qweqeqw,iuoi' STR FROM DUAL),ALL_TABLES
                     WHERE ROWNUM <= LENGTH(STR)-LENGTH(REPLACE(STR,','))+1
                      ORDER BY ROWNUM

  • How can print the data from notepad into the web application.

    Hi,
    I am Buntty, I want to read the data from the notepad and print into text area of web application, I have written the code to invoke the file and store data in temporary buffer, then I want to Print that data, but while printing the data 1st line replaces when the 2nd line prints, java code is below.
    BufferedReader bin=new BufferedReader(new FileReader("mydata.txt"));
    while((credit_number=bin.readLine())!=null)
         selenium.type("inputString", credit_number);
    Please help me to print all the lines in the text area of web application.
    Any method to print the all the data in the notepad at a time into the text area on web application.
    Thanks
    Buntty
    Edited by: Buntty on Nov 15, 2008 4:24 PM
    Edited by: Buntty on Nov 15, 2008 4:37 PM

    Try this:
    BufferedReader bin=new BufferedReader(new FileReader("mydata.txt"));
    String tempString = "";
    while((credit_number=bin.readLine())!=null)
    tempString = tempString + credit_number;
    selenium.type("inputString", tempString); Hope this helps.
    All the best

  • Can CMOD change date related field description? Need user exit?

    Hi friends,
    customer use quotation and quotation date fields for other purposes thus need to change field description to make it more sense. I followed below link and changed qutotation..but same solution didn't apply to quotation date (data element IHRAN)
    Please kindly advise.
    [http://www.renet-web.net/2005/09/01/changing-standard-sap-field-descriptions]
    Thanks,
    Linda
    Edited by: Linda Gao on Aug 25, 2011 4:27 PM

    Use Quotation date in PO header as an example.
    Prerequisite: You might need a access key to access below steps.
    ME21Nu2014cursor at field quotation date (PO header) top task bar systemSatatus, Note down program name(SAPLMEGUI) ,screen number (1229) and field name (IHRAN) go to SE51, input program name and screen number choose radio button u201Celement listu201D press change go to subtab u201CText/ I/O templatesu201Dchange text part in column u201CText or I/O field u201C for component name MEPO1229-IHRAN(note IHRAN is field name you took down earlier on)save and activate the changes.

Maybe you are looking for

  • Can I disable F1 for LabVIEW help?

    When my VIs are running, I want to disable the help window popping up when the user presses the F1 key. I don't care whether it pops up when I'm editing.

  • The right click search option isn't working on Firefox 7

    When I right click on a word and click "search google for..." I get "404 - that's an error" Is this a bug that will be fixed or something that I can tweak to fix now?

  • Suppress xmlns:.. in the output

    I try to use extension for using a Java class. I have add xmlns:ptg="http://www.oracle.com/XSL/Transform/java/oracle.XSLJav a". The problem is I want to supress the namespace in the output. Ex. Now I get the xmlns:ptg... (see below). How should I do

  • Create Parameters in a worksheet in Discoverer PLUS OLAP

    Am i missing something here or is there a way to create parameters in Discoverer Plus OLAP (not Plus relational) . I have searched all the options in the menu, but no luck. I know i can pass values from OLAP PLUS to Relational as parameters to the re

  • Adobe After Effects Disk Cache folder is massive!!!

    Hi. My mac computer is starting to get out of free space so I use omnidisk to do some cleaning on my computer and I notice that there a folder in user/library/preferences/adobe/after effect/11.0/Adobe After Effects Disk Cache - user's MacBook Pro.noi