Not Understanding VLOOKUP
Jun 30, 2008
I have searched for a while on VLOOKUP (something I'm not very familiar with but and trying to become more so), And if this wasnt such a time sensitive project I would continue to search. In one sheet, there is a column which includes employee #'s, the next column over is the employee names, next is salary. On another sheet I put a drop down box where you can select the employee number. In the cell next to that I would like to have the employees name come up as well as the salary in the next cell over....something like this
Name Salary
Dropdown w/#'s
Taken from
Emp# EmpName EmpSalary
23123 Joe Smith $50,000
Is this the right time for vlookup...there are almost 1000 names in this sheet?...
View 9 Replies
ADVERTISEMENT
Dec 8, 2008
I have a workbook with several worksheets and numerous userforms, commandbuttons and macro's. I want to prevent people from saving over the workbook once they have used it, but allow save as using a different workbook name.
I tried saving the book as .xlt, but then when I reopen it and make material changes, it lets me save over it. I have't worked with templated before, is there something I am doing wrong?
View 9 Replies
View Related
Mar 26, 2014
I have this formula -
=SUMPRODUCT(('[Australia Load Tracker - March 2014 - V2.xlsm]QA'!$E:$E=B4)*('[Australia Load Tracker - March 2014 - V2.xlsm]QA'!$D:$D=$A$2))
Which works perfectly if A2 has the cell value 24/03/2014 however, if i put in $A$2 this value
="02"&"/"&$XFC$1&"/"&"14", where XFC$1 equals =IF(XFD1>9,XFD1,"0"&XFD1) and XFD1 = =MONTH(TODAY())
Which in basic term gives the month value "03"
The cell shows the value 24/03/2014 however does not work with the sumproduct.. is there anyway to get sumproduct to read this cell value as 24/03/2014 as the whole point is so every month I don't have to update anything and it will constantly update...
The only alternative i can think of is quickly making a VBA script to hardcode the cell values for the dates and change the month value for the middle of the cells every month.
View 3 Replies
View Related
Mar 5, 2008
How do I use Find to locate the first occurence of a particular value in a cell, and return the row that the cell is in?
View 14 Replies
View Related
Dec 19, 2006
it has been designed to send out automated emails using Excel and Lotus Notes, unfortunately the code was give to me to modify and the person who created it didn't comment the code at all so i'm finding it impossible to see what each part is doing: ....
View 14 Replies
View Related
May 2, 2006
i need to extend the analysis but i have no idea what the 2 modules below do.
Sub mmm()
zonecode = Worksheets("sheet1"). Range("a65536").End(xlUp).Row
etypes = Worksheets("sheet1").Range("iv1").End(xlToLeft).Column
nextline = 2
For i = 2 To zonecodes
zcode = Worksheets("sheet1").Cells(i, 1).Value
For j = 2 To etypes
etype = Worksheets("sheet1").Cells(1, j).Value
enbr = Worksheets("sheet1").Cells(i, j).Value
Worksheets("sheet2").Cells(nextline, 1).Value = zcode
Worksheets("sheet2").Cells(nextline, 2).Value = etype
Worksheets("sheet2").Cells(nextline, 3).Value = enbr
nextline = nextline + 1
Next j
Next i
End Sub....................
View 2 Replies
View Related
Jun 29, 2006
Where can I obtain some working examples or explanations as to what, where, when, why, and how these Public and Private Sub are correctly implemented? I see these code used extensively but not sure why it's there yet. A macro which uses a Private Sub is in one of my workbooks. Due the "progress" of things from here I now need to move to the next curios level of understanding Macro and VB coding.
View 3 Replies
View Related
Feb 6, 2009
Can someone explian to me this line of code in eglish specially after the .Count /14-1
View 2 Replies
View Related
Aug 18, 2009
I have a Vlookup which I want to modify so that it can become dynamic as the table array part of the vlookup will change.
So the basic vlookup is as follows:
=VLOOKUP($R$3,ATTRIBUTION_FACTSET!$M$60:$P$73,2,0)
but the data I am looking for wont always be in the range M60:P73.
So I tried to make it dynamic by doing the following:
=VLOOKUP($R$3,INDIRECT("ATTRIBUTION_FACTSET"&"!M"&U1&":P"&V1),2,FALSE)
The idea being that U1 and V1 would be numbers that can change so in this case U1 would equal 60 and V1 would equal 73
This vlookup is giving me #N/A and no matter how I modify it I cannot get it to work.
View 3 Replies
View Related
Oct 5, 2009
I have a sheet using VLookup to find EMail and Web addresses. I can get the address to show up but not as an active URL address. Is it possible to have the address "active" so I can click on it and activate the EMail or Web Site?
View 5 Replies
View Related
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
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
Jun 9, 2009
I’m trying to develop a workbook which holds monthly data on loan information. It tracks the interest and balance on the loan. I want the first page to have a table displaying the interest payments for every individual tab. When I was brainstorming the idea, I was considering a sort of Vlookup function to find the tab the account is on and then a further function, possibly another vlookup which connects the month to that month’s interest payment. Can anyone help me figure this out?
The attached spreadsheet is obviously simplified, there are well over 30 tabs. But I would like it to, ideally, search the account number column, search the workbook for that account number, and then when on that page use the month at the top of the first page and retrieve the interest payment and put it back in the cell. It’d also be great if the formula can be transferred between workbooks. I’m not sure if that makes sense; basically if I were to copy that worksheet into the next months book, I would like that the formula read those tabs instead of becoming obsolete due to references from the first workbook.
View 14 Replies
View Related
Jul 24, 2009
I have data in a pivottable which I want to compare with another table. The lastcolumn+1 of the pivottable needs to get data from another table. I have this for an example:
View 5 Replies
View Related
Sep 17, 2008
I have a spreadsheet (Need Data.xls) that needs to be filled out with a couple columns of data.
This data lays within 338 spreadsheets which have many items and may only have 2, or 3, or 50 that belong on my Need Data.xls spreadsheet.
I have a tab in Need Data.xls named "DIR" which has a list of 336 excel files that need to vlookup'd into.(not a separate file) They're all setup with this format:
View 14 Replies
View Related
Jan 8, 2009
I am receiving a run-time error with following code. The error message is "unable to get the VLookup property of the WorksheetFunction class". I only receive the message when the lookup value is not found in the table.
I thought adding the "False" command at the end would return an "N/A" but it didn't. Is there anything I can add to avoid this error?
View 3 Replies
View Related
Jul 15, 2008
I'm taking a spreadsheet that I produce each month and creating a year to date spreadsheet in the same format. I'm using a vlookup to find the campaign name in each sheet and add up the totals. This works fine but sometimes a camapign ends and so the vlookup for that month will produce an #n/a value so will reduce the whole sum to #n/a.
The VLOOKUP + VLOOKUP + VLOOKUP I was using that produced an #n/a is shown below.
=VLOOKUP($A6,'[Margin by Site Net April 2008.xls]Brighton'!$A$5:$F$26,2,FALSE)+VLOOKUP($A6,'[Margin by Site Net May 2008.xls]Brighton'!$A$5:$F$26,2,FALSE)+VLOOKUP($A6,'[Margin by Site Net June 2008.xls]Brighton'!$A$5:$F$26,2,FALSE)
To get round it I've added in an IF statement combined with ISERROR as shown below. It works but is looking quite messy. Is there an easier way to do this ? (the formula below is from the cell below the one above so the look up value is one cell down)
View 9 Replies
View Related
Dec 12, 2013
I am trying to use Vlookup to find out the min and max sales of the products shown in the spreadsheet. I have used Vlookup before but only by itself and with 2 columns.
View 5 Replies
View Related
Dec 8, 2008
I am trying to create cell to calulate the total cost from a column is a pivot table. I thought i had done it but then realised that it doesn't account for dupliate suites that occur.
I thought that using VLOOKUP might work for this but not sure how to do it.
What I am looking for is to say (for pivot table sheet) if cloumn b contains arable then total cost =395, however if column b contains arable and forestry then total cost = 395, however if column b contains arable and urban then total cost = 420..... but for all possible cases.
At the moment if column b contains arable and forestry total cost = 520
View 9 Replies
View Related
Jan 14, 2009
Example:..............
I want column B to be populated with the details from Sheet1, Column B if A = A and if not found populate with the text "NO ID". However for valid results, I'm getting #REF! The formula I'm using is:
=IF(ISNA(VLOOKUP(A1,Sheet1!A:A,Sheet1!B:B,FALSE)),"No APW ID",VLOOKUP(A1,Sheet1!A:A,Sheet1!B:B,FALSE))
I'm assuming this is because the value of Column A is text and not a numerical value but am having a real blonde moment as to how I can solve this.
View 2 Replies
View Related
Jan 24, 2009
I added the roundup column because i thought that might be the problem.
=VLOOKUP(0.18,B4:C2819,2,FALSE) result=#N/A
A B C D
GP%roundup profit price
0.350.36 $635.00 $1,800.00
0.350.36 $630.00 $1,795.00
0.350.35 $625.00 $1,790.00
continues
0.190.19 $265.00 $1,430.00
0.180.19 $260.00 $1,425.00
0.180.18 $255.00 $1,420.00
0.180.18 $250.00 $1,415.00
0.170.18 $245.00 $1,410.00
0.170.18 $240.00 $1,405.00
View 9 Replies
View Related
Mar 10, 2009
im trying to created a worksheet that adds the number of days people are off in a year, i have come up with this formula as people can chage teams and therefore position in the worksheet,
View 4 Replies
View Related
May 4, 2009
Hey experts.
I have a data source that I am trying pull data from as a roll up and I am having a difficult time with a solution.
I am basically trying to pull data directly below the cell of a VLOOKUP. Please see the attached.
This is just a small example of the actual data. The solution for the gross scores is very simple using VLOOKUP. However, I need assistance with the net scores. Hoping this makes sense once you see the file.
Thanks,
Mike
View 8 Replies
View Related
Dec 2, 2009
I have used Vlookup in a situation where the user selects the customer short code from a dropdown list and then it will display the customer address details in the 6 rows below the search area.
There can be 3 or 4 different contacts for each customer that I would like a dropdown list where the user can select the contacts just for that customer based on the vlookup criteria from above.
I tried assigning each customer a code, then making a new list of contacts, and naming the contacts based on the customer code, but got lost in what i was doing and not fully understanding what I was doing.
View 6 Replies
View Related
Dec 17, 2009
I'm having trouble trying to figure out a formula using IF and Vlookup. Basically what I need is to lookup a value from sheet1 that should be somewhere in sheet2. Once vlookup has located this value it then needs to go a certain amount of columns accross eg 10 in sheet2 to find another value (as a normal vlookup does). Now I cant figure it out: IF the value found in sheet2 (from the lookup) matches a value in sheet1 then I need the formula to return a 1, if it does not match then I need it to return a 0. I cant quite figure out how the formula would go, with nested functions etc
in the attached on sheet1 cell b2: A vlookup looks for reference "1111" (shown in sheet1 cell A2) goes to sheet2 and finds it, then moves across the columns (sheet2 Columns E:K) until it finds the value shown in Sheet1 cell B1 ("MON"). IF it finds the match then the formula returns "1" if it does not (ie only finds other days of week or a blank cell) then the formula returns a "0".
Note The attached is excel 2007 but I need to use 2003 at work.
View 11 Replies
View Related
Jan 10, 2010
I have a spreadsheet that is updated every month (100+ Rows, 38 Columns) and what I need to do is list the top sales person by 'dollars above target' in each of our 6 product classes. The staff names are in column A and the comparison to targets for the first product is in column AA.
My best idea so far is getting the MAX of the Sales vs Budget and applying a conditional format to highlight the data equal to the figure in that cell then finding the name myself from the list in Column A, but I was hoping someone might know a way to have Excel generate this name for me? - Also, is there a formula I can use that will give me the top 3 scores for each product?
View 7 Replies
View Related
Feb 23, 2010
I have two spreadsheets with 300 entries each. One lists a bunch of data linked to the Building Code (ex. 123 Ruth) and the other spreadsheet links the data to the full building address (ex. 123 Rutherford Road). I am looking for a way find the corresponding building address to each building code, AND find a way to find the building code to each building address. The building codes are not a set amount of characters, they are roughly the first 9-10 characters of an address.
View 4 Replies
View Related
Feb 23, 2010
I just found this forum and I am sure I will visit it very often as I have to work with Excel on daily basis. Let's go back to business, I will shortly introduce my problem (file attached).
I have 2 worksheets:
1. Data
2. Question
In first worksheet I have a table imported from another software and the most important columns for me are column A "Customer #" and column E "Invoice #".
Second worksheet is created by me and what I need to do is to make excel to find on which Customer # are invoices listed in column A in this worksheet. I have tried to use vlookup function but always receive an error (cells B2:B7).
View 2 Replies
View Related
May 18, 2014
The range i need to lookup for is from column A to G and in that, the row range should be up to the row that contains "options" . Text "options" is in column B alone. Is there any way to get it.
View 3 Replies
View Related
Aug 11, 2009
I'm currently having some problems with vlookup in VBA, here's the
View 3 Replies
View Related