Copy Text Of Cell If Certain Row Contains Specified Name?
Apr 22, 2014
In a workbook I need to find all items belonging to a certain person and then copy those items to a new sheet, possibly separated by commas. To make it simple, see example :
Sheet 1 :
Fruit owner APPLEPEAR GRAPE BANANA
Fruit ownersJimJulia MirandaJason
JuliaMatthew MatthewJim
Sheet 2 : this is where I want to put the results
JimApple, Banana
JuliaPear, Apple
JasonBanana
MirandaGrape
MatthewPear, Grape
View 4 Replies
ADVERTISEMENT
Jul 31, 2014
Here's an interesting one:
A1 contains a text string which is both bold and unbold (
B1 is blank
I need a macro which scans the cells with text and copies the BOLD portions of the text string into the adjacent cell.
Example:
A1
The sky is blue
Macro is run
B1
sky blue
View 11 Replies
View Related
Jan 17, 2013
I'm having a 6000+ records, (contacts DB) exported in Excel 2003 format from MS Outlook.
Except the "First" and "LastName", all other contact elements are in the field "Notes" (which is the BZ column according to the exported outlook layout) multiplied by 6469 (records in total)
Useful information are included !!!
I'll give an example of a record...
Column: BZ, Row: 543 says --> "2110000000-6989000000, 1TOK_TER:17-11-010(25 DAYS LESS),
KATERINA 25 (MANTAS KALNNNNN_HYPERTENSION)1000-150, W:95_105, , HR THE 16wks_US NEFRON OK,
NT OK_B EPIP OK(GOLF BALL)_KAMPILI ORIAKI(DIAITA)_DOPPLER OK, O+,TEST OK(TOX_), , , , , , "
Now, I want every time to take the part of the text says "TER:something..." (part of which is date, but not every time with the known format dd-mm-yyyy, as you see here is yyy, followed by something else, with parenthesis here and maybe more data) and copy it in a new cell..., e.g:CO Column, same Row...
Above and every field which by the way is formatted as General (and it is text mainly) are made by merging older excel fields where data laid here and there, that's why you see the commas...with the method of a module with the following code:
Function MyMerge(Rng As Range)
For Each Cell In Rng
Temp = Temp & Cell.Value & ", "
Next Cell
Temp = Mid(Temp, 1, Len(Temp) - 2)
MyMerge = Temp
End Function
Note1:Records with the above string (TER:dd-mm-yyy) are 771 from 6469.
Note2: As an alternative solution I can see an extraction of the TER:dd-mm-yyy string and the copy in a new place, like the:CO Column, same Row...
View 9 Replies
View Related
May 22, 2014
I have a list of text quotes in column A. I then have column B which will have a Y entered if the quote is used in a presentation. I currently have around 100 quotes.
On a separate sheet, I want to be able to effectively say in one cell - If column B has text in it, copy the quote from column A. But the difficult part is how do I make this happen so that I can have multiple quotes being pulled into one cell?
View 11 Replies
View Related
Jul 15, 2014
I have a spreadsheet where a cell equals another cell. but i want to convert it to a value.
how can i do that for a range of rows. i know how to do that for one cell.
Code:
If Range("B4:B25").Value = "" Then
Else
Range("B4:B25").Value = Range("B4:B25").Value
End If
View 6 Replies
View Related
May 14, 2009
I have the following code in another workbook that is used to populate a cell on the same sheet based on input to cells in column 'A'.
Is it possible to modify this for the attached workbook to select a cell with data (numbers) on the Input Data sheet in column 'E', add text to the beginning, ('CG' in this case), and paste the result to the Import Template in the corresponding cell of column 'A'? I currently have a formula copied to dozens of cells in 'A' but since the number of rows for the Input Template is variable, there are usually cells in 'A' that contain CG but no corresponding data in the rest of the row.
View 8 Replies
View Related
Mar 7, 2014
I'm trying to copy data from one excel sheet to another excel sheet. However, the data to be copied is dependent on the 'client name'.
To explain this further, in the first list I have a detailed report on our clients and the services provided to every employee of that company/client.
However, the sheet two only needs the names of the employees that belong to a specific client.
This can be done manually by setting a fliter on the name of the client/company, but I need to be automated. To ensure only that specific company/client company's employee name is copied.
View 2 Replies
View Related
Oct 20, 2012
I want to do something similar but it is looking for values between parentheses "()" and won't work with the VB suggested. I've seen some other formulas that do find the content within the parentheses but returns #VALUE! if there is not a parentheses in the field. I'd like it to copy the original value of A2 into B2 for those instances. PROBLEM: Database with First Names in A2 where some have "nicknames" entered within () and I need a clean column of values to use. "IF A2 contains () then copy (contents) into B2, else copy A2" is how I'd write in english... not sure how to do correctly in code/vb.
VB:
Sub PartialText()
Dim MyValue$
Dim ChangedValue$
[Code]....
View 5 Replies
View Related
Jul 19, 2014
Is there a way of Copying the Characters in a Cell but excluding the text from the copy.
EG:
305 GP
1,328 GP
10,250 GP
1,337 GP
But i only want the numbers and not the GP.
GP is Always at the end.
View 8 Replies
View Related
Jan 27, 2014
I have an Excel problem which I have been trying to solve for a while but so far I have had no luck.
I need a VBA script that can copy only text that has a font color of red from a cell. The cell has both black and red text. I then need to copy the result into an adjacent cell.
An Example (A1):-
This is an example of a cells content.
It has both red and black text.
I want the macro to search through column A and copy only the text in each cell that is red.
The result in (B1) will be:-
example of a cells
red
View 3 Replies
View Related
May 16, 2013
I'm basically trying to copy the text and formatting (colour fill) from a single cell into all cells I select. So far I managed to get the auto fill to work but the text only copys to the first cell I select of the selection.
Here's the macro I have:
Sub Macro7()
'
' Macro7 Macro
'
' Keyboard Shortcut: Ctrl+f
'
ActiveCell.FormulaR1C1 = "1 Completed"
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 5287936
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End Sub
View 1 Replies
View Related
Mar 26, 2014
Im looking for a formula that will highlight the cell where i can copy it if that cell contains a certain text.
My text will contain "FAS CEH" and I want to be able to copy that row plus all the other rows it copy and move it to a new sheet. Ive read some forum but i cant find a formula that will highlight/copy the entire row.
View 1 Replies
View Related
Mar 10, 2004
I need a macro to automatically copy the contents of a cell to a text box.
View 7 Replies
View Related
Jul 9, 2014
I have been trying to crack this all afternoon to no avail - I've read every thread on it and not been able to customise the macros to work! In fact - i've never written a macro before!
If cells in Colomn E on Sheet '2014 Events' contain the text "Park" - Copy the Row to Sheet 'Park Events'.
View 3 Replies
View Related
Feb 14, 2007
If a cell contains the formula =b1 and the result shows as zero;
Is there any way of getting the text "=b1" in a cell next to it instead of zero?
View 9 Replies
View Related
Oct 10, 2008
I have a database that I need to extract information from. Column "D" has a string that runs from 25 to 50 characters long, and I need to pull specific information out and need it to be inserted into a new column for each row of my database. The data that I need to pull from column "D" is always located between the first occurance of "=" and the first occurance of "&"
View 2 Replies
View Related
Dec 9, 2009
I'm not very good at programming with excel and ive looked every where for how to do this but i cant find it ....
View 9 Replies
View Related
Sep 11, 2012
I have a huge data set as given follow and want to Copy a the value of treatment from the cell having Treatment description at some other sheet through VBA
'UPDATE [XYZ 1213]
SET TreatmentDescription = '000'
WHERE ( ("Abc" < 00) );'
'UPDATE [XYZ 1111]
SET TreatmentDescription = '093'
WHERE ( ("wer" < 00) );'
Like in upper code I want the output sheet 2 as Cell A1 = '000' and A2 = '093' and so on
View 3 Replies
View Related
Sep 24, 2009
I have a drop down list. When I choose something from the list, it creates a description (text) in the next cell. I need to be able to copy/paste the text from the cell, but it will only let me choose the formula instead.
View 4 Replies
View Related
Feb 1, 2014
I have two separate data files that I am trying to combine into one worksheet. One set of data looks something like this:
Column A Column B ColumnC
Date1 Name1
Date1 Name2
Date1 Name3
Date2 Name1
Date2 Name2
Date2 Name3
This is repeated for something like 200 dates, and there could be anything from 1 to 10 lines for each date, for a total of over 1000 rows.
The other data file has this information:
Column A Column B ColumnC
Date1 Place1
Date2 Place2
Date3 Place3
I.e. one line for each date.
I want to combine the data so that Column C contains the Place data. All I could think to do was combine them and then sort by Column A, so I ended up with this:
Column A Column B ColumnC
Date1 Name1
Date1 Name2
Date1 Name3
Date1 Place1
Date2 Name1
Date2 Name2
Date2 Name3
Date2 Place2
And then I would just copy and paste to end up with this:
Column A Column B ColumnC
Date1 Name1 Place1
Date1 Name2 Place1
Date1 Name3 Place1
Date1 Place1
Date2 Name1 Place2
Date2 Name2 Place2
Date2 Name3 Place2
Date2 Place2
Ultimately I want to sort the combined data by Column C, I just have to get the data in there first.
Is there a formula or macro or something I could use to copy the Place names automatically? Each worksheet with 1000 lines and several dozen worksheets means I'd have to copy and paste dozens of thousands of times, which is a bit tedious.
View 3 Replies
View Related
Jun 2, 2014
write a macro to copy a set of sentences in an Excel Cell.
Excel cell contains set of sentences under 2 categories.
OK Points:
* ----------
* ----------
* ----------
Improvement Points:
* ----------
* ----------
* ----------
I need to copy the sentences under the heading improvement points. Enclosed trial excel sheet for further ref.
View 1 Replies
View Related
Nov 21, 2011
the following situation:
I have several worksheets in a file with worksheet 1 containing all the raw data I am working with.
In worksheet 3, I have hundreds of rows containing different texts in column C. Let's call this texttolook4.
I want search for texttolook4 (all rows) in worksheet 1 (column D) and copy the worksheet 1 row if found in a new worksheet.
View 1 Replies
View Related
Sep 19, 2012
I have the word department followed by the department code in column A in an excel spreadsheet ie Department 50. Then say after 30 lines it may say Department 51 and so on. I want to copy down the cell containing the text "Department 50" in coulmn A until it reaches the word "Department",I then want it to copy down that cell ie "Department 51" until it reaches the word department again and so on. How I can do this?
View 4 Replies
View Related
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
View Related
Aug 29, 2007
I have a cell that contains various data but in the cell there will be a string of characters that will begin with either ON or TN followed by numbers. What I would like to do is have the sheet look at that cell and if there's a TN12345 (or any combination of numbers) or an ON123456 (same idea as the TN) I would like the sheet to pull just the ON or TN number out and paste it in a specific cell. The ON would have it's own cell to be placed in as would the TN.
Here's an example. C5 contains various data, a mix of text and numbers but it will have either an ON or a TN or both. I would like the sheet to automatically pull the TN number out and place it in A5 and the ON in B5. I would like this process to repeat all the way through the sheet to the max amount of rows since I have no way of knowing how many rows I'll need. Can this be done with a simple IF formula or does it have to be done in VBA or is it not possible at all.
View 7 Replies
View Related
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
Feb 15, 2014
I have a spreadsheet where I enter text values in a cell, e.g. (.5 x .5) x 2 x .009. I want to find a way to automatically populated the cell to the right with the formula version, e.g. =(.5 * .5) * 2 * x .009 and format as three decimal place number.
One other question, is there a way to enter a template for entry in a cell. It would be nice if the text value above would take care of the parenthesis and multiplication signs for me.
View 3 Replies
View Related
Jul 13, 2014
a1=aaa
a2=111
a3=222
a4=333
a5=bbb
a6=444
a7=555
a8=ccc
a9=909
a10=234
if a1 = aaa then copy a1 to b1 until the cell =bbb
if a5= bbb then copy a5 to c1 until the cell =ccc
if a8= ccc then copy a8 to d1 until the cell = ddd.........
View 1 Replies
View Related
Aug 11, 2011
Monthly, I get a CVV of data with associated statistics. I'm generally only interested in rows with the first cell (A) containing specific words.
The cells (column A) are those such as below:
make a webpage free create web page free make a website with yellow pages how to create web page
So, if I wanted to take copy the rows where the cell contains the text 'create web page'. I want it to take 'create web page free' and 'how to create web page' and the cells in their respective row.
I would like these rows to be copied into a new sheet.
View 7 Replies
View Related
Jul 20, 2013
I have attached a file showing what I would need the output to look like. I need to know how to search a range of cells (in this case column E) and if the day of the week is Wednesday to copy that entire row to the Worksheet titled Wednesday. I would do it manually but I have several thousand rows of data to get through, and there has to be a better way.
Example.output.xls
View 3 Replies
View Related