If Cell In Col. A Exists As Part Of String In Col.B Then Color It

Dec 29, 2009

i have two columns in my worksheet A and B. Now col. A contains of words and column B contains of long strings. I want to make those parts of col. B which match to the content of A.

For Example It is now:

Col. A...................Col.B
word....................öladföljadfwordpapdfadlk
word2..................öadsfoewordpasdfword2rs

Should be:

Col. A...................Col.B
word....................öladföljadfwordpapdfadlk
word2..................öadsfoewordpasdfword2rs

I am attaching this example as excel file. I will be very thankful if some one could add the formula to this file and upload it.

View 4 Replies


ADVERTISEMENT

Lookup Function: Compare Every Part In The All Parts Worksheet To See If The Part Number Exists On The Active Parts Sheet

Dec 10, 2008

I have a spreadsheet with 2 worksheets. On the first "active parts" I have a list of active part numbers and on the second "All Parts" I have all of the parts available.

I want to compare every part in the All Parts worksheet to see if the part number exists on the Active Parts sheet - if it's there, I would like it to return the value "Active" in column B in All Parts. I have a formula in column B in All Parts that seems to work for the first few, but as soon as it finds one that is active, the rest of the cells below all return "Active".

View 3 Replies View Related

Remove First Part Of String Of Text And Keep The Second Part?

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

Extract And Copy Part Of Text String From One Cell To Another?

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

Search If String Exists In Another String?

Mar 19, 2013

I am trying to lookup if a string like a name exists in another string which has a buch of values for example to see if andy exists in a string which has data like andy;sandy or sandy exists in andy;sandy

View 9 Replies View Related

Msgbox If Background Color Exists In Range

Mar 11, 2009

If there are any cells highlighted in red (using the conditional formatting in excel 2003), I want a message box to pop up when they go to save saying something along the lines of, "Hey buddy, you really need to deal with this."

View 9 Replies View Related

Find String Of Text Plus Cell Index Color?

May 3, 2013

I am trying to come up with a macro that will search a range for a specific string of text plus Interior.ColorIndex = 4. The range can have the text in it multiple times but i only want the macro to fire the next line of it if the cell address also has that color. Is there a way that can be done? My code below stops after it finds its first occurrence of the string and moves on to the next lookup. How do i make it look for not only the value but the index color?

View 5 Replies View Related

Excel - UDF That Returns String Of Multiple String Objects / Possible To Color Font?

Sep 19, 2012

I have a udf that returns a string to the cell. The string is made up of multiple string "objects". What I am wondering is if I can set the font color of certain objects so that when the final string is built and returned, the font of those portions is set.

Ex. of simple idea (this is not actually my code, just a way to illustrate. I realize there is no point to this UDF):

VB:

Function StringReturn (Str1 As String, Str2 As String, Str3 As String) As String
StringReturn = Str1 & Str2 & Str3
End Function

Now what if I wanted Str1 and Str3 to be blue, and Str2 to be red for example. So that when the UDF calculates it would return: Str1Str2Str3

View 2 Replies View Related

Delete Row If Cell Contains Certain Text As Part Of Text String?

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

Pull Out Part Of A String?

Oct 18, 2013

formula that will pull out the number preceding the * 60 in the text below? In this particular case I would be looking to get 5 as the result. That number could be any number but in the example below it happens to be a 5.

Channel Tune Duration in Seconds} (ID) >= (5 * 60))

View 4 Replies View Related

VLOOKUP And SUM On Part Of String?

Apr 13, 2012

My sheet contains values like these:

A/5
A/3
B/4

What I want to do is sum all the values after the / for a particalur value before the /:

A 8
B 4

I already tried VLOOKUP, but this function wants you to point to a certain cell to return instead of a just a part of the cell. It should return 5 for the first row to be able to perform a sum for every value of A.

How can I perform such a calculation without having to copy the values to separate cells? Can I contain all of this in one function?

View 5 Replies View Related

VLOOKUP For Part Of A String

Oct 4, 2012

Im sure this cant be done because it defies the logic of the LOOKUP function but I know there are some clever people on here so i thought id ask!!

I have 2 workbooks containing similar data from 2 different sources; the one common data item in both is a clients address but have the age old problem of data quality, which needs sorting eventually but i need a quick fix!

In workbook one for example the address will be recorded as RUSKIN RD

In workbook two the address will be recorded as RUSKIN ROAD

A simple look up wont work obviously as the 2 values dont match, then i thought of using the LEFT function but again this goes against the logic of the VLOOKUP.

View 2 Replies View Related

Remove Part Of String

Oct 29, 2009

I have a list of data that populates B2:B2900
This data is often prefixed by a 'reference code' that I wish to be removed.
Now rater than perform this manually aprox 3000 times is there a formula or some VB code that will complete this for me....

eg

The list of data is shown like:

SC7547-05 - Payne, Freda
SC8706-08 - Rungren, Todd
SC8714-05 - Travis, Randy
SC7517-03 - Beach Boys, The
Love Song
Now You're Gone
SC7512-01 - Horton, Johnny
SC8721-15 - Journey

So I wish for the SC7547-05 - to be removed from the first example to just leave Payne, Freda and continue this throughout the list
However if the data is found not to include this code (as in the 5th/6th examples above) leave it alone

So if the code of formula is run for the above the outcome would be....

Payne, Freda
Rungren, Todd
Travis, Randy
Beach Boys, The
Love Song
Now You're Gone
Horton, Johnny
Journey

View 9 Replies View Related

Vlookup Part Of String

Sep 29, 2006

I'm trying to use this formula to lookup the value in the array that matches, however, the first 4 numbers aren't known (thus why I'm doing the lookup) =VLOOKUP("*"&C2, 'KLIF Data'!A:C,1,0)

The * is being interpreted as a character, is there a way to perform the Vlookup function using a wildcard? Or just ignoring the first 4 characters of the cells in the array would work.

View 7 Replies View Related

Return Part Of A String

Mar 15, 2007


TX_jhfft_DATA.05-32_65 TGIF

I need to take out the number in the middle, from the period to the space. The number varies in length so just using the mid function doesn't work. Does anyone know how to modify the mid function to return all chars between the period and the space or is there some other function that may work?

View 9 Replies View Related

Change Color Of Part Of Row If Condition Met

Dec 6, 2012

I'm working on a macro to change the color of the row between column W to AN if in column K the value is "FCA" (without quotes).

So far I have this, but it doesn't work:

Code:
Sub Test()
For Each cell In Range("K1", Cells(Rows.Count, "K").End(xlUp))
If InStr(1, cell, "FCA") Then
Range("W" & cell.Row & ":AN" & cell.Row).Interior.ColorIndex = 3
End If
Next cell
End Sub

View 1 Replies View Related

Vlookup To Search For Part Of A String?

Nov 17, 2008

If I have a store number (say 1234) and I am trying to search for something which contains 1234 (i.e. the whole string of ABCD1234, ABCD1235, ABCD1236 etc) is it possible to do this in one VLOOKUP formula?

One way of doing it would be to VLOOKUP("ABCD"&"1234",....) but I would rather do it the other way around, to prevent the formula from not working.

View 4 Replies View Related

Changing Colours Of Part Of String

Feb 22, 2013

I have a conditional formula which gives a value based on what the User specifies.

Example of formula is:

=IF($B$1=0,"CONTACT PERSON - OPTIONAL",IF($B$1=5,"CONTACT PERSON (FINANCE ONLY) - MANDATORY",""))

If the result of the string is " CONTACT PERSON (FINANCE ONLY) - MANDATORY " then
- word MANDATORY (not the whole string) should be in RED
- words (FINANCE ONLY) should be in BLUE
- remaining string should be left in BLANK

Not intending to use VBA. Is this possible?

View 10 Replies View Related

Regex Evaluate Part Of A String

May 19, 2014

I am currently working on creating a dialogue which will allow the user to input a range of worksheets to use for a pivot table.

I want the user to be able to input a variable into the dialogue. For example, I want the input "n-5 - n-1" to mean the 6th from last to the 2nd from last sheets. I am trying to find n - ([0-9]+)? and replace it with Worksheets.Count - $1. In other words, if there are 10 sheets, I want to transform "n-5 - n-1" into "5 - 9".

Here is the code I have so far:

[Code] ....

This has been working for strings like "n" or "n-4" but not "4 - n-3" or "n-5 - n-1".

Here is the code I use afterwards to interpret the string once the n's have been replaced:

[Code] ....

I'm new to Regex and VBA in general.

View 6 Replies View Related

VBA To Delete Part Of Text String

Aug 15, 2014

I am trying to delete part of a text string for a range of cells. The code I have so far deletes the first set of letters but is looking in every cell in the range.

Ideally I would like it to only look in the cells of col B where there is data then only delete the first 10 letters if the cell begins with "Service ID"

Sub DeleteServiceID()
Dim c As Range
For Each c In Range("B1:B1000")
c.Value = Right(c.Value, 10)
Next c
End Sub

View 4 Replies View Related

Find Part Of String And Delete

Feb 25, 2009

Find part of string and delete. I have the following type of string:

View 4 Replies View Related

Copy Numeric Part Of String?

Aug 23, 2012

How do I copy the numeric part(11 Digits) of a cell

EG. A1 = "GL CREDIT DDA07 60291627599 ZFT"

I Require "60291627599" in A2

Descr
ANSWER

GL CREDIT 62180577391@DDA ZFT
62180577391

GL CREDIT 62300192854 62300192854 DDA06 ZFT
62300192854

GL CREDIT ACC REC 62273991367 ZFT
62273991367

The numeric 11 digit number is not always in the same position in the cell.

View 2 Replies View Related

Copy Numeric Part Of String

Aug 23, 2012

How do I copy the numeric part (11 Digits) of a cell ,

E.G. A1 = "GL CREDIT DDA07 60291627599 ZFT" in only want "60291627599" in A2

Descr
ANSWER

GL CREDIT 62180577391@DDA ZFT
62180577391

GL CREDIT 62300192854 62300192854 DDA06 ZFT
62300192854

GL CREDIT ACC REC 62273991367 ZFT
62273991367

11 digit not always in same position in cell.

View 7 Replies View Related

Get Numeric Part Of Alphanumeric String?

Jan 3, 2013

I have a string that with spaces in between.

example:

X3PP2 1200 U

I would like to extract the "1200". How can i do this in VBA?

View 4 Replies View Related

Removing Part Of Text From A String

Feb 11, 2013

I belong to a fantasy cycling league and after every race, I copy the race results to award each rider their points for the day. The site I visit most frequently lists the riders results in this format:

1. Alberto Contador (Spa) Team Sax Bank Tinkoff 4:05:00
2. Lance Armstrong (USA) Team Livestrong etc... 4:06:00

I usually copy the results to my spreadsheet then calculate each riders points.

The'results end up looking like this in Excel:

1. Alberto Contador (Spa) Team Sax Bank Tinkoff 4:05:00
2. Lance Armstrong (USA) Team Livestrong 4:06:00

So, the data ends up in 3 cells. The position in one cell, the rider and their nationality and their team in another, and the time of arrival in another cell

Is there a way in Excel where I can get rid of or delete all the data after a rider's name?

I usually end up pasting the rider information to Word, then replacing the (***) with a tab symbol, then pasting back to Excel and get rid of the data that's after the name by deleting the cells to which that data was transferred.

Is there an easier way to do this in Excel, or a macro I can create?...

View 9 Replies View Related

Vlookup Part Of The Text String

Nov 17, 2006

Is it possible to lookup if at least 8 characters of a text string is found in another text string?

View 9 Replies View Related

VLOOKUP Part Of A Text String.

Nov 17, 2006

Is there any way I can Vlookup for just part of a text stiring in a cell.
I am trying to vlook if a part number contains the letters “HFR” if it does I want
It to refer to the comment I have made in the second column of my vlook table against HFR.

View 9 Replies View Related

Criteria To Match Part Of String

Dec 3, 2008

I have a worksheet that I need to filter on 8 columns. I need to do this in the form (Col A = Bob OR SAM) AND (Col B = Apple OR Pear OR Banana) AND... etc for 8 columns.

I started this thread and we reached the conclusion that I needed either a macro to list out all the possible combinations on separate lines, or a complex criteria formula.

I'm trying to put together the complex criteria, but I am further stumped by the fact that some of the columns contain multiple terms with comma delimiters, so I'm trying to match part of a string, rather than a whole string, so the usual = ISNUMBER(MATCH(Sheet1!A2,Sheet2!$A:$A,0)) won't work. I tried using =ISNUMBER(FIND(Sheet2!$A:$A,Sheet1!A2)) instead, but I think this fails because it should be an array formula. I tried normal entering and CSE entering, and neither work, so I think this is a dead end.

View 9 Replies View Related

Parsing A Specific Part Of A String

Dec 10, 2009

I have code that retrieves the body of an email. I need to parse out certain parts of the text. For example, the text will look like the following;

LastName: John Doe
Email: johndoe@aol.com
Cell#: 555-555-5555
FileRequested: xxxxx.xlsx

I have the code to find where the specific item, ie LastName, starts in the whole text. I need to retrieve everything to the right of the : before the CRLF. That's what Im having trouble with.

View 9 Replies View Related

Extract Numeric Part From The String End

Sep 27, 2006

Extract Numeric Part From The String End with a macro, that J8 will turn 8, and R4 will turn 4.

View 9 Replies View Related







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