# Advanced Vlookup Formula

Oct 14, 2008
I have a spreadsheet that currently includes the following formula:

=VLOOKUP($C42,$A$42:$B$61,2,FALSE)

Col A is numeric output

Col B is staff names

Col C specifies top ten output numbers from Col A

The above formula goes in column D and It returns the staff names with the top ten output. My problem is that if two members of staff have the same output it formula will repeat the name only one staff member in both rows. Is there any way of altering the above formula so that it will show both staff names in each row?

View 3 Replies
ADVERTISEMENT
Jan 20, 2010

I wish to perform a VLOOKUP on my spreadsheet. I have my table to be called upon all setup and can get the VLOOKUP to work, but I need some help finishing it.

I want the VLOOKUP to take the information from A1 AND C1. Can I do this in a VLOOKUP?

So instead of the VLOOKUP just taking the Lookup_value from just A1 or C1, I want it to match BOTH before it shows me the result.

View 9 Replies
View Related
Jun 3, 2009

I have two worksheets that are formatted differently. One has a list of employees and the other has the same list of employees but with associated employee IDs. I need to pull the employee IDs to the other sheet.

Let's call the two worksheets A and B. On Worksheet A (the one I'm working with), here's the format (column A):

Employee Name

Doe, Jane

Doe, John

Roberts, George

In worksheet B, here's the format (column A | B | C):

Last Name | First Name | Employee ID

Doe | Jane | 1105

Doe | John | 1106

Roberts | George | 1107................

View 9 Replies
View Related
Apr 29, 2014

I am looking for a function or a formula that performs the same process in Excel 2010 as:

Data Tab -> Sort & Filter -> Advanced -> *radio button* Copy to another location -> List range: A1:A100 -> Copy to: B:B -> *radio button* Unique Records only.

View 2 Replies
View Related
Mar 23, 2014

We have a spreadsheet that pulls data from various other spreadsheets that contain information on current year data, budget year data, and last year data. We need to pull from the current year spreadsheet information each month on the inventory count on hand.

We need one formula in one cell of the main spreadsheet that will know to pull from the appropriate month column of the current year spreadsheet based on the particular month we are running the report for.

In other words, we are not wanting to need to change the formula each month, but to write it such that it will know by our indicating in the main spreadsheet which month it is (which is always indicated in Cell B14).

In the main spreadsheet, the cell containing spreadsheet information on where to find the current year data is $D$2.

View 8 Replies
View Related
Apr 23, 2009

I'm having some trouble trying to get excel to input a formula into a cell. I'm still a novice at VBA right now, so I don't think my problem will be too much of a brain buster.

I want a formula in Cell A6 (and I already know it correctly works) in this format: =E6&VLOOKUP(I6,'FA-Fund Data'!B$1:C$2000,2,FALSE)&J6

View 3 Replies
View Related
Oct 22, 2013

i have two excel files which are data and master..both files will be use for salary calculating.. the vlookup formula will be use in master files for dragging the salary data from Data files..the formula as follow VLOOKUP(B4:B225,'D:Salary[Data.xls]AUG'!A$1:F$65536,6,FALSE))

the vlookup working fine to me.. but my problems is i want the data to be auto calculated when they have same value in two columns.. or if the name is similar/match in two columns (one for salary and another one for overtime), the salary should be auto calculated.

Data files will contain of these:

a:Employee ID

b:employee name

c:Employee salary/Overtime

Master files will contain of these:

a:Employee ID

b:Emplyee Name

c:Employee Nett Salary (that will be dragging from Data files)

is there any formula that i can used to combined with my vlookup formula?

View 4 Replies
View Related
May 16, 2014

I have a formula in a cell which is a lookup on another worksheet:

=VLOOKUP(C1,'Staging'!A3:CG92,6,FALSE)

The worksheet name is Staging, and I want to replace the actual name of the worksheet with the value from a variable. I have created a one cell Name called "WS" and in that cell is where I place the name of the worksheet (comes from some VBA code).

how to replace 'Staging' with the variable WS into the VLOOKUP formula.

For informational purposes, the value of the variable changes based on some VBA code, and can contain one of three different worksheet names.

View 9 Replies
View Related
Sep 3, 2009

Working on a college football spreadsheet where 14 people wager $100 per week (just for fun, not real dough) on games using the vegas spreads. The basic function of this spreadsheet was to display the name of the person with the highest monetary winnings. For this, I used IF forumlas since there were only 6 players. Now we have 14 and I've discovered the rule of 7 with the IF formula making my spreadsheet non-functional. I read some on VLOOKUP and even watched a copy trainings on YouTube but I'm not sure that's best for this particular spreadsheet.

Here is a copy/paste of my previous forumla: =IF(A2=Sheet1!C22,Sheet1!C2,IF(A2=Sheet1!D22,Sheet1!D2,IF(A2=Sheet1!E22,E22,IF(A2=Sheet1!F22,Sheet1! F2,IF(A2=Sheet1!G22,Sheet1!G2,IF(A2=Sheet1!H22,Sheet1!H2,IF(A2=Sheet1!I22,Sheet1!I2,IF(A2=Sheet1!J22 ,Sheet1!J2,))))))))

The formula refers to Sheet1 which contains =LARGE(Sheet1!C22:P22,1). This forumla displays the highest value for the current monetary winnings. Anyways, I hope I did a sufficient job explaining the current workings of my spreadsheet and my current problems.

View 5 Replies
View Related
Jan 20, 2010

I have the following V Lookup Formulae:

View 2 Replies
View Related
Jan 14, 2009

On sheet 1 I have a combo box with drop down. I choose a serial number 123456. The linked cell is C3. The combobox ListFillRange is Serials!A1:A10

On sheet2 in column A I placed the serial numbers in A1:A10. I placed the corresponding parts in B1:B10.

Here is what I am looking for. I choose the serial number in the combo box, and it looks at the serial, and in cell H3 it outputs the corresponding part.

View 10 Replies
View Related
Jul 9, 2014

I need a formula that I can use to get the ID.

But the VLOOKUP formula doesnt search for lookup value that contains more than 1.

Colors

ID

Colors

ID

Red

12345

[Code] .....

This the VLOOKUP Formula I used =VLOOKUP(D4,A:B,2,FALSE)

View 5 Replies
View Related
Jan 12, 2007

I have a grid of cells in range B4:F18.

Range B4:B18 contain names and the columns C-F contain dollar amounts.

In row 20 I want to show the name from column B who has the highest dollar amount in the column.

In C20 I entered =VLOOKUP(MAX(C4:C18),$B$4:$F$18,1,FALSE) but rather than returning the name of the person with the highest dollar amount in that column, it returns #N/A. The cells showing the dollar amounts pull the data from another worksheet with an equals formula - can this be the reason?

View 9 Replies
View Related
Oct 12, 2006

I can't seem to get the format of the Vlookup formula right for what I am using it for.

I attached a copy of the spreadsheet. What I am trying to do is input a value in cell E7. Then have Vlookup search column L6 to L75 for a match and return the value in column Q next to that match, and put that "score" in cell E9.

View 8 Replies
View Related
Feb 26, 2014

I need to know if I can use vlookup and the if command in the same formula.

I am trying to attach a workbook but it keeps taking me to log in but I am already logged in so why cant I attach it?

View 1 Replies
View Related
Oct 21, 2008

How to make vlookup work right? I have tried it once and it worked but I can't get it ot work again.

I changed the format to text for the data I using and the data I looking in to see if that would fix the ref# or N/a error.

Is the formatting one possible issue?

I am slow to vlookup but I used the formula as

1. the lookup value is the serial #

2. the table_array is the entire worksheet that I am searching in - or should I just use the column that hold the values I am looking for?

3. the column_index_num is ??

4. [range_lookup] is FALSE.

View 11 Replies
View Related
Feb 20, 2009

Objective: To find out which customers order certain items and which customers dont order certain items. Many customers may order the same item eg customer A, B, C, D all order item "4567"

I have 2 worksheets.

Worksheet 1: Showing 30 item codes, item description and customers. Items in col A (A2:A31), description in col B (B2:B31) runnning down vertically. Customer name in cell 1 of all other columns running across horizontally, eg C1, D1, E1.... (C1:GF1). There are 186 customers. (A formula needs to start at C3 and dragged to GF3)

Worksheet 2: Raw data showing customers in column A and items in column B, There are 3,753 rows. Customer in column A are duplicated as the same customer may order a number of items so for eg

ABC PTY LTD 5671

ABC PTY LTD 5683

ABC PTY LTD 5692

ABC PTY LTD 5610

ABC PTY LTD 5611

Tried the below formula

=if(C1='S2'!A2),=if('S1'!A2='S2'!B2),"ordered","")

View 8 Replies
View Related
Mar 26, 2009

I am using this formula:

=IF(O6>0,"",(VLOOKUP(A6,Material!A2:G43,7,FALSE)))/2000*O6

and it produces #N/A in the cell that contains this formula. If cell A6 has an item selected in it I made from data validation-list then the output is $0.00.

How can eliminate anything from showing if the list is blank in cell A6?

View 7 Replies
View Related
Apr 10, 2009

I have created a sheet that contains a new diet program, calculated down to the precise calorie required for my training routine. Please see below for an example of one of my daily meals:

[url]

I need a formula that will help me to create a weekly shopping list (as the values in the example above will change on a regular basis). So I need to take all values from the from columns A & B, multiply them by 5 and then show me the totals in another sheet.

Similarly, I need to do the same with columns E & F, only they need to be multiplied by 2. The totals then need to be added to give me the required amount (in grams) for the week.

View 11 Replies
View Related
Nov 25, 2009

Im trying to build a little database and the closest thing i have come to manage what i want to do is with IF and Vlookup function.

I have 1 "main page" lets call it "sheet1"

Then i have nomerous of "secondary pages" we call them "sheet2", "sheet3" etc.

The idea is that on my "main page" im using 3 colums "A","B" and "C". "A" and "B" helps deciding where my VLOOKUP function should find the correct value.

The "A" column is planned to decide in what sheet to look for seach word(which is written in "C" column)

Basicly if "A1" is saying "2" its gonna do my VLOOKUP in "sheet2" , and if "A1" sais "3" its gonna look for my "search word" in "sheet3" etc.

My formula at this point (witch is working for 2 pages)

=IF(A1=2;VLOOKUP(B1;sheet1!A1:B6;2;FALSE);IF(A1=3;VLOOKUP(B1;sheet2!A1:B6;2;FALSE)))

This is working perfectly.

If i write "2" in "A1" and "car" in "B1" VLOOKUP jumps to "sheet1" lookup "car" and return the value in the second column (in this case 2"

and if i write "3" in "A1" and keep "car" in "B1" VLOOKUP jumps to "sheet2" and return the carvalue for this sheet (in this case 22).

Then the problem

The problem is ofcourse that if i wanna continue with this formula in the same box, i wanna make it keep looking in more sheets depending on what number i have in "A1"

If i put number 5 in it goes to "sheet5" and look for "car" and return valuve.

But at this point the formula is too big for excel.

So i guess my question is. Is there any workaround for this? Can anyone come up how to approach this in another way? (im out of ideas)

Or am i doomed and have to learn programming to get my idea to work?

View 7 Replies
View Related
Dec 22, 2009

Is there a way to make this a bit shorter without altering the result.

IF(OR(AI10="",ISERR(VLOOKUP(AI10,'Q:5yr Branch reviewBalance Sheet[SC2 Apr09 - Mar 10 Actuals.XLS]bze'!$A$8:$CE$79,F8,FALSE))),0,VLOOKUP(AI10,'Q:5yr Branch reviewBalance Sheet[SC2 Apr09 - Mar 10 Actuals.XLS]bze'!$A$8:$CE$79,F8,FALSE))

+IF(OR(AK10="",ISERR(VLOOKUP(AK10,'Q:5yr Branch reviewBalance Sheet[SC2 Apr09 - Mar 10 Actuals.XLS]bze'!$A$8:$CE$79,F8,FALSE))),0,VLOOKUP(AK10,'Q:5yr Branch reviewBalance Sheet[SC2 Apr09 - Mar 10 Actuals.XLS]bze'!$A$8:$CE$79,F8,FALSE))

+IF(OR(AM10="",ISERR(VLOOKUP(AM10,'Q:5yr Branch reviewBalance Sheet[SC2 Apr09 - Mar 10 Actuals.XLS]bze'!$A$8:$CE$79,F8,FALSE))),0,VLOOKUP(AM10,'Q:5yr Branch reviewBalance Sheet[SC2 Apr09 - Mar 10 Actuals.XLS]bze'!$A$8:$CE$79,F8,FALSE))

I initially had a SUMPRODUCT formula that looked like this:

=SUMPRODUCT(--(ISNUMBER(MATCH('Q:5yr Branch reviewBalance Sheet[SC2 Apr09 - Mar 10 Actuals.XLS]bze'!$A$8:$A$79,F1:F5,0))),'Q:5yr Branch reviewBalance Sheet[SC2 Apr09 - Mar 10 Actuals.XLS]bze'!$Z$8:$Z$79)

However, I turned the page into a dynamic page where the month can be selected from a drop down menu and changes the column index number in Cell F8. And because VLOOKUP can give me an error result if there is a mismatch, I used that combination of Blank cells or ISERR. In the range AI10:AM10 there should be three lookup values (sometimes only one or two), and empty columns between the three values columns. I also will use this formula like a 1,000 times so, arrays is not advisable.

View 3 Replies
View Related
Jan 29, 2010

I have the following information (small sample only):

CodeItemList

162AVS0001 AVS0001

162AVS0002 AVS0003

162AVS0003 BUD0002

162AVS0005C5O1208

102BRE234CAL0007

102BRE-508EQU0003

102BRE-AB09 FXUK21916/2

162BUD0002GMC0003

162C5ENV-TNT HSS0001

162C5O1208 HSS0006

162CAL0005 IBM0003

162CAL0007 KUN0002

The list on the right is derived from the following array formula which has been copied down the column to end of the data range:

{=VLOOKUP($G$130, INDEX(G133:I252, SMALL(IF($G$130=INDEX(G133:I252, , 1), ROW(G133:I252)-MIN(ROW(G133:I252))+1, ""), ROW(1:1)), , 1), 2, FALSE)}

$G$130 refers to a value in that cell which is user defined from a drop down list and in this instance, the value is 162. Therefore, I would expect to see all of the items that contain 162, under the list column. As you can see, it has not returned all of the values relevant to 162. It has missed AVS002, AVS005 C5 ENV and CAL0005 in this example. The ommissions seem random

View 2 Replies
View Related
Apr 7, 2014

Adjust this piece of code:

[Code]....

The lookup is for 00.2014, but this is to fixed. Want to use the same code next year to. So I already defined the variable 'jaar' which the user can choose with a validation. (and next year they set it to 2015).

I thought this code would do it but no luck:

[Code] ....

So what would be the correct way? Been shifting with the " " but its only make more and more mess.

View 2 Replies
View Related
Mar 5, 2009

I have attached a sample. The formula seems to be correct, as I have the same formula in another spreadsheet and it works fine. As you can see, in A9 I have placed a VLOOKUP formula, but the formula wording stays in A9 when I hit ENTER instead of inputting the answer. The purpose of the formula is to look up B9 on Sheet2 and input the correct customer code (in column B on Sheet2).

View 2 Replies
View Related
Aug 30, 2009

I want to learn VLOOKUP formula in this following problem.

VLOOKUP($A3,Sheet2!$A$2:$Q$13,$D2,0)

I am attaching the file for the same.

View 2 Replies
View Related
Mar 14, 2012

Currently I am using a VLOOKUP to return a value, and I am trying to apply a calculation formula to the returned value. Below are both the VLOOKUP formula, and the calculation formula. Each of the formulas works well while in separate cells, however am I able to combine the two formulas into one cell?

Formula1.

=VLOOKUP($G20,'P&L FEED'!$C$2:$K$100,2,FALSE)

Formula2.

=($D20/$I20)*(-$H20)

So first I am using the VLOOKUP to return a value from a range, and that returned value I want to apply the second formula to.

Is it possible to join both formulas into one cell? IF so, how?

View 6 Replies
View Related
Jul 21, 2012

I have the first part of the formula working fine working, as below, not difficult. I cannot get the second argument to show a result.

Part 1

=IF(B4="james",VLOOKUP(K4,$Y$3:$Z$21,2),"")

=IF(B4="james",VLOOKUP(K4,$Y$3:$Z$21,2),IF(B4="fred",VLOOKUP(K4,$Y$25:$Z$45,2)"")

View 3 Replies
View Related
Dec 3, 2013

I would like to replace an item within a Vlookup in several rows as follows

=VLOOKUP(B18,'C:My Documents[tb1.xls]sheet1!$A$1:$D$65536,4,FALSE) with

i.e. replacing an item after the Lokup value with &""

=VLOOKUP(B18&"",'C:My Documents[tb1.xls]sheet1'!$A$1:$D$65536,4,FALSE)

View 8 Replies
View Related
Nov 23, 2006

I have a Formula in Cell A1 and I am entering a Vlookup in D1, I get a #N/A in D1. If I enter for example Monday in Cell A1 instead of the formula, Vlookup works. My question is, will it not work in a Cell with a formula?

View 9 Replies
View Related
Aug 24, 2007

currently my formula is as follows:

=VLOOKUP(H42,POQntyTOTAL,5,FALSE). i need to add another criteria to this formula.

that is....i need to have it return column 5 from POQntyTOTAL, where H42 AND where E42 is found.

View 10 Replies
View Related