How To Find A Row That Has 2 Or More Strings In Any Cell

Feb 18, 2014

I'm just trying to view the results of this search, I don't need it to make changes to the cells on the bases of this search.

I'm using control + F to open the search box.

It only allows me to type in one single string, such as "Johnson". Problem is, it finds many rows that contain the name Johnson.

So I'd like to further add a number, such as 1.3338, which it can look for in any cell that's on the same ROW where it found Johnson.

It would then return, for example, Row number 81, which has a cell that contains Johnson and another cell that contains 1.3338.

View 3 Replies


ADVERTISEMENT

Matrix (find Any YES Strings)

May 22, 2008

I have a set of 4 columns with YES/NO statements in them.
I need to find any YES strings, of three or more, within one column, uninterupted by a YES in another colum.

EXAMPLE:
_____A ___B__C__D__E
1 1/1/2008 YES NO NO NO
2 1/2/2008 NO NO YES YES
3 1/3/2008 YES NO NO NO
4 1/4/2008 YES NO NO NO
5 1/5/2008 NO NO NO NO
6 1/6/2008 YES NO NO NO..................

View 4 Replies View Related

Compare Two Strings And Find Difference?

Aug 6, 2010

What I'm trying to do

A1 = Hello John, my name is Steve, how was your day?

B1 = Hello John, my name is Steve, was day?

I need C1 to return:

how your

Is this possible?

View 9 Replies View Related

Find Numbers In Text Strings

Nov 21, 2006

I have several cells in a column that look something like this:

Cell A1: abc 1234 def ghi
Cell A2: xxxx aa b 245 qqqqq
Cell A3: abcdefg hij kl mnopqr s

Is there an excel formula or combination of formulas I can use to identify:
(1) whether any given text string (such as those above) include numbers, and
(2) what the first number (which could contain 1-4 digits) contained in the text string is?

View 3 Replies View Related

Find Multiple Strings And Clear Corresponding Range?

May 17, 2008

I am currently trying to write a macro that will search a column for different strings. These strings are inside the cell (as in it is not the only value in the cell) and then copy the entire cell over to another column, then delete the two cells to the right of the originally found cell.

Heres an example of what I want to:

There are four columns, the first has a name with both the first and last (amanda white)the second just the first name (amanda), the third just the last name(white), and the forth an organization name. if the first column contains an organzation name, it has to clear out the first name and last name columns, and copy the name column to the organization column.

NAME | FIRST | LAST| ORG|
amanda white amanda white
mike jones mike Jones
pizza hut pizza hut

I have a list of organization keywords to search the first column (e.g. enterprise, variety, management, pizza). I want it to recongnise the "pizza", copy that entire cell over to the organization column and delete the first name and last name for that row.I've been trying to modify a code like this but i can't seem to make anything work.

VB:
FindWhat = "pizza"
For Each Cell In Range("B2", Range("B" & Rows.Count).End(xlUp)) [code]....

View 5 Replies View Related

IF And FIND Statement For Multiple Text Strings

Nov 19, 2009

I have been given a huge membership list. The field for the CITY also as the two letter state abbreviation (e.g., "Fremont, CA" instead of just "Fremont".). I want to be able to have the "CA" or "WA" or "NV" (etc) from the city field appear in a new STATE field. I successfully use the below statement to do this with the "CA" but I want a statement that will search for multiple strings (the other states).
Here is what works now: =IF(FIND(" CA",F2),"CA"). But I want to be able to add other state abbreviations to this.

View 4 Replies View Related

Loop Through Worksheet To Find Series Of Strings

Jun 13, 2014

I need to loop through a worksheet to find the following product ID's: 100805, 6950000, 853000 and 20994000. Each time I find the product ID I have to execute the same code in that part of the worksheet to extract data.

I just do not know how to set up the macro to loop through each ID.

View 9 Replies View Related

Find Word In Range Cells Containing Other Strings

Aug 18, 2008

I am having a hard time creating a code that would search the exact string in a cell. See sample scenario below.

1. I have a string "hello" to be searched.

2. I will search the whole string in each cell in a previously declared range.

3. If in a cell i found "kdhlsk hellodsiewjls", although "hello" string is there,
the code should still return 0.

4. But if in a cell, i found "kjdsfel ljsdlkue hello luoeww", then the code should return 1.

I have already created a code, but it will always return 1 in step#3.

View 9 Replies View Related

Find Specific Account Value From A Range Of Text Strings

Jan 6, 2014

Need formula to find a specific account no. from a range of text and return that account's value as a usable numeric.

Account number:012345678 XZ
Account value as of 12/31/2013:$12,345,56

Account number:987654321
Account value as of 12/31/2013:$876,543.21

View 12 Replies View Related

Find Top 10 Most Common Words In Column Of Text Strings?

Apr 1, 2014

I've been racking my brains trying to find a way of doing this. I have a list (column A in Excel) of over 50,000 organisations and I'd like to know what the most common words used in the names are. Ideally it would great if I could produce a top 10 list of the most common words at the top e.g. Ltd, School or Church with a count in the next column of how times that word it appears

View 5 Replies View Related

Find And Replace Or RegEx - Remove Symbols From Column Of Strings

Sep 27, 2011

I have a find and replace function that removes + smybols from a coloum of strings. How can I remove the first instance of a space (if it later contains a +, too?

E.g.

Before: [ +Test +Test]
After: [+Test +Test]

Code:
Columns("D:D").Select
Selection.Replace What:="+", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False

View 4 Replies View Related

Finding Strings In VLookup Value - Embedded In Larger Strings Within Table Array

Dec 20, 2012

I need to do a vlookup that takes a string from one cell and then tries to find that string (embedded in a larger string) in the table array

Essentially I imagine this involves the FIND function at some point.

Attached is an incredibly simplified example of what I'm looking for.

View 9 Replies View Related

Search For Parts Of Strings In Another List Of Strings

Dec 16, 2013

I have an excel worksheet with about 10K rows of data in column A.

I have also another list of data, about 200 rows of data, in column G.

I need to color each cell in column A that contains, anywere in the string, any of the data strings in column G.

Example:
in column A
row 1: info@duende.com
row 2: rasko@silvester.com
row 3: supportonline@fabius.com
row 4: myhelp@friday.com

in column G:
row 1: help
row 2: info
row 3: support

I need rows 1, 3 and 4 in column A to be colored.

View 9 Replies View Related

Excel 2011 :: Find Multiple Text Strings In Another Text String

Mar 8, 2013

How do I use an Excel formula to find which (if any) multiple sets, each of up to 50 words, exist in a series of rows of a spreadsheet - if set A has one or more words found in a searched cell.

A positive result will return a specific value in the designated result cell. If none of the words in Set A is found in the searched cell, the formulae will repeat the test for the words in Set B, and so on.

After all 50 sets of words have been tested, the formula will move to the next cell in the searched column.

New words will be added to the sets of words continually as required.

Multiple words within sets are included in double quotes. Within each set of words there will be some n-tuples of words (i.e. 24 adjacent words) that contain one or more of the words in the set, but for which the formula will be required to return a negative result. Example: Set A = word 1, word2, word 3, "word1 word2 word3". (The words within a set could also be each entered in separate columns, as opposed to all included in a single cell.) The single column of text to be searched is about 10,000 rows.

I am wanting to use the above in a spreadsheet that contains data downloaded from a series of bank accounts to automatically allocate items of expenditure to one of 20 or so different categories of expenditure.

The formula will search the description field to find words that are used in the in the downloaded files from the various accounts to describe each transaction.

If a word describing travel expenditure (e.g. hotel, "holiday inn" but not "holiday travel") is found in the description of an expenditure item - the item cost will be allocated to the TRAVEL EXPENDITURE column, which is one of 20 or so different categories of expenditure.

Happy to consider a different solution if the task can be done better a different way.

Tried using a combination of INDEX/SEARCH/IF in Excel, but was not able to get a correct result. PS I am using Excel 2011 for Mac - which does not allow macros, so the solution needs to be entirely formula based.

View 1 Replies View Related

Editing Using VBA - Find Text Strings In Text File

Dec 7, 2012

I have a large .txt file that I would like to edit using VBA. What I would like to do is to find each of the following text strings in the text file :

De:
De :
Envoye
A:
Objet:

If the character right before those text strings is not a carriage return (chr(13) then add a carriage return.

I would like the code to read each line in the text file and execute the task mentioned above.

View 9 Replies View Related

Excel 2007 :: SUM Numbers Within Cell Based On Unique Strings In Another Cell?

Jan 11, 2012

how would you do the following in excel 2007:

"SUM numbers within a cell based on unique strings in another cell".

For example, how would i use formula to SUM the following numbers (and only the numbers for david and sam only once), 700+454+50+40+2+129+16

700david
700 david
454john
50buch
40daniel
2sam
2sam
129mike
16steve

View 9 Replies View Related

Two Strings In One Cell

Aug 18, 2006

I have two adjacent strings in a CSV file that I'm importing which were originally intended as a single piece of data. The format of the strings are:

5'-3 3/4" (Yes, it's a good old imperial length measurement)

Right now, I have (5'-3) in one cell, and (3/4") in the next.

I'd like to try to append the second string (3/4") to the first in a single cell. Is there any way for me to do that using VBA?

View 9 Replies View Related

Extracting Mid Strings From A Cell

Jul 4, 2009

i have in a cell a Text like this..

Chicago (TZGUG)

i tried a formula.. like this..

=LEFT(F3;LEN(F3)-1

to remove only ) ..

but how can i remove the ( too ..

and also Chicago

so the result in a cell would be TZGUG

View 11 Replies View Related

Sum Number Of Different Strings In Single Cell?

Jun 23, 2014

I am attempting to count up the sum of names that will be submitted, through a web form, in a single cell.

Example:

Cell B1 will have a bunch of names submitted to it. let's say 10: Marino, Elway, Namath, Montana, Manning, Brady, Romo, Bradshaw, Favre, Aikman. (these text strings will be all in one single cell)

I will have a list of names that are correct to compare to: Montana, Brady, Bradshaw, Manning. I can put those in its own cell to compare to. (C1)

How do i get the sum of 4 from B1 cell? If B1 only has 3 of the 10, how would it return the sum of 3?

Example:

A1 B1 (Submitted cell) C1 (List to compare to "right answers") D1 (sum from B1 compared to C1)
user 1 Marino, Elway, Namath, Montana, Manning, Brady, Romo, Bradshaw, Favre, Aikman Montana, Brady, Bradshaw, Manning 4
user 2 Marino, Elway, Namath, Montana, Manning, Brady, Favre, Aikman 3

This is I am sure a very newbie question, but I couldn't find anything on multiple text strings within one cell, and counting a sum of those.

View 14 Replies View Related

How To Calculate Multiple Strings In Same Cell

Jan 4, 2014

String Multiples for 3 different criteria in same cell -- "if", "or" "abs" --- not sure if any of these are correct

1) Criteria 1 and 2: In cell "E" I am wanting to minus "B from C", if "A" is greater than or equal to and less than "=>1000 or <15000"

2) and the other criteria would be if "A" is greater than or equal to ">=15000" then minus "b from d" -- answer would also be in the same cell "e".

I hope I am saying my needs correctly. Basically, I have 3 different sales criteria with 3 different bonus offers. One offer is for sales less than 10,000, another offer is for the range 10,000 to 14,999 and the last is for the range 15,000 or more. I am actually linking the values from different worksheets, however I have used generically "A, B, C, D and E".

below are the 3 separate formulas that do work on specific individual rows. However, I really need the criteria for all three variables in the same cell. Right now I am just copy/paste the appropriate formula that fits the specific value in each row.

=IF(summary!$E8>15000,SUM(F3-summary!D2),0)
=IF($E4<15000,ABS(F4-summary!D3),IF($E4>=10000,0,(F4-summary!D3)))
=IF($E14<15000,ABS(F14-summary!D13),IF($E14>=10000,0,(F14-summary!D14)))

View 6 Replies View Related

Selecting Specific Strings From A Cell

Oct 17, 2008

I'm using Excel 2003 and I have a small problem using text functions. My problem is that in column 'A' I have a name and their year next to it between brackets, like so: Wright Jeffrey (1PBSO)

Now what I have to do, is make two new columns where I extract the surname (Wright) to one columns and the first name in another column (Jeffrey), the "(1PBSO)" doesn't have to go anywhere. Now I wouldn't have a problem with this normally but in the list I have names like 'Van Tongerloo Johan' where VAN TONGERLOO is the surname and JOHAN is the first name. For the first name (Wright Jeffrey (1PBSO)) I just used the LEFT function and then searched for the first space in the string but that doesn't work in the second example anymore.

View 5 Replies View Related

Look For Identical Strings And Add Cell Values Beside Each

Feb 18, 2009

Hi guys, I am looking for a macro to do the following:

Go down a column and identify all accounts that are identical, then add up the values that are 5 columns to the right of each account and paste them on another sheet along with the account code (there are 12 values for each account to be added with the other identical accounts).

I've attached a spreadsheet, because I understnad this might be kind of confusing. In essence:

1. Go down column C

2. Look for accounts that are identical

3. Add up the values for each account in columns G:R

4. Copy and paste the added values to another sheet along with columns C:F for each account to identify it.

View 9 Replies View Related

Extract Date From Cell With Other Strings

Dec 22, 2008

i have data in column A and i want extract to column B only the date from this data. Date start on diferent position.
ex:

col. A
1 text text 10.10.1998 text
2 text10.12.2001
3 10.12.2004
4 10.12.2005 text text

i want this result
col. B
1 10.10.1998
2 10.12.2001
3 10.12.2004
4 10.12.2005

i try solution from other thread, but it doesnt works for me.

View 10 Replies View Related

Search For Multiple Strings In A Cell(s)

Sep 16, 2013

I have a single column with multiple rows of data that contains multiple sports words (e.g.: football, basketball, track, hockey, swimming, skeet), and I want to find all cells that contain football, basketball and track. I also want to ignore case.

In this example only 3 rows would be found (3, 4, 8).

Sports Terms
------------
1. football, swimming, skeet
2. football, basketball, skeet
3. football, basketball, track, skeet
4. football, basketball, track, swimming, skeet
5. basketball, track, hockey, swimming
6. football, hockey, swimming, skeet
7. hockey, swimming, skeet
8. football, basketball, track, swimming
9. track, hockey, swimming, skeet
10. football, track, hockey, swimming, skeet

Here are 3 examples I found, but I do not even know where to insert them -pressing Cltrl+Shift+Enter does not do anything.

=IFERROR(IF(or(SEARCH("foottball",E2)>0,SEARCH("basketball",E2)>0,SEARCH("track",E2)>0)),"Yes",""),""),

=IF(COUNT(SEARCH(KeywordTable,E2)),"match","no match")

=SEARCH((A1:A10=”football”))+SEARCH((A1:A10=”basketball”))+SEARCH((A1:A10=”track”))

View 5 Replies View Related

How To Match Number Strings In Cell Contents

Sep 3, 2013

I have a spreadsheet with 60k lines. One of the columns contains barcodes as per the example below, with a suffix of -XXX-XXX where the XXX are numbers. I want to highlight all the cells where the -XX-XX are the same number (as in the example below -303-303) how I can do this with a formula as I've around 30 spreadsheets each with 60,000 lines I need to sort through?

2500071189898-303-302
2500071189898-303-303
2500071189898-303-304
2500071189898-303-305

View 4 Replies View Related

Searching A Cell For Mulitiple Strings And Returning A Value

Sep 12, 2008

I am trying to search a cell for multiple different strings and if the string is found, multiply a nearby cell by a factor of 1.5. if the strings are not found i want the original cell value to be used. I have tried using find functions but they do not seem to work. I have also tried using nested if functions with no luck..

View 9 Replies View Related

Search Multiple Strings And Rearrange Cell Value

Oct 28, 2013

I have some 100k+ cells with values as "ID_code - Value_1 - Value_2 - Value_3". Lets say this is sequence A.

"ID_code" is a fixed 6 digit value. "Name_1", "Name_2" and "Name_3" are variables and they also vary in length, but they never contain a sign "-". Sign "-" is only used as separator between these four values.

Now, VBA code that would rearrange all the values in a selected column from the one as listed above to a different sequence B, for instant:

Value_2 - Value_1 - ID_code - Value_3

View 3 Replies View Related

Cocatenate Text Strings And Place In One Cell

Dec 13, 2006

In coloumn A have either Yes or No down to line 1000, In coloumn B I have email addresses down to line 1000. What I want to achieve is in cell C1 have all the email addresses concatenated together that have a Yes value in column A next to it.

View 9 Replies View Related

Using Cell Data Has Variables/strings For Criteria

May 23, 2007

I have a bunch of data in column A like this:

BBX3838
BBX3838
BBX3838
BBX3838
BBX4434
BBX3249
BBX3249
BBX3249
BBX3249
BBX2233

so then using this : ...

View 9 Replies View Related

Match Characters In Two Strings, Then Write To Cell

Aug 1, 2007

I have a SS with 700 rows. 2 columns (Col K and L) may or may not contain text in their cells. If the cells do have text, I want to check for the presence of keywords which could be anywhere within the text, and if I find match write the matching word in Column I. Example: I want to seach for the following strings Loaned, injured, suspended etc ... in the range the K4-K700. Lets say Cell K50 contains the text Injured - broken bones. As the word injured is a match I want to write the word injured to cell I50 In addition if Cell K50 has text and Cell L50 does not, i want to put the text "NEW" in I50, and the reverse if Cell L50 has text and Cell K50 does not i want to put the text "recovered" in I 50. Following formula (in each cell in Col I) does this job currently. Can't figure out how to redo this in VBA, and wondering if checking the 700 rows will cause Vba to be slower.

=IF(OR(TEXT(LEFT(OFFSET(I22,0,2,1,1),6),"DDDDDD")="Loaned",TEXT(LEFT(OFFSET(I22,0,2,1,1),6),"DDDDDD")="Transf"),
"Loaned",
IF(ISNUMBER(SEARCH("susp",OFFSET(I22,0,2,1,1))),
"Suspended",
IF(AND(ISBLANK(OFFSET(I22,0,2,1,1)),ISBLANK(OFFSET(I22,0,3,1,1))),
"",
IF(ISTEXT(OFFSET(I22,0,2,1,1))=ISTEXT(OFFSET(I22,0,3,1,1)),
"Ongoing",
IF(ISTEXT(OFFSET(I22,0,2,1,1))=TRUE,
IF(ISTEXT(OFFSET(I22,0,3,1,1))=FALSE,
"New"),
"Recovered")))))

View 2 Replies View Related







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