If Statement With Vlookup And Wildcard

Jan 7, 2014

I need to lookup data from four different columns to match a value in another sheet. The lookup value has to start with "4" in order for it to be the correct match. I've tried the following formula for just two columns:

=IF(VLOOKUP($C2,'Sheet 1'!$D$2:$H$10000,5,FALSE)="4*",VLOOKUP($C2,'Sheet 1'!$D$2:$H$10000,5,FALSE),IF(VLOOKUP($C2,'Sheet 2'!$E$2:$G$10000,3,FALSE)="4*", VLOOKUP($C2,'Sheet 2'!$E$2:$G$10000,3,FALSE),"False"))

The problem I have is that the wildcard function isn't working in my If statement (apparentley that's how Excel was designed). The first vlookup returns the value "40042565" but Excel doesn't show it matching the criteria with the wildcard ("4*").

Any way to lookup the value in C2, search through multiple columns, and return the value that starts with "4"?

View 3 Replies


Wildcard In IF Statement

Jun 23, 2014

How to use this wildcard in a IF statement.

[Code] ......

I have a column I'm adding a value to another cell if a piece of text is found in the column I'm looking in. The * is not working at all.

View 2 Replies View Related

Can Wildcard Be Used In If Statement

Oct 31, 2011

As far as I know, a wildcard can't be used in an "if" statement. I have a list of "job names" that vary slightly from time to time. When we use a Bunnings "(building account) people give a job name such as "121 William Drive". Sometimes however, the person in the store spells it incorrectly. Is there a way to find a wildcard in the following manner?

Find any word that begins with "121" and ends in "ve"

In a1 it says: "121 wilaim jnes drive" I have tried the following formula in b1:


Why does it say "no"? Is there a formula for using wildcards in an "if" statement?

View 2 Replies View Related

Using Wildcard Characters In IF -THEN Statement

Oct 22, 2007

I'm trying to create 2 separate data sets based on year (06 vs. 07). To do so, I created a column and created an if then statement that populates with Yes If the date value is "like" 2006". Excel didn't like the ? or asterik. Is there some other syntax that will accomplish.

While I open to other approaches for filtering these 2 data sets, Ive been wondering for awhile about excel and wildcard logic.

View 9 Replies View Related

Wildcard Character In Sum If Statement

Apr 26, 2007

The below is a formula I utilize to collect totals for individual associates.

=SUM(IF('01_05_07'!$C$6:$C$102="Petri, Pete #1",'01_05_07'!$AW$6:$AW$102,0))

What I would like to do is keep this same formula but somehow add a wildcard character so that I could capture all totals for Petri, Pete as there are Petri, Pete #1 thru Petri, Pete #15. Anyone aware how to revise the above formula. I've tried utilizing the * and ? characters but I must be putting them in the wrong place as I am not able to get it to work??

View 9 Replies View Related

VLookup Of Concatenate With Wildcard

Jan 31, 2014

I would like to Vlookup an association of data in a matrix where not all information is available. e.g:

Vlookup of following data (concatenate):


but in the mapping I would have a wild card (*) in certain columns (not always the same column)

The concatenate would be for exemple:


I know it works on the other way around (Vlookup of concatenate with wilrdcards) but I can not have wildcards in my source data.

View 7 Replies View Related

Vlookup With Wildcard Search

Oct 28, 2008

picture this.

Cell A1 = xyz3
Cell B1 = 5
Cell C1 = xyz3-hgfe-56f

I need to do a vlookup on C1 in range A1:B1 that will return B1 if C1 contains the string in A1. I've tried using the TRUE variable in the vlookup formula which does not require an exact match. This works for about 80% of my data but is not 100% accurate. Of course I've got a long list of data ... not just the 3 cells.

View 4 Replies View Related

Get The Name Of The File In A Vlookup VBA Using Wildcard Characters?

May 17, 2014

get the name of the File in a Vlookup VBA using wildcard characters. I have to do a VLOOKUP from a specific file which is stored in the same folder as the file in which I need to get this VLOOKUP done, however the name can change anytime keep a word common only for this specific file...

I have a File called "Mapping as on 8th May" from where i need to lookup some information for my file and I intend to do this using VLOOKUP in VBA in a Module but since the name can change to anything such as"Mapping as on 16th May" I cant use it in the VBA code, so is there a way around this where If I have this file stored in the same folder then I keep the word "Mapping" specific and unique for all other files in the same folder that the search can pull this file name to be further used in my lookup..

how to use the wildcards in VLOOKUP lookup range for the file name as the columns are going to remain the same...

View 13 Replies View Related

Can Use Wildcard For R1C1 (lookup Value) In VLookup

Aug 21, 2013

know if I can use a wildcard on R1C1 notation for my "lookup value" in my Vlookup, so that the Vlookup searches for a not exact match, but on the whole contents of the cell, not just the first several letters? I am using VBA, and the vlookup is in each cell of a for next loop, so I cannot use an actual cell reference which is where I've usually seen, and used wildcards. I've tried changing the Vlookup to have the lookup value be "Cells(n,2)" instead of "RC[-2]" to no avail. I need to make the vlookup evaluate all the words in cell "RC[-2]" prior to returning the value I specified, because otherwise it returns the wrong value even though I sorted my lookup table Column A A to Z.

Start Date
End Date
Event ID
"Trans-Pacific Melodies" : an East-meets-West concert presented by Carolina International Orchestra and the China National Orchestra


View 1 Replies View Related

VLookup In Array Search With Wildcard Characters

Jul 10, 2012

I have a sheet with Names in it. I need to look those names up and find which org they belong to. The problem is the the names have many characters after them, and many names belong to a few orgs, with a the rest belonging to many orgs. (See below)

I have been trying to get a Vlookup to work, but since it can't go left, it won't look up the orgs that don't own at least three names. And I can't get the search to work on the names.






View 4 Replies View Related

Add Nested ISNA & VLOOKUP With Wildcard Via Macro Code

Aug 23, 2008

I have the following vlookup working exactly as I want it to in excel: =IF(ISNA(VLOOKUP(LEFT(C2,10)& "*", NAME,2,FALSE)),"",(VLOOKUP(LEFT(C2,10)& "*",NAME,2,FALSE))) -NAME is a defined section on another worksheet

The problem I have is when I come to use this within a vba macro I'm writing the wildcard section automatically gets spaces added so it goes from "*" to " * " and excel doesn't like it! The code I'm using to write it into the cell is simply:

ActiveCell.FormulaR1C1 = _
"=IF(ISNA(VLOOKUP(LEFT(c2,10)& " * ",NAME,2,FALSE)),"",(VLOOKUP(LEFT(c2,10)& " * ",NAME,2,FALSE)))"

how to stop the spaces being added?

View 2 Replies View Related

Vlookup And An IF Statement

Mar 5, 2009

I have three columns of Vlookup data and three columns with a Vlookup formula. I need a fourth column to look at the three columns and see which ones are returning no value (cell with #N/A) in them and then return the cell that does have a value in them or the first row that has a value in it. The values are actually NAICS title descriptions and not numbers.

Column1 Column2 Column3
#N/A #N/A Electrical Componenets Retail
#N/A Boat Dealer Boat Dealer
Tire Retail #N/A Tire Retail

View 4 Replies View Related

Combine A VLOOKUP And An IF Statement?

Apr 28, 2009

Let's say for instance I have a vlookup that displays a the quantity of available items in stock pulled from a column in another workbook. Occasionally these numbers are negatives as they are backordered I would like to display these values as zero.

View 2 Replies View Related

Include Vlookup Within If Statement

Jul 14, 2009

How can you return a Vlookup as a true value in an If statement? For example

View 2 Replies View Related

Add Another Vlookup Criteria Into The Statement

Oct 27, 2009

I want to add another vlookup criteria into the statement below and im having some difficulty, its currently has two called "Name" and "QrtName", i want to add another called "PlaceName". I have a named range called "Data" for the data the vlookup options use. It is working fine other only i want to add the third vlookup option:

View 9 Replies View Related

Vlookup And Nested If Statement

Jun 26, 2007

In the example below I have created a validation list in B1 that references D2:D8. What I am then trying to do for cell B2 is create a vlookup and nested if statement that says if b1 is a number lookup the value in column D and return the value in colunm E and if b1 doesn't = a number, ie 'none' then return a null value. The same goes for B3 where if b1 is a number lookup the value in column D and return the value in columm F and if b1 doesn't = a number, ie 'none' then return a null value.dropdown list problem.

************************************************************************>Microsoft Excel - Book1.xls___Running: 11.0 : OS = Windows XP (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutA1=
[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box

View 9 Replies View Related

If Statement Inside A Vlookup

Mar 8, 2007

I have a list of parts that I have to create in a system. It is easier to do if I create a list of materials ahead of time of what components are needed. What I have done is create a part list that contains a list of parts, what the cost, whether they are manufactured or purchased, and what the sub component is if they are manufactured.

This worked great till I ran into my first sub component that contain its own sub components. I am attaching the spreadsheet so everyone can see what I am doing or more to the point trying to do. IF VBA is a better solution that would be great.

What I need is a formula (or VBA if it is better) that brings back the sub-components and their sub-components for each part until the parts tree for the original part number reaches the base purchased sub-parts.

I have the 1st worksheet set up in three different ways. The first one you run into is simply a length calculator and can be ignored.

The second way is the original way I had the spreadsheet working and it works fine for parts with only one sub-component. If a sub-part has more than one sub-component then it doesn't work.

The third section is where I started building what I thought would work, but it is clumsy and only will work nicely if I can place an IF statement that will only bring back a value for a sub-component if one exists otherwise it will remain blank.

What I would like is to have a formula that will auto fill the information IF and only if it exists for each sub-part listing all sub-components ( I need if it exists, cost, whether it is manufactured or purchased, any and all sub-components [followed by the same information as the parent] and vendor).

View 9 Replies View Related

VLookup On Income Overview Statement

Jul 27, 2013

I am trying to use vlookup on the the income statements I am using. I have a workbook called overview with all the months and need the "total" of each month to appear automatically. The previous vlookup formula does not seem to be working.

View 13 Replies View Related

Using If Statement For Cells With VLOOKUP Equations

Mar 17, 2014

I have two cells with the following equations:

H3=IFERROR(VLOOKUP(A3&TEXT($A$1,"m/d/yyyy"),'CLABSI_Raw'!$A$1:$M$300,13,FALSE)," ")
I3=IFERROR(VLOOKUP(A3&TEXT($A$1,"m/d/yyyy"),'CLABSI_Raw'!$A$1:$M$300,10,FALSE)," ")

In an adjacent cell, I am trying to use an if statement


I am not getting a return in cell J3.

View 3 Replies View Related

Way To Combine The VLOOKUP And IF Statement Formula's

Jan 26, 2006

Is there any way to combine the VLOOKUP and IF Statement formula's into one
formula or is there any other kind of formula which does both?

View 9 Replies View Related

Nested Vlookup With If Statement: Match Up Two Sheets

May 19, 2009

I am trying to match up two sheets and I the match criteria is based on the data from columns B, C, D, E, and G. Sheet 1 contains ~20,000 line items of data. Sheet 2 contains ~250 line items. I am comparing the info in sheet2 vs. the data in sheet1. Both sheets are formatted the same.

For each row in sheet2, I need to compare against all rows in sheet1. For example; for the first row in sheet2, determine if there is a row in sheet1 that contains the exact same data for columns B, D, E, and G (all must be true) and the data in column C is False. Examples:

View 2 Replies View Related

How To Apply VLookup On Statement And Change Date Value

Oct 22, 2011

I have a statement in a cell in which there is a date field.

Is it possible to apply Vlookup on the statement and change the Date value keeping the statement same ???????

View 7 Replies View Related

Vlookup/if Statement - Put A Formula Where The Question Mark

May 4, 2007

I need some help with vlookup/if statement ......

View 9 Replies View Related

VLOOKUP To Return Image Based On If Statement

Nov 19, 2009

OK i have put the membership cards on the same sheet as my raw data so to make the formulas easier. On the membership card i have under membership level i have the formula : =VLOOKUP($J$3,A:E,4,FALSE)

there is 3 types of level bronze, silver and gold

what i would like is if the level is gold after then an image to be placed in the cell rather than the word gold and a different image for silver and a different image for bronze.

View 9 Replies View Related

If Statement With Vlookup Does Not Pull Proper Response

Aug 9, 2006

I am building a template for a report. The report resides on the first sheet of the workbook and the subsequent sheets is where the user would paste the appropriate reports so that the formulas on the first sheet can pull the appropriate data. I have all my formulas working fine with one exception.

The data in question needs to be pulled from the sheet "Paste Adcap Report Here" and the column is AA. The common piece of data between the two sheets is in column C of the Adcap sheet and column B of the main report sheet. What I need to do is conduct a vlookup between the report sheet and the Adcap sheet using the account id's and then return either the date value in row AA or the word ongoing which would be those accounts which do not have a preset end date. So far a co-worker had been able to come up with the following:

=If(VLOOKUP(B16, 'Paste Adcap Report Here'!C:AA,25,0) >0,"cap","ongoing")

The code is a bit screwy as she had to leave early. The problem we encountered was the entry in column AA for a non-ending campaign. It is represented by two hypens (--). This is what tied her up. we could not figure out why the formula was returning an #n/a instead of the term "ongoing" when it encountered the (--). Again, if the formula pulls a (--) then the word "ongoing" needs to be displayed and if the formula pulls an actual date value then it needs to display this date.

View 6 Replies View Related

IF Statement, Or Vlookup; Figures For 20/40/TEU To Show Against The Special Aggreement By Code Tab??

Jun 18, 2009

Example6.xlsx .i just cant remember what it is im meant to be using as i havnt done it since school. basicly on the attached spreadsheet, there are 2 tabs. the common column is Contract number, if the data in the contract number column matches then i need the figures for 20/40/TEU to show against the Special aggreement by code tab.

View 3 Replies View Related

Create Multiple IF Statement And Multiple VLOOKUP Within Same Formula

Aug 11, 2014

I am trying to create a formula which looks in 1 cell to determine 'IF' it states either "BUTT CUT" or "DIE CUT" and then does a VLOOKUP in a table array for each which ever column relates to asnwer to 'IF statement.

This is as far as I have got but even this won't work:


View 7 Replies View Related

If Then Using Wildcard

Feb 21, 2009

Have a cell that says something like "123 main street".

I want the cell next to it to = Main if it detects main in the other cell and if not then it should say no. I tried this.


However, it is not working.

View 9 Replies View Related


Jun 7, 2006

I transferring data from the mainframe and some data has ????. I can not replace them with something else because excel think it is wildcard. The reason for this request is I was trying to count the number of cells that has ???? and the count was something different each time. If you want to have fun try it out. It will count ?, ??, ??? but not ????.However my question would be how to change this (????) to some thing like unknown...

For Each rngC In rngJbn
rngC = Trim(rngC)
If rngC.Value <> newvalue And rngC.Value <> "ab-" Then
'MsgBox "****" & rngC & "***"
Résultat = Application.CountIf(Range("C2:C" & Range("C" & Rows.Count).End(xlUp).Row).SpecialCells(xlCellTypeVisible), rngC)

MsgBox rngC & " " & Résultat & " " & i
End If
newvalue = rngC.Value

View 6 Replies View Related

Utilize A Select Case Statement In Target Intersect Statement

Jul 28, 2009

I am currently using an Intersect statement in a worksheet module to perform two things:
1. Insert a time stamp into row 2 when row 1 has a price inserted
2.To clear that time stamp if the price is deleted at some later date.

My problem is with the time stamp value being deleted by the user.
If I try to clear the price (now that the time cell =empty) I get a Runtime error 91 - Object Variable or With block variable not set.

I would like to convert this code to a select case statement but I'm not sure how to do this in this situation. Would error coding be appropriate in this instance?

View 5 Replies View Related

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