A Better Way Than Text To Columns
Mar 3, 2009
Is there a better way to separate one column into two, other than "Text To Columns" I am trying to separate a 'Chair Logic' from one comma or hyphen and don't want to separate it from the other. (ie. F335-2743,XH-4,S0-24 to F335-2743 | XH-4,S0-24) and (C-24-11-1T7-TRFJ-TRF-TRLE to C-24-11 | 1T7-TRFJ-TRF-TRLE).
View 11 Replies
ADVERTISEMENT
Nov 21, 2007
I have a macro which imports data from a mainframe dump text file and performs 'Text to Columns' on the imported data so that formula in the spreadsheet can act on the data. The code works perfectly well when I use it, but if a different user logs on and performs exactly the same mainframe dump and import macro the Text to Columns action splits the raw data in a different way and the result is that the split renders the formulae useless.
I've experimented a little and for some reason it appears that the 'Field Info' parameters which are produced when the Text to Columns function is recorded in a macro differ between users even though the raw data is exactly the same.
FieldInfo:= _
Array(Array(0, 1), Array(18, 1), Array(35, 1), Array(56, 1), Array(70, 1), Array(88, 1), _
Array(102, 1))
View 6 Replies
View Related
Apr 9, 2014
how to set one entire columns text to two different colors based on another columns values. So for example I have column A and B. Column A has two values called Internal and External. Column B is a title table so the entire column is just titles. We'll say it goes for 20 rows if you need a row count. What I am looking to do change the text in Column B to Red for External and Blue for Internal. I tried the conditional formatting and I just can't seem to find the right option.
I'm using Win 8.1, Office 2013.
View 4 Replies
View Related
Jan 5, 2010
I've got some time values in an Excel Sheet in the format hh:mm:ss. I need to split them into columns (including the colon) like below:
hh: | mm: | ss
I can do this manually using text to columns but when I use text to columns in my macro, it automatically changes the time format to h:mm:ss PM
View 2 Replies
View Related
Feb 28, 2013
how to Chk the text string in particular cell, compare it with a super set column and get the full from of the text string from another corresponsing column and the output will be corresponsing full form of the chked text string?
View 6 Replies
View Related
Apr 8, 2014
I have the cell data as below
How would I split into a new column the first part which is a date into a new column, then the country and the remainder into separate columns?
I still want the original data as I need to check that the splits worked well?
16.5.90 CH 1671/90-4
18.10.1991 CH 3056/91-1
24.07.92 ch 2341/92-2
30.7.92 ch 2395/92-3
18.11.92 Us 3533/92-5
26.5.93PCT 1577/93-0
9.8.93 CH 2363/93-8
17.8.93 CH 2445/93-0
25.1.94ch209/94-6;8.12.94ch3714/94-1
25.1.94 ch 209/94-6 ; 8.12.94 ch 3714/94-1
8.4.94 ch 1047/94-0
22.4.94 ch 1255/94-7
18.11.1992 CH 3533/92-5
18.11.1992CH 3533/92-5
View 2 Replies
View Related
Apr 23, 2007
What I have is a column of data(text) which contains amongst all the text three strings of text in ever cell in the column which I require copying into three adjoining cells
The data I require is :-
(a) The persons name which is always after the word ‘Requester’ e.g. Requester Steve Robinson
(b) Their office location which is directly after the persons name and is in brackets e.g. (Newcastle User)
(c) The Approving persons name which is preceded by ‘Approved by’ e.g. Approved by Christine Hunting
See examples 1 & 2 below
Example 1
CR0/CRZ3651 Requestor Steve Robinson (Newcastle User) Tel: 01234 798157 Approved by Christine Hunting
Please install and configure 2 Ultra 2s (typhoon and lancaster) for use as ARTE workstations. These workstations require Solaris 2.5.1 plus the same patches as before
Example 2
CR0/CRZ3118 Requestor Doug Cunningham (Newport User) Tel: 0114 9881480 Approved by John Smithers
Please provide support to set up Cisco 2691 Router and PIX-506E Firewall to enable external connection of a remote terminal for project work.
As you will appreciate the text in the cells is of non standard lenght and the three pieces of information can be located virtually any where in the text
View 9 Replies
View Related
Dec 16, 2009
I am having a trouble in Excel sheet.My column A has a drop down list with text- possible, not possible, not required.Based on the text, i need to populate texts in columns B, C and D.
For example
Column A drop down selected is "possible"
then B coulmn should automatically populate "1-3"
C should populate with "3-5"
D should be "5-7"
I am using MS excel 2007.
View 9 Replies
View Related
Jun 17, 2008
I am trying to write a micro code to split text which is copied into cell A1 into columns. I can do this fine by going to "data" the "text to Columns" and selecting the places i want to split the text (this is the same for every piece of data i copy in).
The macro works perfectly every time. the problem is that the spreadsheet is shared and i want to protect certain cells on the sheet, when i protect the sheet the recorded macro does not work as the "data", "text to columns" is not available in a protected workbook.
I was just wondering if someone could help me, so i can run a macro to split the text which also allows me to protect cells. In the "text to column" option the "fixed width" (column breaks) i choose are: 4, 25, 34 and 43.
View 11 Replies
View Related
Jan 13, 2003
I have a cell that has a comma separated value that is 354 fields long. As such, if I use the Text To Columns feature to split the data at each column, I lose several columns (because excel cannot have that many columns).
How can I break the data at the comma, but have it list in rows instead?
View 9 Replies
View Related
Dec 31, 2008
In Column A1:A10 I have a really long series of alpha numberic digits in each cell.
I use this macro with text to column to split them up for me into different columns.
The problem I have is that after they go through this conversion all of the fractions in columns L are turned into dates....
View 9 Replies
View Related
Jan 11, 2008
how to add two columns of single words together, so that all possible word combinations are seen. For example:
Column1:
Horse
Pig
Dog
Sheep
Column2:
Run
Walk
Sit
Roll
So... I'd like Column3 to look like this:..........
The issue is I have about 100 words all together so there will be a lot of results! Is there a way I can enter a formula to do this?
View 2 Replies
View Related
Dec 6, 2006
I've had this issue a couple of times and can't work out an easy way to deal with it.
I have text data in one column.
Name
Add1
Add2
City
Pcode
Manager
Name
Add1
Add2
City
Pcode
Manager
etc
How do I extract Row 1 into Column 1, R2-C2,... R7-C1, R8-C2?
To make it more tricky what if there isn't a consistent amount of data, ie sometimes I'll have Manager name (6 rows of data) and sometimes I won't (5 rows of data) and then the next collection of data will have it again.
Does this make sense?
View 9 Replies
View Related
Apr 7, 2014
I have column "Due Date" which has data "Apr-09-2014 12:28:56 PM"
My code is to search Header "Due Date" and then doing a Text To column to get only the date on the entire column. I tried below code but something is not right.
[Code] ....
View 9 Replies
View Related
Nov 22, 2011
I have a code that I need to add text at the end of the columns E and I.
The code is written so that if the col E got one more row that col I it will add text to the last row in col I.
But I also have to add text to each column after this, I need text1 in column E, and text2 in column I
Code:
Sub countrows()
Dim lrE As Long
Dim lrI As Long
With Sheets("Utvalg1")
[Code] .......
How I write the code for adding text at the end?
View 2 Replies
View Related
Nov 20, 2006
If I run text to columns from the data menu, it works just fine. Every cell becomes a date and is right justified.
However, if I record a macro, some cells fail to convert whilst others do.
My ....
View 9 Replies
View Related
Jun 16, 2007
I need to seperate text to columns. How can I have it look at a cell and only put text to column if it is seperated by more than 3 spaces. my data in cell A1 looks like this.
John Smith Sue Smith Frank J. Smith
Text to columns gives me 7 columns when I only need 3
View 2 Replies
View Related
Apr 8, 2014
I have to format huge text file to columns. Here is the file: [URL] The whole file should look like the first 15,16 rows. What is the fastest way that can be done? Here is the original file: [URL]
View 3 Replies
View Related
Apr 4, 2014
I'm trying to create a formula for text to columns if a SKU is put into a box.
Ex) I put code 5495307H7G-**--A into cell A1. I need to split it after specific positions, so it breaks into nine individual codes (9 cells) in the adjacent boxes.
549 53 07 H 7 G- ** -- A
I've seen formulas for searching for spaces and splitting, but is there a way to split one long code at specific points?
View 5 Replies
View Related
Jun 4, 2014
I am having quite a bit of a challenge here and am not able to code to split the text into columns. The text to columns does not work here unfortunately. Below is my situation. In one column that has the contract details I have the data as follows:
Account Manager Jennifer MacFarlane CONSULTING - GENERAL on 20-JUN-13 Function #:176749
Account Manager Janet Bewers CONSULTING - GENERAL on 25-JUL-13 Function #:176878
Account Manager Janet Bewers HEAT STRESS AWARENESS on 27-JUN-13 Function #:176828
Account Manager Janet Bewers TRACTOR SAFETY AWARENESS on 08-AUG-13 Function #:177383
What do I key in to get Account Manager in one column, the name of the person in another column and the one in caps in another column and the date in one column and the function in another column. I tried using left, right and LEN and something is terribly wrong with my logic
View 4 Replies
View Related
Jul 8, 2014
how to create a formula to sum the top 10 numbers of column C only IF Column A contains cell reference D1, and Column B contains cell reference D2.
Column A is all text colors
Column B is all text vehicles
Column C is all numbers
Column D1 contains the word RED
Column D2 contains the word CAR
I have used two cells to do this when column A is RED, however i cant figure out how to add in a filter for Column B (D2 CAR).
1st column cell E1 contains: =LARGE((A:A=D1)*C:C,10)
2nd column cell F1 contains: =SUMIFS(C:C, C:C,">="&E1,B:B,"="&'Sales Summary'!D1)
formula thats easier or able to filter for the above?
View 8 Replies
View Related
Dec 3, 2008
In one column J there are five digit numbers like 45678.Can with the help of a formula or code/macro, the process of text to columns can be done in one click, instead of going through the process available so that the data is scattered in J,k,l,m,n columns.
View 3 Replies
View Related
Dec 25, 2008
In Excel 2007 I want to concatenate two columns of text. In Column A all the cells contain a single statement that I want to prefix the statements in the cells of column B (the statements in column B differ from cell to cell) I have used the formula =A1&" "&B1 and this is fine for that row, when I use the fill handle and pull it down the page the formula changes accordingly i.e.=A2&" "&B2, =A3&" "&B3 etc. But when I make the text appear using control+ I only get the concatenation of the first row repeated all the way down, irrespective of the contents of other cells in Column B.
View 14 Replies
View Related
Apr 1, 2009
I have a spredsheet with multiple Alpha Numeric codes in one cell. I would like to seperate the codes but instead of placing them in the adjacent columns, like the text to columns function does, I want them to go to the preceding rows.
View 3 Replies
View Related
Jun 16, 2009
I have columns that contain text (Populated from drop down lists).
I need to be able to sum the totals of each type from the drop down list. These totals can either be displayed on a second sheet.
View 5 Replies
View Related
Jul 20, 2009
How do I undo text to columns?
I had a list of email addresses that I put into two columns with the @-now I have finished manipulating and I need to have the email addresses whole again.
The email is now in column A and the domain is in column B. I cannot click undo.
View 4 Replies
View Related
Jan 28, 2010
I have a list of items with a cell, however these are on seperate lines (using Alt+Ent) function. Example of entered text within the cell below:
_UN
_OD
_PN
_H
The beginning of each line will always start with an underscore ( _ ). The items within the list will either be 2 or 3 characters long (which includes the underscore).
The required output I'd like is (spaces used to indicate seperate cells):
_UN _OD _PN _H
I'm trying to use the 'Text to Column' function to solve my problem, however I haven't yet managed to get it to work. I've tried using the 'Fixed Width' function within this, however when I use this, it inserts an 'Enter' within the cell, which I don't want.
Does anyone else have a solution? Any help would be appreciated. Preferably I'd like this to be automatic using a formula, instead of me having to click the 'Text to Column' button each time.
(I'm using Excel 2007 if this makes any difference too)
View 12 Replies
View Related
Mar 21, 2013
I am trying to track street pavement for a city and as you can imagine, there is a lot of data entry.
At the end of the day, I will need to know the total length of streets with brick, asphalt, and concrete. Column 'D' has the street material (Asphalt, Brick, Concrete) and Column 'E' will have the length. At the bottom of the sheet, under column 'E', I have cells that will show the total length for streets with Asphalt (E61), Brick (E63), and Concrete(E65), so I need a formula to enter in those cells that will look for the specific pavement materials it is totalling
Also, I am tracking streets with/without curb and gutter. If a street doesn't have it, I need to track how much will be needed. Basically, it will be the length (Column E) times 2 (both sides of the street). In column 'G' there will either be 'Yes' or 'No'. If 'Yes', then I don't need a total and the cell containg the amount of curb and gutter need (Column 'J') will be blank. However, if 'No', Column 'J' will have the total amount of curb and gutter needed ('E??' x 2)
Obviously the sheets will be different lengths so the cells will need to be copied and pasted.
View 4 Replies
View Related
Jul 18, 2013
I use text to columns everyday at work. Each report that I insert is in the exact same formatting and spacing. So, I open the text file, and manually enter line breaks each time. Is there a way to import text into an already broken up table? Or a way to open a file and it recognizes where to break up the lines without me having to manually click them in each time?
View 4 Replies
View Related
Jun 23, 2014
I have a file that i need to use for analysis but it is currently a text file, how can i use VBA to open it with excel and then complete text to columns, using a delimiter of a semi colon.
I have attached a sample of before & After.
View 14 Replies
View Related