Find Max Of String According To Criteria

Jun 13, 2007

I want to find out the max of (Property No) which is String and Number together, according the (Location), How it is possible?
for further info see the example...

View 9 Replies


IF.. Contains...then: Search Through The Text String In That Cell And Find A Certain Word, Find And Retrn A Value

May 23, 2006

I am having trouble getting my IF statement to test if the cell contains the text "sale" return "X" if not "Y". I need it to search through the text string in that cell and find a certain word, and if it finds that word, retrn a value. I am really having difficulty with is what symbol or function do I use for the logical test? (i.e. =, <>, MATCH, INDEX?)

View 4 Replies View Related

VBA Find Partial String In Array And Output Found String Array Value?

Mar 31, 2014

I am trying to do a sort of index match thing using VBA. What I am attempting to do is to use the prefix of a long number and try to find that exact prefix in a string array, and output that string array value. So this is what I have so far as a test:


So I can match the text exactly so if I put PREFIXB in cell A1 in this example, i will get the msg box saying "YES", but if I make it PREFIXB1231k4j3jj1kj32cj, it will display "NO". I want to get it so that PREFIXB will be displayed in the cell that I put the formula in. So if A1 = "PREFIX1AAA100CF" and cell B1 = "=ABC(A1)", cell B1 will display "PREFIX1AAA".

Now the thing is that these prefixes can have different lengths, but will never encompass the exact prefix of another. So if I had a prefix of: PRE1AB, I won't have a prefix of PRE1A.

View 2 Replies View Related

Filter By String Criteria

Jul 11, 2007

What i need to do is basically delete every row in my spreadsheet that contains the criteria "L-0.###" in said column. by ### i am referring to 3 decimals, such as:


and so on. you get the idea.

with the below program i got it working so i can type in:


and have it sort out everything proceeding L-0. ...problem is i need to keep the data such as this:


or basically everything not 3 decimals in with a head of L-0.

here is the macro i'm using:

Sub DeleteRowByString()
' DeleteRowByString Macro
' Macro recorded 7/10/2007 by Khenzel
' Keyboard Shortcut: Ctrl+Shift+S

'Get the criteria in the form of text or number.
vCriteria = Application.InputBox(Prompt:="Type in the criteria that should be removed from matching columns. " _
& "If the criteria is in a cell, point to the cell with your mouse pointer", _
Title:="Ferguson Enterprises, Inc.", Type:=1 + 2)

'Go no further if they Cancel.
If vCriteria = "False" Then Exit Sub

'Get the relative column number where the criteria should be found
lCol = Application.InputBox(Prompt:="Type in the relative number of the column where " _
& "the criteria can be found. (Ex. A=1, B=2, Etc.)", Title:="Ferguson Enterprises, Inc.", Type:=1)

if possibly a modification in my coding to make this work, or simply a criteria i can type in to make it happen.

View 4 Replies View Related

VBA / Using String From Input Box As Criteria For CountIF

Aug 19, 2014

I'm trying to enter text (a staff members initials) into an Input Box so that the initials are then used as the citeria in a CountIF formula entered by VBA

A simplified version of the code I am using is:

Dim staffname As String
staffname = InputBox(Prompt:="You name please.", _
Title:="ENTER INITIALS", Default:="MC")
Range("H9").FormulaR1C1 = "=COUNTIF(RC[-3]:RC[-1],"" & staffname & "")"

The issue is getting the staffname string to be entered within the formula.

What is the correct combination of "" & to enable this to work?

View 6 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

CountIfs Formula Where One Criteria Is String Within Cell

May 10, 2014

I know this should be straightforward, but just can't "hack the logic", whether using "Countifs" oor "SumProduct" formulae.

Attached file 140509 String Criteria.xlsx file has database of three fields (Date, Route number and Part number)

I need the formula that totals number of rows meeting three criteria:
(a) A specific date from Col A
(b) A specific number from Col B
And the part I can't sort out:
(c) Any cell containing a "string" in Col C (so needs to count the "core" even if it has a prefix or suffix).

E.g. How many rows have "Date x" in Col A, "Route Y" in Col B and a cell containing "123" in Col C?

View 2 Replies View Related

Lookup Data With Matching Criteria String?

May 2, 2014

how to figure it out this lookup problem (lookup using partial string of match)...

View 5 Replies View Related

Searching For Left And Right Number In A String With Criteria

Dec 4, 2013

I have a table of data that I need to find the leftmost and rightmost number in that are greater than a specified number in another cell. I've attached a spreadsheet to show what I've got to work with.

I need to do this 1 row at a time and have the outcome in descending cells on the right hand side of the 2 example rows.

View 7 Replies View Related

IF Text String Equals Certain Criteria Then Specified Calculation

Jul 9, 2009

I have 5 cells with drop down validation lists for the different types of window that we offer. From this list I will select the options and then input some dimensions in cell dimension fields. I then have a cell that gathers the text string from the 5 drop down cells.

My aim is to be able to calculate glass sizes from the text string and the dimensions. Each of the possible text strings will require different calculations and will define the sizes that I need to order. I know the equations that I will need for each of the options but cannot think of how to make them dependable on the text string cell.

I am looking for some way of using IF function to say if the text string returns as certain text then there is a certain calculation to calculate from the dimensions for the glass sizes that I need. I dont know if I've explained it too well nor even if its possible but if it is possible I will find a way as I have done some pretty exceiting things with excel in the past.

View 11 Replies View Related

Multiple Criteria Search In Text String?

Sep 24, 2013

I have 2 columns ,A and B, in a table and text strings in C. Each table row A1 and B1 needs to be compared and matched with the text string C:C. Only if both, A1 and B1, are found in the same string, say C5, it has to return A1&B1. If not, return "Not Found".

Several Obsticles:

1. A and B are text and number
2. C is text with different numbers saved as text and words all mixed up
3. There is no defined format for the text, it is different in each string


Banana Apple
Data: 1 MANGOGrape 0000000 800,000.00 EUR something something

Mango Grape
Something your Ref: 8750ours R ef: TG0PPM000000743 500,000.00EUR zu Gunsten Banana Appl e VVA

With all these different formats and inconsistency, is it even possible?

View 2 Replies View Related

Delete Row Based On Partial String Criteria

Dec 10, 2009

I have 2 columns A and B. The data is in column B.

What I'm trying to do is delete entire rows from my current selection if they do not begin with mailto:

View 9 Replies View Related

Multiple Criteria Sort (Parsed From String) Macro

Aug 18, 2014

Have a sheet with list of strings in C:C

Examples of string:

RIO AU 082814 45
RIOE AU 102815 45.01

etc...these are the two primary types

Wish to reorder row 6 onwards according to the following hierarchy:

1st order: year number ascending (ie the last 2 digits of the 6 digit mid: 14, 15 in our example)
2nd order: month number ascending (ie the first 2 digits of the 6 digit mid: 08, 10 in our example)
3rd order: strike value ascending (ie the number on far right: 45, 45.01 in our example)


View 3 Replies View Related

Finding Text That Matches Format Criteria In String?

Oct 3, 2011

I'm trying to restructure a list of files at work into a format that makes some sort of sense and can be filtered into useful information.

Part of what I need to do, is match up all the drawing numbers that a certain project references. The numbers are formatted like "####A##" ex. 1234A01,1234A02,5678A01, etc. The cells that I need to extract drawing numbers from contain some description or other text (not just the drawing number) so I need to extract the drawing number from that cells value. (Ex. I need to get the drawing number 1234A01 from a cell whose value is "blah blah 1234A01 blah blah blah")

I was thinking I could just search the string for "####A##" but I'm not really sure how....I tried instr, but I think its searching for the literal value of "####A##" rather than treating the # characters as wildcards...

I tried:

if rngNames.Cells(intx, 2).Value Like ("*####A##*") then
set intStart = instr(1,rngnames.Cells(intx,2).value,"####A##")
end if
but intStart remains 0, so this method is not working...

View 3 Replies View Related

Find Numerical Followed By X In A String

Mar 24, 2013

find the first numerical in a text string that is immediately followed by an x

so that i can extract the packing size from packing description workbook attached



View 5 Replies View Related

Find Country Name Into String?

May 6, 2014

i am trying to find country name in cell consisting of sting, i applied "=INDEX(K2:X2,MATCH(TRUE,INDEX(ISNUMBER(SEARCH(K2:X2,A2)),0),0))" this formula i am getting desired result but i am not able to apply ctrl+d since all cell reference are iterating.

View 8 Replies View Related

VBA; Find String And Copy

Jan 31, 2008

I would like to call up a find box, then be able to search several worksheets for a string, to copy and paste the related row to a new worksheet.

I've gotten as far as being able to search for a string and get the row pasted, as long as the string is defined in my macro. Is there a way though to be able to call up a find box first though, and search for the input variable? (alternatively, I can only imagine a separate piece of code for each variable, of which there are many, and I am actually trying to save time.

View 14 Replies View Related

Find Last Row With Text String

Jun 16, 2009

The following line finds last "non-blank" row in a column. I have a column that has formulas in 10000 rows. Most of the time only first 7000 rows will have data, other cells below will have "". I need to find the last row with real data, not "".

Is there a way to add a condition or check to the following line?

View 6 Replies View Related

Find String, Add Values

Aug 2, 2009

1) Find strings "CA", "Ca", "ca", "California", "california", "cali", "Cali" in Column F

2) If the string is found, then record the Real value at Column D of that row in Column I

3) Continue this until there are no more strings in Column F

4) Add the values recorded in Column I and display the final value at the bottom of the list.

View 2 Replies View Related

Find Numeric Value At End Of String

Feb 3, 2006

say I have a string that looks like this

C:Documents and Settingsme[test 2-2006.xls]Sheet1

I want to extract the DATE prior to .xls. I can get to this:
C:Documents and Settingsme[test 2-2006

It is possible that the filename would have numbers in it prior to the date.

I'm trying to figure out a way to get to the last SPACE in the string.

View 13 Replies View Related

Find Cells Which Do Not Contain A Particular String

Dec 31, 2011

I would like to modify the macro below in order to find cells that do not contain */*/20*

How do I achieve this?

Sub delete_oldads()
Dim cel As Range, cfind As Range
For Each cel In ActiveSheet.UsedRange
If cel = "" Then GoTo nextcel
Set cfind = cel.Find(what:="*/*/20*", lookat:=xlPart)
If Not cfind Is Nothing Then
cfind.Copy Cells(cfind.Row, "A")
End If
Next cel
End Sub

View 9 Replies View Related

Find Out Whether Particular String Exits?

Mar 26, 2013

I know "Instr" find out whether a particular string exits. Can it also tell how many of that particular string appear in a text?

View 3 Replies View Related

FIND LAST Occurrence Of String

Nov 12, 2013

I understand that the function FIND(find_text, within_text, start_num) will find the first occurrence of a stated string. And by adjusting the start_num, you can skip a set number of characters before the search begins.

But, is there a way to find the Last occurrence of said string? In my case the find_text string may occur multiple times in the variable length within_text cell to be searched.

Sample: Find the last occurrence of MDU


In the above 2 sample strings the output of the Find() function needs to be 26 & 40. Having a cell formula would be desirable, but if it can only be done by VBA that is acceptable, also.

View 9 Replies View Related

Find Value In String Using VBA Macro []

Nov 20, 2007

I need to check a certain value in a string


In the list over I want to find nr 2 and 3. Using Instr sorting for 'ap' gives me all the list. How could I use string functions in a VBA macro.

View 5 Replies View Related

Find Text In A String

Jan 3, 2008

I have the following string of text and want to take out certain parts of it. Assume the string is in cell A1.

In cell B1 I want "Company ABC DEF"
In cell C1 I want "10.50%"
In cell D1 I want "12/13/2014"

Company ABC DEF (USD) 10.50% 12/13/2014

how the MID formulas work (as a bonus)? I used =MID(A1,FIND(")",A1,1)+2,45) and it returns "10.50% 12/13/2014".

So I see that that formula says start from 1 character after ")", count 2 over, and then put in the next 45 characters. How do I do an in between amount, and how do I just have it come from the LEFT but stop when it finds " ("

View 9 Replies View Related

Find A String And Bold The Row

Oct 15, 2008

I am using ctrl+f to find a string that may or may not be in a worksheet.

If it is found, i need to bold the row.

If it is not found, i need to go on to the next instruction in the macro.

I just don't know quite how to combine the If/Then with Find.

View 9 Replies View Related

Web And Find Text String...

May 22, 2006

I have this page in html. How to find the value 1 and 4 in:

<td WIDTH="25%" ALIGN="center"><font style="font-family: Verdana,
Arial, Helvetica, sans-serif; font-size: 10px; font-weight:

and to find the value 308: <td align="center" colspan="11" class="INFO">Totale fidi individuati:308<br></td>. after store the value founded in var_1, var_4 and var_308. NOTE: in this case the value are 1, 4 and 308 but the contet of tag the value can change because the page is dinamic, in other case find the value after:

font-weight:bold">&nbsp;Pagine&nbsp;now is 1
font-weight:bold">&nbsp;Pagine&nbsp;1&nbsp;di&nbsp;now is 4
<td align="center" colspan="11" class="INFO">Totale fidi individuati:now is 308

View 2 Replies View Related

Search Text String And Return Value Based On Multiple Criteria?

Apr 8, 2013

Here is an example of the data I get each day Letter order granting Sabine Pass Liquefaction, LLC's et al 4/16/12 request to add an alternate water source etc under CP11-72.Letter order granting Cameron LNG, LLC?s 4/5/13 filing of a request to introduce natural gas or process fluids into the BOG Liquefaction Project under CP12-15.Letter order accepting NorthWestern Corporation's 8/7/12 submittal of revisions to its transmission planning process to comply with the Commission's June 8, 2012 Order under ER11-2932.Letter order approving Public Service Company of New Mexico's 12/7/12 filing of a joint Offer of Settlement with Navopache Electric Cooperative, Inc under ER11-4534 et al. How can I set up my spreadsheet and what formulas can I use to search and return a value for each text string based on the attached table (column B)?


View 1 Replies View Related

If Cell String Meets Criteria Then Clear Contents From Array On Same Row

Jul 17, 2013

I'm attempting to clear the contents from a range of cells on rows where a cell string may equal R, X, XX, Y, Z, ZX, #N/A.
The macro runs fine until it gets to a cell that contains #N/A. How to get this to work?

Sub Recalculate()
Dim r As Integer
r = ActiveSheet.UsedRange.Rows.Count

Application.ScreenUpdating = False

For Row = 13 To r

[Code] ........

View 2 Replies View Related

Find Sub String Matches Between Two Columns?

May 30, 2014

I am trying to match words in two separate columns that are not exact matches. any formulas or codes I can write to do this.Below is an example.

Column A
3m Corporation
Apple Inc
Allstate Corp
State Farm

View 2 Replies View Related

Copyrights 2005-15, All rights reserved