Finding Part Of Text Then Copy Value Of Other Cell
Mar 26, 2014
Here's the situation (an example):
I have sheet1 that contains the following information
Column A Column B
company1 - book value 0,5
company1 - earnings 0.2
company1 - R&D 1111
company1 - total assets 200000
company2 - book value 2
company2 - earnings 333
company2 - total assets 12
So column B contains only numbers and note that for company 2 I do not have any numbers on R&D.
I have in sheet2 only once the company name. I would like now that if column a contains the text "book value" to have the value of column B pasted in sheet 2 column B. Same for earnings to be pasted in column C. R&D in column D and if R&D is not present for that company then the value should say something like unknown.
View 3 Replies
ADVERTISEMENT
Aug 22, 2014
I have to sort list of thousands name (3000 names) and remove duplicates. My problem is majority of the names have their title (i.e) Prof. Dr. Ir. Sir. etc typed in, so I need to copy the title in different cell and have their name only. Here's what I expect:
Current List ----> Column A -->Column B
Drs. H. A. Andrew Boston, MRE. ----> Drs. H. --> Andrew Boston, MRE
Drs. H. Andrew Smith ----> Drs. H. --> Andrew Smith
H. Abd. Mohammed Junus ----> H. --> Abd. Mohammed Junus
Prof. DR. Jane Doe, MD ----> Prof. D --> Jane Doe, MD
Prof. DR. Ir. H. Randy Wong, MBA --->Prof. DR. Ir. H. -> Randy Wong, MBA
Dra. H. A. Karen Patel ----> Dra. H. --> Karen Patel
Drs. H. A. M. Kangkong ----> Drs. H. A. --> M. Kangkong
Prof. Drs. H. A. Kareem Saleh, Ph.D -> Prof. Drs. H. A. ->Kareem Saleh, Ph.D
Dra. Hj. Nina Schorder ----> Dra. Hj. --> Nina Schorder
Ir. Abdul Jabbar ----> Ir. --> Abdul Jabbar
View 1 Replies
View Related
Jan 17, 2007
My file is included with alot of cell in the following format:
aaaa. bbbbbbb (ccccccc)
I want to copy the first part (aaaa) into column A and to copy the second part (bbbbbbb) in column B. Both part can vary in length: in this case their length were 4 and 7 but basically they can have any length. How can i do this. See also the attached file.
View 9 Replies
View Related
Nov 15, 2012
Example: A1, I go to school (001). I would like to copy only (001) and past to B1. like that and process to the last row of A1. or I would prefer manual last row.
View 9 Replies
View Related
Jun 15, 2014
I want to know how to display part of a cells text value, inside another cell.
Suppose in cell A1 i have "20-Jun-14"
How would I get cell B2 to display just "Jun"?
View 4 Replies
View Related
May 15, 2014
I have a column of data with letters in each cell, no numerical, only alpha. Now, some of those cells contain the letters "adj sub" as part of the text string in each cell. "Adj sub" is always at the beginning of the text string. As an example, a cell will look like this - "adj sub mhm". I want to delete rows whose cell description does not contain "adj sub" as part of the text in the cell.
View 5 Replies
View Related
Oct 16, 2006
I have been working on this worksheet part of which is attached herewith. I would like excel to automatically enter Updated/Inserted in column B against Individuals' names as per the instructions given in column A. For example: As per instruction in A9, B13:B16 should show Updated. I have tried to use the nested if function, but it does not work as I want it to. Also as I am not used to macros or VBA codes, could this problem be solved with formulas?
View 2 Replies
View Related
Feb 25, 2013
I have a cell that has this
ALG-g30
And I have another cell that looks like this
ADL G28 Clear Lamp Chimney 8-1/2 inches
I want the cell to look like this
ADL G30 Clear Lamp Chimney 8-1/2 inches
Basically I want to take the g30 and convert the "G" to uppercase and add it with the "30" to the other cell..
I need to do that with 40 rows..
How would I do that?
I copied the rows here down here --- [URL] .......
View 1 Replies
View Related
Dec 2, 2011
I need a way to copy part of contents from a cell, the cell contains product information like size, name and weight of a product, and I need a copy the weight to be put in it’s own cell, here’s a copy of one cell “E65 MAPP SKDV 5 DIGIT 90G ST.K” the information I need from this is “90” the number is always followed by a capital G, but it’s between two and three digits where the lowest is 55G and the highest is 300G. Is this possible?
View 6 Replies
View Related
Feb 12, 2014
Is there any way to remove the first part of a string of text in a cell and save the second part?
The first part of the text string is a team code that has a variable number of numbers, capital letters and sometimes spaces. The second part of the text string is a variable number of words in a team name that all start with a capital letter and have lower case letters. Every line has a different team code and team name.
The original spreadsheet also has a column with just team code. Is there a way of using this column to "subtract" the team code from the text string to just leave the team name?
View 5 Replies
View Related
Jun 29, 2014
I need to create a macro to do the following:
Search the activecell for a text string (a), and then either paste in text string (b) at the end of the cell if (a) is found, or text string (c) if (a) is not found.
For example, if the activecell has "AA/" in it, I want the cell to become "AA/01" (pasting in "01" at the end), and if the cell has just "AA" in it, I want it to still become "AA/01" (pasting "/01" at the end). The macro will be linked to a commandbutton.
View 7 Replies
View Related
Jun 18, 2009
I am trying to do a vlookup and am having soem issues. I have data like this in the cell i am using as the reference: "60030 - COLUMBUS, OH". The first column of the range I am searching would have "60030" in it. What i need to know is how do I get the vlookup to just reference the first 5 digits in the reference cell? As you can see by the formula below, I set the logical value to true hoping that it would find the closest value, but it did not work. =VLOOKUP(A7,sdoalign,3,TRUE)
View 2 Replies
View Related
Aug 20, 2006
I have a column of cells with similar to the following text.
First Marine Avenue 18 1303 11 1
There will always be a final 4 groups of text numbers, each with a space
between, but each having different number of numbers (this particular
sequence has 2,4,2,1 - but others may be different, but always 4 groups)
The true text ( a series of Road names are potentiaaly all different, having
a sequence of words that may be up to 5 words long before the numbers start)
I need to extract the 4 groups of numbers into seperate cells, leaving the
Road name text in a singe cell. I would then have a table of 5 columns, the
first the Road text, and the next 4 columns being the group of numbers, which
I would then format as numbers.
View 12 Replies
View Related
Apr 8, 2007
I am creating a sheet with the cell information coming from different cells. I want to bold and/or underline a part of the cell to add clarity.
For e.g.
Cell A1 = "Trans X" (Name of the transaction);
Cell B1 = "System Y" (System where the transaction exists)
Cell C1 = "Type Z" (Type of transaction)
I want to create a cell which has
Newsheet.Cell (x,y) =
"Name: Trans X
System: System Y
Type: Type Z"
I created the String by reading and concatenating the values, but I am not sure how to add the formatting to a part of the string.
View 3 Replies
View Related
Jul 17, 2007
I want to put text after firsr 15 chars to new row.
View 5 Replies
View Related
Aug 8, 2007
Consider the following:
Cell A1 has this text in it:
WT*495*001559369~G3**D1234567**XX**20070626*1740****DHLC*20070807~B4G*RX*1~C32*UDD**UAD~ITQ*05*3****20030711*12~N1*FF*LALALA*25*00802109480~N3*12A46 KRESSASLE
Is it possible to somehow filter, search, find, etc, and basically clean cell A1 so that in the end it has just G3**D1234567?
I made a search macro, but the problem is there is so much text that it takes 2 seconds per cell to do a find. There are 6 columns with 65000 rows. I assume if I clean up each cell and do a "xlWhole" instead of "xlPart" in the find code, it will be much faster.
A1 = WT*495*001559369~G3**D1234567**XX**20070626*1740****DHLC*20070807~B4G*RX*1~C32*UDD**UAD~ITQ*05*3****20030711*12~N1*FF*LALALA*25*00802109480~N3*12A46 KRESSASLE
Result:
A1 = G3**D1234567
Possible?
Note that all rows do have a "~G3**" before the actual number I am doing a search for.
View 5 Replies
View Related
Jan 31, 2008
in order to hyperlink a single peice of text in a cell and not the whole cell I have created a shape with no fill or line but added text. I then hyperlinked it to a location in the workbook. When I set the Move and size with cell property I am not geting the expected result. If I resize a row well above that cell, the object isn't following the cell it wa placed in. I would be happy with alternative mechanisms for putting independantly linked text.
View 4 Replies
View Related
Mar 2, 2012
I want the VB Code to do the following;
For each row in Column C, if the text starts with "Calls from service no", it must extract the last word and paste it into corresponding row in Column A. So if the macro finds a cell in Column C starting with "Calls from service no..", then the last word (the last word will always be a number and is seperated with a space) of this cell must be pasted in cell A45. So it must continue for all occurances in Column C. Sample of text in cell = "Calls from service no 0431324345" and "Calls from service no 3242134254" etc.
I also require similar, but this time it must extract as shown below.
If text is found in Column C starting with "Local" or starting with "Long Distance" or starting with "Mobile", only this text, ie "Local" or "Long Distance" or "Mobile" must be pasted in Column B.
It can be 2 different macros that I can run.
View 9 Replies
View Related
Apr 2, 2007
I am building a summary spreadsheet which will bring in a number of values from other spreadsheets located in folders on a network. Each set of external references will return the same cells, but the location and filenames are different. In order to make it quick and easy to modify the file names and locations without having to change the cell references in my summary sheet i want to type the full reference in a cell as text then use this in another cell as part of the external reference...
View 9 Replies
View Related
Nov 24, 2008
I need to find the "x" in range C2:C44 and replace it with a value (variable) specified in cell I2
The catch is that I then need to be ablt to change that character when I2 changes.
Coloum C
*VER
*TxSTATUS
*ON
*OFF
*TxBANDS
EG
I2 - Variable = B
*TxSTATUS will become *TBSTATUS
I2 - Variable = A
*TxSTATUS will become *TASTATUS
But " *OFF " should not change.
I can change *TxSTATUS to *TBSTATUS but then I can change *TBSTATUS to *TASTATUS
Please see attached example file as it shows it better than I can explain it.
View 11 Replies
View Related
Jun 1, 2014
I'm running Excel 2010.
In a field containing this: Bergamot, Orange*(11,16) I want to put a space before the asterisk. There are hundreds of these in the spreadsheet with other text before and after the text to be replaced. I made sure the field is defined as a text field.
I searched on "*(" and said replaced with " *(" and ended up with " *(11,16)" - the Bergamot, Orange was removed from the field.
View 6 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
Jan 11, 2007
This is not related to macro - it's an excel question regarding wrapped-around text within a cell (i.e.: text brought onto next line by <Alt>+<Enter>)...
SayI have the following in a cell :
Car<Alt>+<Enter>
Truck<Alt>+<Enter>
Van
and say I want to add a figure (in this example 1A) to the first part of the cell and then another to the second line of wrapped text and so on. How can I split the cell (or lookup the first 'wrapped' line) so that I can then perform changes (using formulas with '&' to combine etc or whatever) so that in the end cell have the following:
Car 1A<Alt>+<Enter>
Truck 2C<Alt>+<Enter>
Van 1B
View 7 Replies
View Related
Jan 21, 2008
I need a formula which I am using to count instance of sickness. I include a sample copy of my data which I hope will make my request clearer! I'm currently using the below formula to count the number of continuous instances of any code starting with "SICK" =(SUMPRODUCT((LEFT(C$10:C$37,4)="SICK")*(LEFT(C$10:C$37,4)<>(LEFT(C$10:C$37,4)))))
I would also like this formula to count any code starting with LTS as well (Long Term Sick). Due to the nature of sickness there may be continuous periods where both SICK and LTS codes are used, at the moment I can not come up with a formula to return the value I need. These columns may contain other codes but for simplicities sake I have only shown the relavent ones.
View 2 Replies
View Related
Jan 12, 2008
im trying to find and delete records within a column if they occur twice. this works great right now but I want it to exclude the top 8 rows... i think it might have something to do with the LookAt:=xlPart constraint ...
View 4 Replies
View Related
May 30, 2014
I need to copy information in one cell to only part of another cell. For example:
C1:Office Name N1:Path
C2:Houston Office N2:OU=Houston Office,DC=contoso,DC=com
Trying to copy from anything in cell C2 to after the = sign before the comma in cell N2.
View 9 Replies
View Related
Feb 27, 2012
The formula has to include a range across each row (for each student). The formula has to search for specific text contained in the classnames, and then return the result along the same row.
Below is an example, which I hope saves OK in the thread. If not I'll upload an Excel file:
A B C D Results:-
1 class1 class2 class3 class4 Gg Hi Fr Sp
2 10m/Gg1 10m/Hi2 10m/Fr1 10m/En1 TRUE TRUE TRUE FALSE
3 10n/Hi1 10n/En2 10n/Sp1 10n/Ma1 FALSE TRUE FALSE TRUE
View 14 Replies
View Related
May 17, 2006
It's difficult to explain, the attached shows the situation better. Basically there's a picture that is somehow linked to a cell. But, you can update the picture or the cell and the other one gets updated.
View 3 Replies
View Related
Sep 7, 2009
I am trying to extract text from one cell into another, for example if in cell A2 I have text " {Operating System Issue} ~Word~ I got a new PC i used to have avaya" in cell b2 i want {Operating System Issue} and in Cell c2 I want ~Word~.
This is what i am doing, in Cell B2 in putting formulla as =MID($A2,FIND("{",$A2,1),FIND("}",$A2,1)) and in cell C2 i am putting formulla as =MID($A2,FIND("~",$A2,1),FIND("~",$A2,1)). However in cell C2 thsi si what I am getting
~Word~ I got a new PC i used
i dont want anything after "~" sign. What i need is only the text that is in betwwen "~" sign.
View 11 Replies
View Related
Jul 3, 2014
I am trying to create a cell that show the value of all specified rows with specific name.
For example:
Apples $2 $5 $10
Oranges $5 $10 $50
Apples $5 $ 6 $ 60
(each of these will be in their own cells, 3 rows and 4 columns)
How do I create a cell that will sum the total value of all the Apples by using Apples as the variable?
View 1 Replies
View Related