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


ADVERTISEMENT

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

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

Copy Cell Contents Between Tabs Provided Cell References Match (VLOOKUP)

Apr 29, 2014

I have 2 inventory reports: what my store has and what my supplier has. I need to copy Tab1:K# to Tab2:T# provided that Tab1:A#'s contents match Tab2:A#'s contents. The A column represents the SKU of the item, but there is a difference in the amount of SKU's in each (my store sells ~6,000 items, supplier has ~10,000 items), so it's not as simple as sort by column A and copy pasting column K to column T.

For instance:
On Tab 1, A2's value is [1], K2's value is [9.38].
On Tab 2, A70's value is [1], K70's value is blank, but I need it to be [9.38], to match Tab 1's respective SKU.

I almost thought I had it figured out with VLOOKUP, but I cant seem to get it right... It doesn't reference the correct number.

Screenshots for reference

First tab, from the wholesaler: [URL]
Second tab, store's stock: [URL]

View 2 Replies View Related

Match 2 Cells On 2 Worksheets And Copy Contents Of Another Cell

Jan 3, 2014

Setup: I have 2 worksheets with between 8 and 9,000 rows on each

Column A in both worksheets Sheet1 and Sheet2 have an email address in them.

Not all addresses in sheet1 will be on sheet2 and visa versa

Column J on Sheet 2 contains a date

What I need: Column M on Sheet1 is empty

I need a formula to place into Column M on Sheet1 that will

Look at Sheet1:A

Locate the corresponding value on Sheet2:A

Pull the date from Sheet2:J same row into Sheet1:M

View 2 Replies View Related

Macro To Validate Contents Of Cell And If Not Match Send Msg Box

May 21, 2014

Userform that people use. I need validating the users input into the form.

1. Need to validate that A1 only has 3 letters (Alpha)
2. Need to validate that A2 is not left blank
3. Need to validate A3 has only 10 digits

My state is that when the user hits the submit button in the user form the macro checks for these validations above and if everything is ok emails the sheet. However if the user havent inputed the data correctly a msg box will pop to let them know what is wrong. If thats the case i do not want the sheet emailed. below is the email code i'm using

HTML Code: 

Sub SendMail()
' Copy the sheet(1)
ThisWorkbook.Sheets(1).Copy
' Send Email
.SendMail Recipients:=Array("email.address@email.com"), Subject:="Test" & Format(Date, "dd/mmm/yy")
.Close SaveChanges:=False
End With
End Sub

View 2 Replies View Related

Check On Cell Contents And If Match Change Another Cell

May 29, 2012

I want to check the contents of all the cells in S Column to see if it equals "Process Recover/Rebill"

If True, then Change corresponding cell in C Column to "Manual Correction"

I have this VBA and it doesn't look like anything is processing. It appears that I must have something missing in the If line..message about missing.

(tot_new is the number of rows of data) I begin in the 3rd row.

For Counter = 3 To tot_new
If Range("S" & Counter & ").Value = "Process Recovery/Rebill" Then
Range("T" & Counter & ").Value = "Manual Correction"
End If
Next Counter

View 3 Replies View Related

Index Match Offset - Find Contents Of Reference Cell

Jun 21, 2012

How can I modify the following formula to find the contents of reference cell, for example if the cell reference (G$3) is equal to 9 I want it to use 8 instead.

Code:
IF(ISERROR(INDEX(tra!$E$2:$E$1100,MATCH(G$3,tra!$C$2:$C$1100,0))),"",
INDEX(tra!$E$2:$E$1100,MATCH(G$3,tra!$C$2:$C$1100,0)))

I tried using G$3-1 but this doesn't appear to work.

View 1 Replies View Related

Find Function Where Search Criteria Isn't Exact Match For Cell Contents

Dec 19, 2011

I am new to VBA and am having difficulties in getting a find function to successfully locate search criteria within cell. When the search criteria matches exactly that of the cell contents then the code works; however should the search criteria only form part of the total cell contents (such as a seach for "the" in a cell containing "the cat sat on the mat") the code doesn't recognise it.

Essentially, I need the code to search a range for the required string and if found within a cell activate that cell and populate a combobox with the full cell contents of the activecell.offset(0,-2).

The relevant section of code attached below:

Dim role_count as range
Dim role as string

If Application.WorksheetFunction.CountIf(Range("Role_Count"), Role) 0 Then
Range("role_count").Select
Selection.Find(What:=Role, After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate

Me.Controls(ComboBoxName) = ActiveCell.Offset(0, -2).Value

View 4 Replies View Related

Format Row Cell Color Based On Number Of Text Strings In A Column

Jul 29, 2013

I have been trying to format the rows on this sheet to color scale red based on the number of repeat text strings in Column E. Referring to the attached example sheet, '321/312.2/321.3' appears the most times and the goal is to color code the rows it appears in the deepest shade of red, then the next highest occurring string would shade the rows it appears in a lighter shade, etc, in descending order. Our team currently does this across multiple sheets manually everyday and it would be a real time saver if we could get excel to do this automatically.

View 14 Replies View Related

Match Strings: Get The Names To Match Up

Feb 26, 2007

Got a worksheet that has list of football teams

Man utd
Man city
Tottenham hotspur etc.

in two seperate worksheet i download external data from 2 different website with some stats about teams. Problem is that theses websites user slighty different names for the teams ie. it will be man city from one source and manchester city from another. i need to somehow get the names to match up is there an easy way to do this?

View 2 Replies View Related

Adding Number To Cell Reference Not To Contents

May 28, 2006

I want to create a formula that will refer to the cell I want by adding a number to the cell reference, not to the contents of the cell. For example, lets say that the cell C11 holds a value of 22. I want to add 4 to C11 to get my formula to reference cell C15, I don't want it to add 4 to the contents of C11 which is 22 and would give me a result of 26. I have a large spreadsheet and I can't just fill down the way I have it now and I don't want to have to retype the formula every time.

View 2 Replies View Related

Macro: Match Compare Strings

Dec 16, 2006

I'm writing quite a large electronic logging program using excel and vba and have hit a snag in one of my subs which reads from a text init file. Let's take a look at the code.

Private Sub ReadInit()
'Opens txt init file, looks for target list, splits line by commas and enters into array

Dim FileNumber As Integer
Dim TargetsRead As Boolean, LastFileRead As Boolean


Set ObjFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = ObjFSO.OpenTextFile(SaveDir & Init)

TargetsRead = False
LastFileRead = False
Do Until objFile.AtEndOfStream 'do until end of file

View 4 Replies View Related

How To Reverse Contents In Excel Cell (Text Or A Number)

May 20, 2005

If I have the following text string in a cell "abc123.xyz" how do I reverse the contents i.e. "zyx.321cba"?

If the cell contains a numeric value e.g. 12345, then I want to know how to reverse it i.e. 54321

View 4 Replies View Related

INDEX MATCH Based On Part Of Strings

Feb 7, 2014

Am trying to use index match to return value in column B based on matching 2 first chars on the left in column A.

Col A Col B
POS Majalt
POS Minalt
POS Instinctive
NB Viral
NB Sierra
NB Pierce
CLM Team1
CLM Team2
OS Tr1
OS Tr2
HR Tetra
HR Pentagon
IT penelope

Cell C1 : NBA MyFormula : {=INDEX(B:B,MATCH(LEFT(C1,2),"*"&$A:$A&"*",0))} <<== I need to find the match of NB only in range A:A to return the related values in Col B.

Expected Result:

NB Viral
NB Sierra
NB Pierce

Other than formula stated above, I've also tried with Isnumber(search), etc but all return errors.

View 14 Replies View Related

Match Some Strings, To See If An Entry Is Already Included In A Master List Or Not..

Aug 27, 2009

I am trying to match some strings, to see if an entry is already included in a master list or not. I'm running into problems with some cells that have the EXACT same string, from what I can tell (a text ticker symbol) yet a MATCH or VLOOKUP won't return anything. Has anyone ever encountered anything like this? Worksheet attached with an example

View 3 Replies View Related

Extracting Strings From A Column Of Data That Match A Predefined List

Jun 15, 2009

I sent this before but the formula I was given wasn't correct (as you will see from the file). In Column B of the second sheet (Data) of the attached file, I want to bring back the relevant name form the first sheet (List), which involves searching through the long descriptions from column A on the Data sheet for the name on the List sheet.

View 2 Replies View Related

Short Number Strings

Jan 28, 2010

finding or developing a compressing technique, which can compress a 7 number string i.e., 11,10,1,2,10,7,5 down to 6 or 5 lossless, that would be amazing.

I already researched many compression technique; Huffman, Run-Length and LZ78 which all do well on large data sets and I only have a few numbers. If it helps by converting the numbers to binary for better compression then I what to known. I know that a solution could be impossible as we would know about it already but may be someone knows a trick to get rid of one digit.

View 14 Replies View Related

Function To Match Contents Of Comments?

Feb 27, 2014

On sheet1, I have numbers and names. These names are also contained in Comments on sheet2, and i would like a function in Column M that matches the numbers with the names in the comments. Cell M1 I have manually filled for demonstration purposes.

Can this be done with a function or is this a VBA task?

View 7 Replies View Related

Find Nearest Match To The Number In Cell

Dec 11, 2013

In cell A1 I have a number. I want a formula that looks at that number and then looks at row C on sheet2 where there are rows and rows of numbers. I want the formula to return the nearest match to the number in cell A1.

View 6 Replies View Related

Match Function For Cell Reference Row Number

Sep 5, 2007

I am trying to acccess a cell value from a seperate worksheet. The cell reference needs to be generated by a seperate formula. In this example

=DSInfo!C28 // provides the correct result i.e the contents of cell C28 on worsheet DSInfo =MATCH(A4,DSInfo!C1:C35,0) //provides the correct row number - in this case 28

However on trying to combine the two =DSInfo!C&MATCH(A4,DSInfo!C1:C35,0) // provides only a formula error. I'm guessing this is a simple syntax error on my part but after hours of trying various ways I'm still having no luck.

View 2 Replies View Related

Isolating Text And Number Strings

Nov 14, 2013

I have an address column in which multiple strings of text and numbers have been combined. I need to isolate each string and place it into its own column.

Column looks like this....

ADDRESS
615 NE CORDER AVE, LEES SUMMIT, MO 64063

2661 NW LEES SUMMIT RD, LEES SUMMIT, MO 64064

104 SE 4TH ST, LEES SUMMIT, MO 64063

4944 SW GULL POINT DR, LEES SUMMIT, MO 64082

3904 SW PRYOR RD, LEES SUMMIT, MO 64082

329 NW BRADFORD ST, LEES SUMMIT, MO 64064

They need too look something like this...
No.
Suffix
Street
Type
City
State
Zip

615 NE Corder Ave Lees Summit MO 64083

The problem I'm having when trying to use a "left" or "right" formulas is some of the strings have different positions in the whole string itself (does that make sense?) (some addresses have 4 characters, some have 3, so on....)

View 3 Replies View Related

Compare Version Number Strings

Dec 13, 2006

I have two numbers, they are version numbers, I am having problems with my If then else and elseif statements.

59821 for version 5.9.8.2.1
is more than
5983 for version 5.9.8.3

even though 5.9.8.3 is a greater version number. Do you see where my problem is. How do I compare # by # reading it, checking to see what one is bigger and going from there. so when it gets to the 3 of the 5983 its bigger than 2 of 5982 of the 5.9.8.2.1

View 2 Replies View Related

SPORT STATISTIC - How To Clear Contents In First Leg Of Cup Match Row

Mar 10, 2014

I want to write a Formula or Macro :

To clear Second Leg score in First Leg of Cup match

in Attached file, I explained detailed what to do. [URL]

if u need to know anything about Football,

View 2 Replies View Related

Convert Text Strings To A Code Or Number

Mar 22, 2006

In column A and B I have text representing an Entity and its Intercompany,
respectively. In column C I have concatenated the two. So now in Column C,
for example, I have "BillTom" in row 1 and "TomBill" in row 900.

I need Excel to convert the text into some sort of code, ASCII or number
that shows they are EQUAL. I need something that shows "TomBill" and
"BillTom" are the same thing, just in a different order.

I cannot build an IF formula or use Find/Replace, as I will have thousands
of these types of combinations.

View 14 Replies View Related

Compare Cell Contents With Given Range Of Contents

Dec 30, 2013

I have attached a workbook stating my problem.

file1.xlsx‎

View 10 Replies View Related

Link Cells In Adjoining Sheets If Contents Match

Apr 21, 2009

I have a list of items in column A of Sheet1 and the same list in column A of Sheet2. Both list will contain the same items, however not necessarily in the same order.

What I want the book to do is; when I click on an item in the list on Sheet1, it takes me to the same item in Sheet2.

Is this possible with VBA?

View 10 Replies View Related

Conditional Formatting - Highlight A Cell When The Number Doesn't Match The Value?

May 11, 2014

In a column in which there are repeating numbers is there a formula I can enter into conditional formatting that will highlight a cell when the number doesn't match the value from the value above it?

So in this example the values with an * would be highlighted.

1*
1
1
2*
2
2
2
3*
4*
4
5*
5

View 2 Replies View Related

Counting The Number Of Unique Text Strings In A Column

Oct 3, 2007

I have a list of around 50000 names. I need to count how many are unique.

View 9 Replies View Related

Count Number Of Cells With Partial Matching Strings

Jul 31, 2009

1. Counts the number of cells in a column with the same 18-character text string(Full String is 24) using a RIGHT( function.

2. Returns a 1 if there is 1 and a zero if the count is greater than 1.

View 3 Replies View Related







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