Adapting This To Cope With Partial Matches

Aug 19, 2009

The solution to a challenge here does almost exactly what I need except it doesn't manage partial matches.


Function MatchColors(strValue As String, rngList As Range) As String
Dim regEx, Matches, i, strResult, bFlag

'Create and set the parameters for the regular expressions object
Set regEx = CreateObject("vbscript.regexp")
regEx.Global = True
regEx.IgnoreCase = True

View 9 Replies


ADVERTISEMENT

Finding Partial Matches Of Text In 2 Different Columns

Mar 18, 2014

how to find partial match of text in 2 different columns.

For example:

Column A:

Boston
Chicago
Los Angeles
New York
Detroit
Miami

[code].....

I want to be able to create a column that finds all the matching cities from A in B.

View 9 Replies View Related

Count Partial Text Matches In Adjacent Column?

Aug 11, 2014

I want to count the number of times partial text strings occur in a cell adjacent to another cell containing specific text.

A B
FB Milton v Town PHOTO
BS Fairfax v South
BS North v Town
BS Milton v South PHOTO
FB North v Milton PHOTO
FB Milton v South

I'm looking for the number of times "FB" and "Milton" occur in Column A when "PHOTO" also appears in Column B in the same row. From numerous searches I've tried figuring out VLOOKUP, DCOUNTA, etc.

View 6 Replies View Related

Testing Contents Of 2 Cells - Ignoring Partial Matches

Jul 6, 2012

I have two columns, some of the cells in these columns contain more than one value separated by a space. Example:

Col A Col B
1.99 1.69
39.95 6 119.94 29.99 6 149.94
135 250 135.00 250.00
11.6 11.60

What I am trying to achieve is to test that the values in column A match those in column B and have a TRUE/FALSE response in column C. At present i'm just using =a=b, however I want the formula to give me a TRUE response for the third and fourth lines in my example, as I want it to ignore the zero after the decimal place, at present it gives me FALSE.

So the results I want to see in col C for the above example are:
FALSE
FALSE
TRUE
TRUE

View 4 Replies View Related

Summarize Data Based On Partial String Matches

Jun 30, 2006

I have two questions:

a. Check the code below:

Dim news1 As String, news2 As String

news1 = "new"
news2 = "polygon"
Dim countie As Integer
For buddie = 2 To b1.UsedRange.Rows.Count
'If b1. Cells(buddie, 1).Value Like "new*polygon" Then
If b1.Cells(buddie, 1).Value Like news1*news2 Then
countie = countie + 1
n1.Cells(buddie, 10).Value = "test"
End If
Next buddie

I have 2 strings, news1 and news2, i need to use the like function to check the occurance of these two strings in all the cells, and just for testing purpose, im printing 'test' it out in another excel sheet.

How do i make that work? the commented line shows what exactly i want, only that i dont want to hard code the string values.

b. If i have a value in the cell:
/new/blahblah/anycra/polygon
how do i split it so as to assign two variables to have 'new' and 'polygon'.

View 9 Replies View Related

Two Sheets That Need To Have Unique Partial Matches Aligned Side By Side

Jul 31, 2009

I have two sheets that need to have unique partial matches aligned side by side. My first sheet is my database. The righter most column of this sheet contains a unique combination of letters and numbers.

My second sheet contains a single column which I export each month from our CMS and is a list of URLs. Within each of these URLs appears the unique set of letters and numbers from sheet 1 (and only appears once).

There are about thrice as many URLs in sheet 2 as there are entries in my sheet 1 database.

Ideally, I would like the URL from sheet 2 that contains the unique combination from sheet 1 to be pasted in the cell immediately to the right of the given unique combination.

However, I will settle for a list of trues and falses next to the URLs in sheet two that I can erase the falses, sort and paste next to the sorted list from sheet 1.

View 9 Replies View Related

Cope One Sheet To Multi Sheets?

Jan 1, 2009

I made a 12 month calender made by first sheet how can I copy the first sheet to all 11 sheets with all the formulas included.

View 4 Replies View Related

Can Vlookups Cope With Spelling Errors

Oct 8, 2009

I have a number of Vlooks set up to reference cost information set up against Names in various workbooks.

The problem is wherever a name is mis-spelt then the lookup fails to match the values.

View 12 Replies View Related

Converting Macro To Cope With 2007

Apr 1, 2008

I've got the following macro which I used to copy and transpose an array of data from a 'working' workbook (data in columns) to a 'summary' workbook (data in rows). This worked great in excel 2003 as I used all the columns available (ie. up to IV).

I've run into a problem now I'm using Excel 2007 as there are now significantly more columns. The macro is now trying to copy and transpose every single column in the workbook and is taking a ridiculous amount of time.

How would I adjust this macro so that it only copied a set number of columns? I'd like it to copy only up to column ATV in working.

Sub test()
Dim i As Integer, n As Long
Sheets("summary").Columns("b:iv").Clear
For i = 7 To Columns.Count Step 3
n = n + 1
With Sheets("working").Cells(8, i).Resize(11)
Sheets("summary").Cells(n + 2, "b").Resize(.Columns.Count, .Rows.Count) _
.Value = Evaluate("if(transpose(working!" & .address & ")=0,"""",transpose(working!" & .Address & "))")
End With
Next
End Sub

View 9 Replies View Related

Adapting VBA From Word To Work In Excel?

Jan 26, 2014

I have been using a macro in Word created from pieces all over the internet (credit to a user named matt198992 for recursion script). The code prompts a user for folder, then runs a macro called Publish as PDF to all word files in the folders/subfolders.

I want to adapt the code in Excel, but I am having trouble. Error on the line "Workbooks.Open Filename:="Path & DirN".

[Code].....

View 10 Replies View Related

Adapting Offset Indirect Formula?

Nov 7, 2012

Although I have seen lots of formulae to total a dynamic column, I found a brilliant formula on the Internet, as follows

HTML Code:

=SUM(OFFSET(INDIRECT("R1C",),,,ROW() -1))

The problem is I cannot work out how to adapt it to total across rows (which will expand with new columns).

View 5 Replies View Related

Adapting Mouse Move Macro

Feb 14, 2008

Is it possible to display a name on a chart that is not the X or Y value?

I've been sent this macro which displays the school name on a chart when the mouse is on the data point - its all well and good but on the graph I am working on, the X and Y value are both values and I want the school name to come up as well.

Private Sub Chart_MouseMove(ByVal Button As Long, ByVal Shift As Long, ByVal x As Long, ByVal y As Long)
'macro that gets chart to show user details of a point on the chart when the mouse is moved over it
Dim ElementID As Long, Arg1 As Long, Arg2 As Long
Dim myX, myY As Variant

With ActiveChart
.GetChartElement x, y, ElementID, Arg1, Arg2

If ElementID = xlSeries Then 'checks to see which part of the chart the mouse is over

View 9 Replies View Related

Adapting Macro For Variable Column Length / Range END

Apr 21, 2013

I've recorded this Macro to sort the cells in a column alphabetically if any cells have content.

I would like to use the Macro on the whole workbook however the AB column range varies between the worksheets.

How should I adapt this Macro to sort simply to the END of AB column??

' PWRII Macro
'
'
Cells.Select

[Code]....

View 5 Replies View Related

Adapting Code To Merge Data From Multiple Ranges

Mar 15, 2009

I'm in the process of combining a lot of worksheets into one and found the code on the following site:

[url]

which almost does what I need. I understand how it works (i think!) but as a vba novice I can't work out how to adapt the code to copy more than one range from the source workbooks.

What I want to be able to do is copy say the following cells from each workbook:

A1

D1

d4:D7

I think what I need to do is call the getdata macro multiple times with different ranges, but I can't quite work out how to do that without simply creating multiple copies of the master file.

View 9 Replies View Related

Cross Check 2 Ranges For Matches & Return Row Number Of Matches

Apr 29, 2009

I have several worksheets (Labeled Sheet1,Sheet2,sheet3) What I need to do is to step through each row in sheet3, and do a search in sheet1, it the data was found, then return the row number. I then will need to copy data from sheet1 (rowfound columnA , through rowfound CoulmnBd to sheet3 current working row columnK

View 3 Replies View Related

Return Matches & Non-Matches From Delimited Cells Against List Range

Jan 29, 2010

In my spreadsheet, on the first worksheet called "Working". Column A, called "Results", contains carrot ^ delineated string values in each cell (i.e."john^apple^pear^banana^grape^love^heart^pickle"). The majority of string values in every cell in my "Results" column match a "source" column of Pick-List Values, called "Fruits" in the same spreadsheet, however found in a different worksheet called "Lists" (also in Column A). I want to perform 3 functions against my "Results" Column on worksheet "Working":

1.) Report In Column B: Analyze column "Results" by cell and return carrot delineated string values for only those that match my "Fruits" Pick-List

2.) Report In Column C: Analyze column "Results" by cell and return carrot delineated string values for only those do not match my "Fruits" Pick-List

3.) Report In Column D: Identify and return all unique values in "Column C" as a List.

Attached is a simple example of what I'm trying to accomplish called " Sorting.xls"

View 4 Replies View Related

Excel 2007 :: Match Partial Text When Partial Text Is Not Exact

May 20, 2014

This is for Excel 2007,I have two sets of model numbers. One set is the full model numbers of the units we use, and the other is an abbreviated form used to lookup up certificate numbers. I need a way to match these up so I can use one set of search criteria to find out if there is a match. Here is an example of what I need to match with a partial text match:

H,AE35(6,9)36+TD and AE3563636D145C2501AP
H,RE36(6,9)36 and RE36936C145B2505AP

if I could do this with a formula that matches multiple items at the same time (ie; if A & B & C match=true) with the above model number being one of those items (certificate numbers are issued for sets, but the other model numbers are fine).If that's not possible, a one time VBA run to match all of the abbreviations at once would also work. If these items are matched up with a one time VBA, the VBA needs to account for their being more than one match for each abbreviation depending on the size of the unit.

So H,AE35(6,9)36+TD could be matched to:
AE3563636D145C2501AP
AE3563636D175C2501AP
AE3563636D210C2501AP

View 11 Replies View Related

Cell Return All Matches From A List And Have The List Of Matches Reduce As You Type

Jan 28, 2009

is it possible to have a cell return all matches from a list and have the list of matches reduce as you type, then be able to select one item from the list? this is a typical feature on internet sites, but can it be done in Excel?

View 3 Replies View Related

Show A Partial DOB?

Oct 29, 2009

I have a date of birth in cell "B13". It's formated as xx/xx/xxxx. I'd like to copy this into another cell where I have annual holidays listed, but, I'd like to have it formatted as mm:dd - omit the year.

View 2 Replies View Related

Cell Partial, VBA

Nov 22, 2006

I have a cell that contains a string which is always formatted the same. "Dated between Date1 and Date2" I would like to put Date2 into a variable; however, I don't know how to get just that part of the cell.

View 9 Replies View Related

How To Countif To Partial Text

Dec 18, 2013

Is there a way to do a COUNTIF on just partial text?

I know how to count how many cells in a column contain the text "cars" for example, but how would i write a formula that include cells with other text as well?

For example if 55 cells have "cars" as a value and 20 cells have "fast cars" as a value

I would want the formula to count 75.

Basically, it needs to count how many cells cars appears in, in a specific column, regardless of whether its alone in the cell or part of a sentence.

View 11 Replies View Related

Find Last Partial Value In A Column

Feb 26, 2014

I've tried lookup, match and sumproduct and nothing works.

I have a lot of different values in a column B, I would like to find last value in a column that begins with "KBI-", all values have 8 characters. Eg.:

GJK-4654
SDF-4655
KBI-0102
K18-4654
KBI-0202
KBI-0103
RTI-0102

The Value I would like to retrieve is KBI-0103.

View 3 Replies View Related

Counting Partial Strings

Jul 31, 2009

I don't know what's wrong with this it's not working..

=COUNTIF(SEARCH("radio",A2:A20),"")

i just want to count all the cells from a2 to a20 that has a word "radio" from that cells. Since a2 until a20 have different words like tv power, radio blaster (this should be consider because there's a radio word on it) and so on.


if i use only =COUNTIF(A2:A20,"radio") the word should be exact "radio" and it wont consider the word "radio blaster".

View 3 Replies View Related

Partial Vlookup Match

Nov 13, 2009

In cells A1:A10 I have the following list;

FLOUR
DOUGH
CHICKEN
BEEF
PEPPERS
TOMATOES
CHEESE
ONIONS
POTATOES
SALAMI

I want to be able to get a partial match that will allow for spelling mistakes by the user. The wild card (*) seems to only look at the left-most text and return #N/A if the text isn't matched sequencially.

For example ....

View 12 Replies View Related

Filter Partial Number

Apr 25, 2014

Is there possible filter a partial number in column?

i have many values in column, i want enter partial value in Texbox (ActiveX).

if i enter in textbox 6840.

Result
64801000
64802000
64803000
##############
if i enter in textbox 5480.
Result
54801002
54802002
54801000
54802000
54801001
54802001
54801005
###################

View 6 Replies View Related

COUNTIF With Partial Match?

Nov 3, 2008

I have a column with a different alphanumeric strings in each cell. Some of these values have a portion that is common. For e.g.:

Example kealey 1980
Testing
Reference
Example john commission
Example (hard sell)

Is there a formula to return the number of cells that have "Example" in them?

View 5 Replies View Related

Partial Match In An Array

Dec 13, 2008

column A
MARY
JOHN
MARK
SUE

cell B1
zzzJOHNxx

I am looking for a formula (Vlookup, Match, etc) that will look for an entry in column A that matches part of the string in cell B1 (not the other way around i.e. using wildcard)

View 9 Replies View Related

How To VLookup With Partial Match

Sep 21, 2002

How do you do a vlookup with a partial match?

View 5 Replies View Related

How To Match Partial Numbers

Feb 14, 2012

I have one list of waybill numbers which are 12 digits long and I have another file of waybill numbers which are 15-16 digits long. I have tried a VLookup but I do not get matches on these since the digits are not the same length. Is there any other formula I can use to match a 12 digit waybill against a 15-16 digit waybill number? I am assuming that if 12 digits match in both lists that it is an exact match.

View 4 Replies View Related

Put X If Data Has Partial Match

Mar 12, 2012

I have data below, what I am trying to do is to put an "x" if the data has a partial match. This is what I am using below.

HTMLSheet1  ABC1G. Washington SchoolGEORGE WASHINGTON SCHOOL 2Electrical Magnet SchoolELECTRICAL 3Sports Magnet SchoolCOLUMBUS SCHOOL 4JonesJONES SCHOOLx5J. StrongSTRONG SCHOOL 6Abe Lincoln SchoolLINCOLN SCHOOL 7HarrisonHARRISON SCHOOLx8Abe Lincoln SchoolLINCOLN SCHOOL 9Abe Lincoln SchoolLINCOLN SCHOOL 10Abe Lincoln SchoolLINCOLN SCHOOL Spreadsheet

[Code] ...........

What I would like is this

HTMLSheet1  ABC1G. Washington SchoolGEORGE WASHINGTON SCHOOLx2Electrical Magnet SchoolELECTRICALx3Sports Magnet SchoolCOLUMBUS SCHOOL 4JonesJONES SCHOOLx5J. StrongSTRONG SCHOOLx6Abe Lincoln SchoolLINCOLN SCHOOLx7HarrisonHARRISON SCHOOLx8Abe Lincoln SchoolLINCOLN SCHOOLx9Abe Lincoln SchoolLINCOLN SCHOOLx10Abe Lincoln SchoolLINCOLN SCHOOLxSpreadsheet FormulasCellFormulaC3=IFERROR(IF(SEARCH(A3,B3),"x",""),"")C7=IFERROR(IF(SEARCH(A7,B7),"x",""),"")

View 6 Replies View Related







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