Add Or Remove Text Within One Cell?
Aug 13, 2009
I need to format C2 so that it removes all text that comes after a dash in B2, but if no dash exists, then it returns the text: Parent. For example, here are 3 values in B2, B3, and B4:
1234-s
1234-m
1234
In C2, C3, and C4 I'd like to have the following values returned based on the above values in B:
1234-
1234-
Parent................
View 2 Replies
ADVERTISEMENT
Jun 12, 2014
I have the following two columns, and would like to obtain for each individual Company, the corresponding Country values excluding duplicates as text in a single cell.
Company 2Country B
Company 2Country C
Company 3Country C
Company 3Country C
Company 5Country A
Company 5Country C
Company 5Country C
For example:
- For Company 2, a cell containing "Country B, Country C"
- For Company 3, a cell containing "Country C"
- For Company 5, a cell containing "Country A, Country C"
I've approached generating an array using an IF statement, as in =IF(INDEX(A1:A8="Company 5",,),INDEX(B1:B8,,)," "), which returns the following array: ={" ";" ";" ";" ";" ";" ";" ";"Country A";"Country C";"Country C";" ";" ";" ";" "}.
The question is: how do I get that array to produce, as text in a cell: "Country A, Country C". Note that the duplicate Country C has been removed.
There are a few "StringConcat" User-defined functions that I've found elsewhere on the internet, but they don't seem to be able to handle to conditionally generated IF Index array, which I would think is key to parsing between Countries corresponding to each Company in the list.
View 3 Replies
View Related
Apr 7, 2006
In a cell there is text and numbers, example: ABC123. In an other cell I want
to show the numbers only (123).
View 9 Replies
View Related
Sep 30, 2010
I have a long list of around 400 phrases, all in their individual cells. My problem is some of the terms have duplicate words in them.
Here's an example: [URL]
Is there any way to remove this duplicate text from the cell?
View 9 Replies
View Related
Apr 25, 2012
I am copying text (contest results from another website) and posting into excel. As it is formatted on the original site, it posts the place, followed by a period, then the team name, then a dash, then the score.
Example ... 4. Smokers Purgatory - 662.2858
To place it in our database we need the period removed from the place, and the dash and score removed.
Example ... 4 Smokers Purgatory
Is this possible to automate in excel or is there a way to format so that excel seperates the place, team name and score? Or should I be looking for a different method?
View 6 Replies
View Related
Aug 18, 2014
Is there a function that can remove all text and other characters from cell and only keep the numbers? The numbers can be randomly in the cell so not only in the end or beginning.
See attached file.
View 7 Replies
View Related
Nov 4, 2011
I have a name field that contains last name comma first name space parenthesis text parenthesis space parenthesis text (may have a space or hyphen within then a final parenthesis).
Examples:
Smith, John (MD) (Family Practice)
Brown, Alice (DO) (Oncology)
White, Joseph (MD) (OB/GYN)
I need to remove everything after the degree so that it looks like this:
Smith, John (MD)
Brown, Alice (DO)
White, Joseph (MD)
How can I do this?
View 2 Replies
View Related
Jun 30, 2012
way to use a function to remove text from a cell. I cannot use VB code, due to the spreadsheet being integrated in an operational software application - already tried it and get nothing but errors from the application. Was also trying to use a Find and replace function, but it's not working.
Here's the scenario - I have a cell that returns the weight of a product from the system, but it includes "LB" or "KG" in the cell along with the weight. I do not know how many characters will be returned to the cell, as it depends on the product. It could be a single digit up to 10 digits, including a decimal point. I need to clean up the cell to only a number, because in the next function, I am trying to round up the number that is left in that cell (won't round up with KG or LB in the way).
View 5 Replies
View Related
Jun 10, 2013
I have a report that is auto generated in Excel format but I need to summarize the hours worked. The output in each cell in column "I" can be any of the following combinations.
IE: 1h, 15m or 1h 30m
I have tried the following formula with some success.
"=IF(ISNUMBER(SEARCH("m",I32)), SUBSTITUTE(I32, "m", ""),IF(ISNUMBER(SEARCH("h",I32)), SUBSTITUTE(I32, "h","")*60, ""))
However, it wont work for the "1h 30m" combination.
View 9 Replies
View Related
Jun 27, 2013
I want to remove a string of text from the front and rear of a cell value and would like to do it with one formula. I have tried using LEFT,RIGHT and LEN. I would Like to use the SUBSTITUTE formula as the user can define the actual string to be removed.
I can achieve want i want using two columns i would just like to be able to consolidate down to one.I have tried nesting the formulas but i always seem to get an error.
Characters to remove
Raw data
Output
Front
dog
dogcatmouse
cat
Rear
mouse
dogratmouse
rat
Assume that the table uses stadard naming conventions for Columns(a,b,c...) and Rows(1,2,3...)
View 8 Replies
View Related
Jan 3, 2009
I am trying to remove the numbers from a cell leaving just the text.
Say cell A1 contains Blk1Crd2 I would like say cell B1 to contain BlkCrd.
And preferebly I do not want to run a macro.
View 9 Replies
View Related
Dec 3, 2006
What I would like to do is remove part of an email address from a cell.
Ex. if the was a cell that contained "someone@somewhere.com" I would like to make that cell only contain "@somewhere.com"
View 9 Replies
View Related
Nov 28, 2012
I have a cell in a column A1 where is written: "XYZ 492" and in another Column is written "492".
Now I want to remove the "492" out of the first cell with a furmular.
View 4 Replies
View Related
Dec 4, 2013
I need to remove only numbers from excel cell - I have tried using the "constant" function but did not work. I have thousands of cells with a consistent 4 digit number like this:
1000 the rest is text
How can I remove only numbers but leave all text in the cell and then if I can trim the cell so there are not any spaces at the beginning afte removing the numbers.
View 8 Replies
View Related
Jun 10, 2014
I have a large excel file with the top seven rows such as you see in the attached file. In row five there is a bunch of info before the month and the year. What I want to do is get rid of that info besides the month and year. I than want to sort each column by the month and year so that all the columns are in sequential order.
demo.xlsx
View 2 Replies
View Related
Feb 16, 2014
Actual
Result
london#123;new york#34;
london;
new york;
delhi#145;chennai#54;
delhi;
chennai;
hyderabad#748;
hyderabad;
[code]....
removing the # and numbers from text and add new line after ; symbol. So it would save me a lot of time in preparing status.
View 9 Replies
View Related
Jul 12, 2002
I have a column in which the cells contain values such as "012321 BGH YRK". Is there any way you know of that I can remove just the text from every cell and keep the numeric values? A mass operation because there are literally hundreds of these cells. I am using Excel 2001.
View 9 Replies
View Related
Jun 24, 2009
I have two txt file where the report is being generated but importing it in excel and using text to column distorts the data plus it has a header which repeats on every page... how can delete those header and tidy the sheet up. I have attached the txt header example.. Any help on this.
View 14 Replies
View Related
Jun 24, 2014
I'm working with a large range of data in single columns and I want to remove all text characters (a-z) from the workbook. There are some cells which have text characters with numerical characters so I'm struggling to find a way to isolate them.
View 6 Replies
View Related
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
Nov 9, 2009
I have copy some data from other program which when paste, it give as text value with few space at end of the text value ie 120@@@ (@represent spacing).
I try using text to column to delimited the space but it not working.
View 9 Replies
View Related
Jun 14, 2006
I often get spread sheets to work with that have a non visable/printable character (') in front of them. I haven't been able to find a way to get rid of them other than editing each cell and removing it. I am sure there must be a way. I have attached a small sample of the cells in question.
View 3 Replies
View Related
Aug 17, 2007
I'm trying to use the SUBSTITUTE function to remove spaces from my cells in column A. The trouble is My formula is removing all the spaces from the cell. My formula is: SUBSTITUTE(A1," ","")
I do however have many cells that contain a space between characters 5 and 7 and spaces at the end of the cell which have been padded out to 15 characters long.Its only the spaces at the end of the cells I need to remove.
View 3 Replies
View Related
Aug 13, 2013
Got a slight problem; I am making a "worker-plan", where you should be able to write a name on one file and have it updated (removed) from the equivalent columns on another file automatically. Here's an example with two separate projects:
Project 1 before and after changes:
Attachment 257366
Attachment 257367
Project 2 before and after changes:
Attachment 257368
Attachment 257369
You can see here how I intended it to work. When one worker is moved from Project 1 to Project 2, that worker should also be removed from those weeks in Project 1. The previous worker from Project 2 should also be removed from those weeks (in Project 2).
Are there any formulas that can make this work automatically? All week numbers will belong to the same columns in all files.
Edit: There are 30 files that should be syncronized, not just two.. I could also gather all files into one file with sheets, instead of having seperate files.
View 2 Replies
View Related
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
Feb 9, 2009
I am exporting lots of data from a website and for some reason to do with html i am getting   in a few cells in my description column (column C), i think that means "& " in html. this occurs in some cells but not others when i paste it into Excel. I would like to remove these characters.
I know I can do it with crtl H and the replace field blank but I would like a formula so in the future the user will simply have to paste information and then get converted information out (as they will struggle to use excel).
View 4 Replies
View Related
Jun 18, 2009
I'm trying to convert variable length strings which are being copied from a display and loaded into an array.
I have it working fine for the majority of the data, which comes in looking like "*ABC@US" or "*AABC@US"
However, some of the data looks a bit different, particularly lacking the @ symbol. So what I end up with is
"*ABC US*ABC US*ABC US"
What I need to get to is just "ABC US" FYI the US part can be 1-5 characters.
SO... I need a way to truncate anything after the second instance of the asterisk. Haven't been able to get it to work using various trim, mid, len, left, right, etc functions.
View 9 Replies
View Related
Jul 9, 2009
I know how to remove the first part of a text, but not the end. I have a very large amount of data in which the first column contains a product description and then the UPC code. I need to isolate the product name from the UPC code into 2 columns. I used =RIGHT(B2,14) to isolate the UPC, but since the length of the product name varies, I'm not sure how to isolate the product name. I have looked at using the TRIM and TRUNC functions without any luck. 'Text to columns' doesn't work because I have multiple spaces, 'Text to columns' would work if I could used 2 digits as the delimiter, but the function doesn't allow that.
Can someone please suggest a function or formula for this?
Here is an examples of how the text appears in the field. (Note: I only need to cut off the UPC code, I need the measure information to stay).
some really long product name 12 oz 5 bag 09-99999-99999
another shorter name 2 oz 09-99999-99998
View 6 Replies
View Related
Apr 3, 2013
I am trying to figure out if there is an easy way for me to remove duplicate text when concatenating cells together. For example if I have the following cells defined as such
A1 = red green orange
B1 = orange blue purple
when i do a CONCATENATE(A1,B1) I obviously get red green orange orange blue purple
How can i get excel to remove that duplication of the word orange without assigning each individual word to it's own cell and using the remove duplicates function?
View 3 Replies
View Related
Sep 26, 2009
Im trying to loop through all the files in the folder. and look at the filename if the filename contains JPE_s.jpe delete the file.
View 14 Replies
View Related