Moving Text After Particular Character To Next Column

Oct 23, 2008

At this point, I have a list in the first column that looks something like the following:.......

First, I want to delete any cells that have two or more '' characters and delete any cells that do not have any text after the first '' character. Then I want to take the text before the character and put it in column B, deleting the ''. Once I have done these things, my original post and this one can be marked solved.

View 5 Replies


ADVERTISEMENT

Macro Optimization And Moving Text From One Column To Another And Deleting Previous Column

Nov 7, 2009

I am running Win XP and Excel 2003.

I have a macro I found here on the boards written by Lenze to delete an entire row based on what is found in column A. I would like to delete any row where Col. B contains 10 or less characters and I have modified it to do so (or at least I think it does). My problem is that it takes about 12 minutes to run the macro (I have about 50k lines to run through). I was wondering if this is the fastest method or if it examines things other than just column B.

Sub Test()
Dim i As Long
LR = Cells(Rows.Count, "B").End(xlUp).Row
For i = LR To 2 Step -1
If Len(Cells(i, "B")) < 11 Then Cells(i, "B").EntireRow.Delete
Next i
End Sub
After this runs, I am left with Columns A to somewhere around AH. The columns are generally in the format of text followed by a numeric column. An individual text column has the same name through all of the rows. The numeric columns have varied values whether negative or positive.
Ideally what I would like: If a given cell (ie. C2) in Row 2 is numeric, then copy the cell to the left (ie. B2) into (ie. C1) and then delete Column B. I need this to work for multiple columns from B to C, skip D and E, and then from F to AG (and maybe beyond).

View 9 Replies View Related

Retrieve A Character From A Text String In A Column?

May 26, 2009

i want to extract a value from a column into another column in excel.
this first column contains text and i want to extract a value that in located between the characters 'FOR' and 'MTHS'.
how do i do that?

the situation is the same for all the rows; the value that i want is just located between these characters.
is there a simpler way other than using the MID functn? because everytime i use it i need to count the no. of characters and its quite difficult to keep up with the numbers.

View 2 Replies View Related

Calculate Average For Column Based On Moving Start Column?

May 3, 2013

I have a pivot that includes customer data and I need to create an average for each row based on the first populated column for each customer. After one month of units appears for the customer, I need to calculate the average going forward, and if there are blanks after that they should be treated as 0 in the average. Below is an example of my description of the pivot.

Jan Feb Mar Apr
Customer #1 1 1 3
Customer #2 1 3
Customer #3 2 2

So, the average for customer #1 would be calculated from Column B to Column E, and factor column D as a 0 in that calculation. Customer 2's average would start in Column C and go to Column E, and factor column E as a 0 in that calculation. Customer 3's average would start in column D to column E.

View 5 Replies View Related

Moving Text That Is Hyperlinked

Oct 17, 2007

i have an excel file that has several worksheet tabs most of which i have hyperlinks running on them, what i need to do is colate a couple of the sheets to a seperate excel file but when i try to copy them from the original file to the new file they will not copy because the info is hyperlinked!

View 9 Replies View Related

Inserting Text And Moving Onto Next

May 22, 2014

I have text from subjects in rows, and I need to fill out the empty spaces with the specific text. For example my data looks like this:

Name1

Name2

Name3

Name4

Name5

Name6

I need it to fill out the empty cells below each name, with the top name so it looks like this:

Name1
Name1
Name1

Name2
Name2

Name3

[Code] ......

For example, one can see that Name3 has no empty cells below, hence it should just move on to the next (name4) etc.

View 2 Replies View Related

Get Text After Multiple Character

Feb 23, 2013

get the function to get the text in the middle of long text

i have text like this 125/565/797/7222/222/2122

how i put the formula to get text after multiple "/" example the text : 125/565/797/7222/222/2122 in cell A1 i want to get after third char "/ " value 7222 Before the fourth "/"in cell A2 and after the last "/" in cell a3 or value 2122

View 4 Replies View Related

Extract Text After Last Specified Character

Aug 15, 2007

I have a cell in my worksheet with a fully qualified filename like 'D:abcDefGHIJklxyz123.app

I would like to extract only the xyz123.app. Obviously, the number of characters is going to vary based on the filename. The find and search functions appear to locate the cell but not the substring in the text. The right and left appear to work based on number of characters and in my case these are varying. Also, there does not appear to be any function that can do a search a string from right to left.

View 6 Replies View Related

Reading One Character Of Text

Apr 18, 2009

The following code reads text one character at a time, and each character is determined either to be a blank space or to be any other character. If it's determined to be any other character, then the character is added to the active cell. If it's determined to be a blank space, then the active cell becomes the cell one column over. The idea is to have different words written in columns next to each other.

The sample text file I'm reading from reads: "text file". The file has only those two words. One space between them. No space before the first word, and no space after the second word. The following code compiles and runs. BUT the result is that the word "text" is in column k, not A. And the word "file" is in column J, not b.

View 2 Replies View Related

Stop Text At A Character?

Jul 4, 2012

I have a list of over 300+ email addresses. If there is a way that I could pull out the ".com" (Find & Replace: Which is not working in any format, Text, Custom, General.) then pull out the text from the right to left until I get to the "@" into another cell and drag that down that would make it so much easier. Is there a formula that will pull data and then stop at a CHAR code? @ =CHAR(64) These email addresses are all different lengths. (personal to corporate email addresses.)

Example: moe10134@hotmail.com

Looking for something like this: Replace ".com", =LEFT(9) or whatever will take out the "moe10134@" and the ".com" leaving only hotmail.

View 3 Replies View Related

How To Remove Last Character From Some Text

Mar 29, 2013

I am trying to remove the last character from some text with:

Application.SendKeys "{F2}"
Application.SendKeys "{BS}"
Application.SendKeys "{Enter}"

But when I do this, it is giving me the object browser in VBE . . .

View 4 Replies View Related

Extract Text Before Certain Character?

May 12, 2014

I have list like the below. I need to pull out everything before the space for each of these and after the _ which is after the CRN_, SA_ or MA_

CRN_212141 JRDC 7402-01_ICT-ICM IT Services Basel PDiv 3702 POPEnd 01/31/2015
MA_7500007822 JRDC
SA_GS-35F-4461G No Alias Determined
CRN_179764 Director of Administration and Managem PDiv 3799 POPEnd 06/30/2014
MA_N00189-09-D-Z044 USJFCOM Projects
SA_GS-35F-4461G No Alias Determined

Desired Results:
212141
7500007822
GS-35F-4461G
179764
N00189-09-D-Z044
GS-35F-4461G

View 2 Replies View Related

Copy Text After Character

Dec 20, 2006

I have a column list that I need to seperate. The Text has both a title and location separated by an = sign. The cells look like this...

BlahBlahBlah = Location1

I would like to take the text after the = sign and place it in the next column so that all that is in it is...

Location1

The Location varies so the RIGHT function won't work.

View 3 Replies View Related

Split Text After Specified Character

Aug 15, 2007

You know how you can combine different cells and concatenate their values? Can you reverse that? For Example, I have this value "Yambao, Mikhail P." and I want to break them apart so I can use "Yambao" as a reference value to fill up other information concerning that name.

View 9 Replies View Related

Extract Text After Last Specified Character

Aug 15, 2007

I have a cell in my worksheet with a fully qualified filename like 'D:abcDefGHIJklxyz123.app

I would like to extract only the xyz123.app. Obviously, the number of characters is going to vary based on the filename. The find and search functions appear to help locate the cell but not the substring in the text. The right and left appear to work based on number of characters and in my case these are varying. Also, there does not appear to be any function that can do a search a string from right to left.

View 5 Replies View Related

Is Nth Character Text Or Number

Aug 16, 2007

Cell B23:687968307=ISTEXT(MID(RIGHT(B23,3),1,1))TRUE
Cell B24:C8796B07=ISTEXT(MID(RIGHT(B24,3),1,1))TRUE

I'm trying to test whether the third last character (3 and B) is a text or not.

As you can see, the reslts are both TRUE, but I'm expecting to see that the first one should be FALSE, as '3' is a number right?

Likewise, if I replace the formula with ISNUMBER instead of ISTEXT, the results are both FALSE, but shouldn't the first one be TRUE, again, because the '3' is a number?

Have I missed something in the formula, or is there a better way of expressing this formula?

View 7 Replies View Related

Cursor Not Moving When Enterting Text

Jun 16, 2009

When I add a text box in Excel 2007, when I type the text box, instead of the cursor moving forward as I type, the cursor stays in the same place and the text moves backwards.

when I try and navigate back through the text, pressing right will make the cursor go left, pressing left will make the cursor go right

View 13 Replies View Related

Extract Text Before Last Identical Given Character?

Aug 18, 2014

I need to extract the text located before last specified character () From C:PicturesPersonalChristmasDSC_00001.jpg ----> C:PicturesPersonalChristmas

I found a nice formula in another thread but that one returns the text located after the last "". The formula is =RIGHT(A1,LEN(A1)-FIND("@",SUBSTITUTE(A1,"","@",LEN(A1)-LEN(SUBSTITUTE(A1,"","")))))

View 2 Replies View Related

Text Functions To Add X Character In Between Sentences

Apr 6, 2014

I have thousands of track titles into my music library that requires some organization. In this case below, I need to add a "" character to split the track number from its title. So, the problem remains at the lack of pattern in the text and the only reference it the beginning of the song title (but it also can begin with a text or a number).Text.jpg

From: 01 - It's A Long Way To The Top.mp3 >>>>>>>>>> To: 01It's A Long Way To The Top.mp3
From: 02-Crazy.mp3 >>>>>>>>>> To: 02Crazy.mp3
From: 3-01 Need Your Love.m4a >>>>>>>>>> To: 3-01Need Your Love.m4a
From: 10-13 Angels.mp3 >>>>>>>>>> To: 10-13Angels.mp3
From: 01 10_15 Saturday Night.m4a >>>>>>>>>> To: 0110:15 Saturday Night.m4a
From: 3 - Guitar Mafia.mp3 >>>>>>>>>> To: 3Guitar Mafia.mp3
From: 1-01 Losing all.m4a >>>>>>>>>> To: 1-01Losing All My Friends.m4a

View 12 Replies View Related

How To Remove Specific Text Before A Character

May 5, 2014

1) In any cell, I would like to remove "Area#xxxxxxxxx" (where x are random numbers).

Example : "INFO Log - [sys] Area#541185471Character#46545"

2) I would like to remove x characters before a word.

Example : 2013-08-28.txt@INFO

I would need to remove 14 characters before the character "@".

I tried to play with the LEN and RIGHT/LEFT formula but so far, I can't get it to work... The idea is to parse some text and remove the part in red (I was thinking about using SUBSTITUTE).

View 12 Replies View Related

Find Specific Character In A Text?

Jan 23, 2014

I want a formula to find "#" character in a text.

Example

PO# 4343434, MINCDSD.LTD, 977766

Here i I want to find out the character "#" position

I used =FIND("#", A1,1) Answer is 3 it's ok fine.

But I have problem with this below example;

Revised PO#545455, INV# 434344 ABC LTD

In this example i want second "#" position..

View 5 Replies View Related

Replace Just Single Character From Many Of Same One Within Text?

Apr 13, 2013

have to deal with a text database into Excel but ended up finding irregular format that need to be fixed. As it can be seen within the text right below, there are space delimiters in between the words. I want to replace always the 2nd space from right to left with a semicolon.

20/10/2012 CENTAURO CE 39 (06/10) 57.97 0.00
20/10/2012 CENTAURO CEFT 534 (09/10) 1,235.34 0.56
20/10/2012 CENTAURO (06/10) 5,345,200.00 45.00 1.01
20/10/2012 TFRE (06/10) 1.00 0.00

View 5 Replies View Related

Remove First And Last Character From Text File

Dec 13, 2008

I'm trying to write to text file a HTML page that is in string variable sFullPage.

So far my code is like this:


Sub wrtHTML()
Dim sFName As String ' Path and name of text file
Dim iFNumber As Integer ' File Number

sFName = "c: est.html"

'Get an unused file number
iFNumber = FreeFile

'Create new file or overwrite existing file
Open sFName For Output As #iFNumber

'Write data to file....

How do I remove those first and last two marks (a double quote on each side + square mark from the end)? Do I use somehow wrong data types or wrong printing methods?

View 9 Replies View Related

First Character In Cell Is Text Then Delete Row

Aug 16, 2006

In a column I have cells where the first character is numeric and the rest text and also cells where the first character is text.

I want to delete the rows where the first character is text.

View 9 Replies View Related

Function: Return Text After Specified Character

Nov 15, 2006

I am trying to build a formula that return what is after ":" For example, in a cell, I have NASDAQ:MSFT and I want another cell to return MSFT. I tried to use the function FIND combined with a LEFT or RIGHT but I could not have it work.

View 2 Replies View Related

Open A Wrapped Text Cell To First Character

Dec 12, 2009

I have to edit text cells (lots of them) containing approximatley 40 lines of text (screen width) - generally the edit will be done on lines 1-5

When I click on a cell, Excel is opening approximately half-way thru the text

I have to Ctrl Home to get to first line on each cell.

Is there a way I can set Excel 7 so that it opens the cell on the first line, first character of the text?

View 2 Replies View Related

Finding Nth Position Of Character Within Text String

Jun 16, 2012

Title should read: Finding the nth Occurrence of a character within a text string

I have a very long text string that is delimited by about 50 "/" to segment certain values within the text string. I want to be able to extract the text between the 33rd and 34th occurrence of "/". How to do this?

View 5 Replies View Related

Text Parsing, Find String After : Character

Feb 14, 2010

I am reading lines from a textfile. Each line in the textfile has the identical format: textstring1:textstring2. The two strings are always separated by the : character. I have the code to get textstring1, but because I'm a rookie, I can't figure out how to get textstring2. See the code in bold, this is the line I need to get textstring2.

View 4 Replies View Related

Text String To Single Character Array?

Jul 13, 2012

There is a method to use ROW(1:10) within an array formula to strip a string into individual elements e.g.

HELLO > {"H","E","L","L","O"}

I cannot find it anywhere, thought it was something like =MID(A1,ROW(1:10),1) but not yielding results.

View 4 Replies View Related

Count How Many Times Got Same Character In Text From Several Cells

Jan 30, 2014

I need to count how many times I've got, for instance, "a" in several cells where I typed some text...

I would need a formula where I can indicate the letter I want and the range of cells where to look at, and having as result how many occurances there are...

If you are very good instead of a single letter, maybe a sequence of letters... but this is an extra!

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved