Vlookup Conditional On Data In Two Columns?

Nov 26, 2012

I essentially want a worksheet level function equivalent to the following VBA function. When I try to use this function and copy it down 155,000 rows it takes far too long.

The function should check a second worksheet for both Prod Code and Client Number and where it finds both it should return the price of that product code specific to the client.

Function ClientPrice(x, y)
'x = Prod Code
'y = Client Number

[Code]....

View 2 Replies


ADVERTISEMENT

Using VLookup To Compare 2 Columns Of Data

Oct 26, 2012

I'm having difficulties using vlookup to compare two columns of TEXT data. My goal is find out how many of items in the "Eligible Serial Numbers" list have been ordered for destruction. The items listed for destruction are listed in the "Serial Numbers (destroyed).

Whenever I put in a VLOOKUP, I get a serial number that doesn't make sense to me. For example, if I want to find out if "362351581" from the Eligible List appears on the destroyed list. What do you suggest?

Code:

Destroyed? (i.e. Vlookup formula in this column)
Eligible Serial Numbers
Serial Numbers (destroyed)
362351581
362351581

[Code]....

View 9 Replies View Related

Data Validation & VLookup Across 3 Columns

Apr 4, 2009

I have one column dedicated for the drop down list defined as 'Service_Level'. My second Columns is defined as 'Starter 1' which contains options that are included w/ the service level. My third column is defined as 'Starter2' which details the options that are in 'Starter1'. What I want to do is is have someone select from the 'Service_Level' drop down menu and then have it display Starter 1 and Starter2 data. I'm familar with Data validation and Vlookup, but I haven't been able to pull this off yet.

Another problem I've been running into is: since I have spaced in my first columns the drop down menu reflects this as well. Is there any way to filter the spaces for the drop down menu, yet keep them in the source field?

One other thing I should clairfy is that I want to be able to select 'starter, preferred, or extreme and have it reflect just the stats for those fields.

View 9 Replies View Related

Conditional Average Of 2 Data Columns?

Jan 18, 2014

I am trying to get the conditional average of 2 data columns.

data_1 category data_2 category
2.5 Yes 1.2 No
4.2 No 2.6 No
3.5 Yes 3.9 Yes
4.1 No 2.5 Yes

What I need is the average across the 2 data columns (data_1 and data_2) for category Yes and category No. I know I can use averageif to get the conditional average of 1 column, but that doesn't work with 2.

View 5 Replies View Related

Converting Conditional Data In Rows To Columns

Aug 23, 2009

How can I convert a table from rows to columns as shown below??? Thanks for the feedback...

Current file with:

Unit_no work_order_date

1234 1/1/2005
1234 6/10/2006
1234 10/1/2007
4321 2/3/2004
4321 5/12/2005

Change to:

Unit_no work_order_date work_order_date2

1234 1/1/2005 6/10/2006
1234 6/10/2006 10/1/2007
4321 2/3/2004 5/12/2005

Will be working with data to sum data between the two work order dates...

View 9 Replies View Related

Vlookup Table To Lookup Data In Columns And Rows

Apr 28, 2007

I have a lookup table which needs to be able to retrieve data from columns as well as rows and not sure if this is possible.

My data is set up with an ID number, financial year and data across the columns e.g

ID F/Y Apples Pears
9999 2004/5 5 4
9999 2005/6 7 8
9881 2003/4 5 3

My lookup table will have the ID number field which will be manually entered to lookup the information on the data sheet. e.g

ID 9999
FY Apples Pears
2004/5 5 4
2005/6 7 8

I can't work out a way to get excel to only give me the number of apples and pears for that year for that ID number. Not all ID numbers will have the same number of financial years so I may need to use VBA.

View 7 Replies View Related

VLOOKUP & Lists (range Called List That Has 3 Columns Of Data)

May 20, 2009

I have a range called List that has 3 columns of data:

Corporate Human Resources Services PMA
Corporate Procurement Director
Ops Central Customer Services Lost Property Office
Ops Travel Information Travel Info Call Ctr
Ops Travel Information Centres Travel Info Centres

I have 3 columns on the entry sheet called Business Unit (Col A), Department(Col B) and Sub-Department (Col C). I want to limit the choice in column B to based on the selection in Column A in the form of a drop-down list e.g choosing Corporate gives a list of Human Resources Services; Procurement.

I am using the list option for field validation and the following formula in cell B2: =INDIRECT(VLOOKUP(A2,List,2,0)). I'm not sure what I'm doing wrong as I don't get a list of options just a blank cell. Do I need to use a different formula other than VLOOKUP..?

View 3 Replies View Related

Conditional Format Cells In Jan - Dec Columns Based On Next Column Data?

Jan 29, 2014

Wondering if it is possible to conditional format cells in "Jan"-"Dec" columns based on "Next" column data?

What I need is (lets say fill colour to differ) in one cell per row, based on latest input and "next" data.

Month Avg
Date
Jan
Feb
Mar
Apr
May
Jun
Jul

[code]......

So for example:

row2: May is latest input so need fill in cell +2("next" column data) from may. In this case July

row3: Feb is latest imput and "next" also 2. Result should be Apr

row8:May is latest input, "next" is 6. Res should be Nov.

Finally, only one cell per row to be highlighted so need to overwrite colour fill when new data input in a cell already colour filled.

View 9 Replies View Related

Excel 2010 :: Conditional Formatting - Highlight Values Based On 2 Columns Of Numerical Data

Apr 12, 2013

I'm having issues with Excel's 2010 conditional formatting. Seems easy to use, but I'm trying to highlight values based on 2 columns of numerical data. Example:

Column F:
6
6
14

Column L:
3
NA
17

I would like Column L to highlight values that are greater than Column F in green. If they are less than Column L then highlight them in red.

Seems I was able to do this with Excel 2003, but I don't understand the 2010 version.

View 3 Replies View Related

Conditional Formatting Using VLookup?

Nov 15, 2012

I'm working on a report that uses part numbers in column J, starting in J6. I'd like to highlight the entire row if a certain p/n from a lookup table is in J. (the table is in the sheet "Testers" from A2 to A42 and the relevant p/n's are in column "A") I went to cond format and in use a formula to determine formatting I entered:

=vlookup($J6,Testers!$A$2:$A$42,1,0)

And then selected a fill format but whan I apply it does not work. I tinkered with the $ to ensure it jumps to the next row but stays in the column but I cannot get this to take.

View 4 Replies View Related

Conditional Fromatting With Vlookup

Apr 5, 2008

I applied a CF in my worksheet that has customers and associated information. The formula is as follows: =IF(ISERROR(VLOOKUP(A1($AA$1800:$AA$1816,1,FALSE))FALSE,TRUE. Then I applies a fill color, if the word is found in the lookup range, the cell color is highlighted. Can someone tell me why this is not working?

View 9 Replies View Related

Conditional Vlookup To Return A Value From Other Spreadsheets

Mar 18, 2009

I currently use VLOOKUP to return a value from other spreadsheets. However, I need Excel to firstly check the contents of a particular cell, and then decide which spreadsheet to look up. So, for example if the vaule in cell C3 = 1 then VLOOKUP spreadsheet "ABC", if value in cell C3=2 then VLOOKUP spreadsheet "XYZ" and so on.

View 4 Replies View Related

Conditional Vlookup Return Table

Sep 10, 2009

Main (Sheet1) - Got a table with several informations relative to a number of a house
House1 (Sheet2) - Want the information extracted from Main (Sheet1) to a table.
House2 (Sheet3) - Want the information extracted from Main (Sheet1) to a table.

So basicly i want to extract the info from Sheet1 if it matches the Number of the House on sheet2.

With Vlookup can only get a cell value as i am not an expert in excel

See the attachment

View 2 Replies View Related

Conditional Format Using Formula That Contains VLookup

Mar 13, 2014

I have a set of data in A:P

I have a named range "TR" in which I need to look up a value

I would like to conditionally format Columns M:P if the value in the cell is less than a value in the lookup table

Column M corresponds with the 2nd column of the lookup table
Column N corresponds with the 3rd column of the lookup table ETC

My formula would be:

if M2 < Vlookup(b2&g2,TR,2,false) then conditional format
if N2 < Vlookup(b2&g2,TR,3,false) then conditional format

etc for Columns O and P

I have attached a sample workbook. TEST CONDITIONAL FORMAT.xlsx

View 2 Replies View Related

Conditional Formatting Using VLookup - Comparing Two Tables?

Nov 5, 2013

these are two tables i have to compare.Sl No

Type

1
NORMAL

2
NORMAL

3
NORMAL

4
QUAD

[Code] ........

Sl No
Type number

1
1

2
1

[Code] ........

where,
1=NORMAL
2=QUAD
3=BI-DIRECTION

i want to compare between these two table based on the condition writen in RED. IF there is a mismatch i want to highlight the values in the first table.

View 3 Replies View Related

Write VLookup Where Data Array Changes Each Time VLookup Used

Oct 29, 2012

I'm trying to do a Vlookup on a file that gets automatically downloaded to the computer from a website. The data is in lots of different data sets, like so:

Loans to countries
Mar
Apr
May
Jun

Loans to banks
Mar
Apr
May
Jun

Every month a new row of data gets added to each table, meaning the start and end cells of the array also shift each time.

View 4 Replies View Related

Conditional Formatting - VLOOKUP And Blank Cell In Range?

May 22, 2012

I need to format cell D1 to have the fill color be red if any cell in D2:D21 is blank. I've tried

=VLOOKUP("", $D$2:$D$21, 1, FALSE) but that returns #N/A (there is one blank cell in the range at the moment).

I really don't want to use =OR($D$2="", $D$3="", ...$D$21="") if I can avoid it.

View 3 Replies View Related

Conditional Formatting Based On True Or False Value Returned In Vlookup

Apr 21, 2014

i have a formula in a cell:

=IF(ISERROR(VLOOKUP($D11,PRMC!$O$15:$P$1048576,2,FALSE)),"",VLOOKUP($D11,PRMC!$O$15:$P$1048576,2,FALSE))&IF(ISERROR(VLOOKUP($E11,PRMC!$O$15:$P$1048576,2,FALSE)),"",VLOOKUP($E11,PRMC!$O$15:$P$1048576,2,FALSE))

The first half of the vlookup searches for data and returns a dollar amount if true The second half of the vlookup searches for another data set and returns a dollar amount if true...

Both amounts could be the same, so I cant use a formula based on numeric value

the conditional format must determine which vlookup is returning the result

in other words I'd like to conditionally format (grey fill) if the first vlookup returns data and conditionally format (blue fill) if the second vlookup returns data

Probably have to "use a formula to determine which cells to format"

View 7 Replies View Related

Conditional Formating IF, Match, Index And Vlookup To Find Several Duplicated Value

Apr 11, 2009

This had been hunting me for weeks and I still could not come over it after weeks of study the conditional formating IF, match, index, Vlookup, etc to find several duplicated value, e.g Column B = Name 1 & Row B = Time and so on, where as Name will have data of Name 1 duplicated in different time, while row B, "Time"would change to a different Name and maybe it would go back to Name one.

My problem was dont know which formula I can use in a different sheet to bring back the data to Name 1 did Task A at Time A, while Name 1 did Task B at Time K, etc. If this is not Name 1, then Name B replace above.

View 4 Replies View Related

Double VLookup (vlookup The Same Data From 2 Different Sheets)

Jul 13, 2009

I'm currently trying to vlookup the same data from 2 different sheets. Here is the code i've tried.

View 4 Replies View Related

Multiple Ccolums/rows To Get Data From Multiple Columns/rows (vlookup)

Jan 15, 2010

I have created a spreadsheet to show some reports and I wanted to serch for some datas which overloops themeselves. If you can have a look at a test file I attached you will see the full picture. I have 2 tables, where the 2nd one is on the right side of the 1st one. 1st table:..............

View 3 Replies View Related

Conditional Or VLookup (Gives True Or False If Text In A Cell Matches Any Cells In A Range)?

Jan 14, 2009

I need to create a formula that will give me True or False if text in a cell matches any cells in a range.

For example:

Column A and B have text:

Account
Date
Name
Species

Column C has other and sometimes matching text:
Name
Deal

What formula would I use to find out if all cells in Columns A and B are represented in Column C?

View 3 Replies View Related

VLookup In 2 Columns

Aug 20, 2014

I'm looking for a vlookup that will look in 2 columns of the array table and output an answer based on them.

See the attached example : Example.xlsx

View 5 Replies View Related

VLookup - How To Sum Two Different Columns

Jan 13, 2014

I have the following concern as i'm not able to solve it alone:

Ex: =vlookup(c11;flyingprogram;2+5;false)

View 4 Replies View Related

VLookup In Different Columns

Feb 21, 2013

Code:

A B C D
1 2801 2 2816 1
2 2802 2 2815 0
3 2803 3 2814 88
4 2804 4 2813 99
5 2805 5 2812 2
6 2806 6 2811 6
7 2807 4 2810 1
8 2808 3 2809 4

I'm new here and I saw that many people actually have excellent knowledge in excel.

Well, I'm trying to use vlookup on my sheet, but the data I have comes with the code and your score his side.

In a standard vlookup would be: = vlookup (value, range, 2, false).

This is the problem, I would like that when he could not find the value in column A or B, were to column C or D and so on.

View 9 Replies View Related

Vlookup Two Columns

Jul 3, 2009

I have a spreadsheet with the following data:

A B C D E
18500 Eggs 4 6 9
18500 Bread 2 0 1
18500 Cheese 3 8 4
71200 Eggs 9 6 3
71200 Bread 2 8 4
71200 Milk 1 0 8

I need a formula to check column A, then B and return a result from C:E.

Column A is 18500 or 71200
Column B is Eggs, Bread, Milk or Cheese
Column C, D E are sales figures.

View 9 Replies View Related

VLOOKUP On Multiple Columns?

Jun 10, 2014

I've used VLOOKUP based on matching one column and returning one result. No problem. Now I need to return one result based on 3 columns matching.

Assume this range of columns is named: TravelDays
Origin...Location...ShipVia...TravelDays
33778...420...UPS...3
33778...425...UPS...1
33778...440...UPS...3
33778...443...UPS...3
33778...446...UPS...2
33778...447...UPS...3
33778...449...UPS...5
33778...475...UPS...3

What I'm trying to accomplish is if these columns match:
i2=Lookup!TravelDays,1
E2=Lookup!TravelDays,2
N2=Lookup!TravelDays,3

My result should be: Lookup!TravelDays,4

View 14 Replies View Related

VLookup Using Two Values In Two Columns

Aug 11, 2014

I am creating a payroll spreadsheet that will look up tax deductions from a spreadsheet I pulled from the IRS website. The first two columns represent a range of values the employee's pay would fall between. The first column is "paid at least" and the second column is "but paid less than".

Once I locate which row the employee's wages fall between, I would then need to match their number of withholdings with the corresponding column. Columns 3, 4 and 5 have headings to represent 0, 1 or 2 withholdings.

The value I need returned would be the intersection of wages paid and withholdings. For my spreadsheet example, if the employee's wages are 1,023 and they have 1 withholding, I need the formula to return 147. I was able to find a vlookup/match formula but it worked only without a range of wages paid.

For example, if the employee was paid exactly 1,030 and had 1 withholding, it would vlookup/match to return 147. Obviously, this won't work with me needing to find the correct row based on where their wage falls in the ranges.

I've attached a picture of the spreadsheet example below. payroll example.jpg

View 2 Replies View Related

Vlookup - Compare Two Columns

Oct 26, 2009

I need a Vlookup to look at two columns when searching. here is an example:

Sheet 1 is my report grid to hand out to the employees, A1 has a drop-down list with my employees names and A2 one for the month, when you click an employee name the vlookup formula fills in the information from sheet 2 (data sheet).

Sheet 2 has data like: Col 1= Month, col 2=employee L-name, col 3= production etc...

currently the vlookup formula messes up because the employee name is in there multiple times because of the months column, i have to delete all months except the one i need. formula is: =vlookup(A1,'sheet2'!,B:C,2,false)

this formula will pull the data in sheet two column 3 (production) for the employee that matches.

how can i make it compare first to col 1 (month) and then col 2 (employee).

View 10 Replies View Related

VLOOKUP Across Multiple Columns?

Dec 16, 2012

I have a list of names I need to look up against another list. My problem is that the second list has a mixed formatting of Firstname Lastname and Lastname Firstname. What I did so far is create a second column that reverses the first and last names in the column.

Table1:

A
B

1
Name
Name (reversed)

2
John Smith
Smith John

3
Jackson Laura
Laura Jackson

4
Maxwell Ted
Ted Maxwell

5
Chris Hansen
Hansen Chris

Table2:

A
B

1
Name
Currently employed?

2
John Smith
=IF(ISNA(VLOOKUP([A1; Table1!A:A;1;FALSE));"NO"; "YES")

3
Laura Jackson

4
Ted Maxwell

5
Chris Hansen

The VLOOKUP formula works great but I need it to look for a matching name across Table1:A:B not just Table1:A:A. How would I do this?

View 2 Replies View Related







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