Use VLOOKUP Function When Column To Search Is Not Column A?
Sep 27, 2012
use the VLOOKUP function when the column I need to search is not column A?
I have a Workbook with two worksheets in it and in Sheet 1 I have 10 columns of various text and numbers. In cell A1 of sheet 2 I will fill with a certain code that appears in column E in Sheet 1. The result I would be looking for should come from Column A in Sheet 1. I thought that the following would work copied into B1 of Sheet 2 but it doesn't appear to - =VLOOKUP($A1,'Sheet 1'!E$1:$E$481,1,FALSE).
View 3 Replies
ADVERTISEMENT
May 8, 2009
I made a quick little spreadsheet that explains what I am trying to accomplish. Basically I need to search a column for a known number, when it is found, I need to look at another column on that row, and if the cell is a specific item , count it.
View 9 Replies
View Related
Sep 4, 2009
I WANT it to search all of column A for the highest number in the range (which will change daily to a new high number above the highest currently), and return the value in column 4 (column D) that corresponds to that value from column A. This is what I have, but it is not working, it is giving me the number (1) in Cell A800 (which is the lowest valued number in my range. The numbers range in value from 1 to 762 with none repeating (they are sequential). The formula I have is :
=+VLOOKUP(MAX(A76:A2000),A76:I2000,4)
View 2 Replies
View Related
Oct 7, 2008
I'm looking for a formula to search for a value in the SECOND (instead of first) column of a table array and return a value in the same row from FIRST (instead of the same or another) column in the table array. Formula would be searching for the unique production order number in the column B and return production line id from the column A.
A1 production line_id
B1 poduction_order_number
A2 L1
A3 L2
A4 L1
B2 505212
B3 504234
B4 505663
I was trying vlookup(504234;B2:A4;2;0) to make formula go search from right columns to the left but then excel is switching the search table to A2:B4 and gives #N/D!
One remark-there is no possibility to switch these 2 columns to simplify. I have to leave them as they are.
View 2 Replies
View Related
Dec 14, 2006
I want to find a content of ActiveCell only in column "C", beginning from cell C4.What must be in Look in, and Look at?How to accomplish to match whole number,ex. "1" in cell with "1",no to find "1" in "123"
This function searches in whole sheet,but i need only in C column!
Cells.Find(What:=ActiveCell, After:=[c4], LookIn:=xlValues, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate
View 9 Replies
View Related
Feb 18, 2013
I am trying to search for a phrase in a particular column but the excel search function is returning !Value as an error...
Both fields are text so nit sure what is wrong here.
I have a list of cities that i want to cross reference across a cloumn of notes on another sheet. So, I really want to search for the city (Sheet1 Cell A1) in Notes Sheet2 Cell A1) and I want to return it in Sheet1 Cell B1 Whether it exisits in the notes. I then want to copy this down my list of cities in Sheet1 Column a.
View 5 Replies
View Related
May 26, 2006
I am trying to write a function that looks in column M1 to see if it is empty. If M1 is empty then check conditions if R1 = vlookup(R1,AA:DD,4,False) and if vlookup(E1,CC:EE,3,false) is true then vlookup(E1,FF:GG,2,False). If M1 is not empty then return back M1. I am trying to make a formula for this. This is what I have so far
IF(AND(M1="",VLOOKUP(E1,[may11requests.xls]Sheet1!$I:$R,10,FALSE)=E1,VLOOKUP(R1,[may11requests.xls]Sheet1!$M:$N,2,FALSE)=R1),VLOOKUP(E1,[may11requests.xls]Sheet1!$I:$K,3,FALSE),M1)
View 3 Replies
View Related
May 5, 2009
I have two sheets. One called "Roster" and one called "final". On the final sheet i have cols for each question on the final exam. I also have a total col which sums up the pts for each question.
On the "roster" sheet. This is kinda like a summary sheet. On this sheet i use a vlookup (shown below) in the cells which are supposed to reference the cells on the "final" sheet for the total pts.
View 10 Replies
View Related
Mar 25, 2008
I want to create a user defined function to search a column of data for a part number.
If it exists I want to have a the UDf returna "fail" otherwise "pass"
Here is the code I was trying to use
Function firstpass(SN As String) As String
ws = Worksheets("Defects")
c = ""
With ws.Range("a1:a9999")
Set c = .Find(SN, LookIn:=xlValues, lookat:=xlWhole)
End With
If Not c Is Nothing Then
firstpass = "Pass"
Else
firstpass = "Fail"
End If
End Function
This function only returns a "#value" and I don't quite know how to troubleshoot it.
View 9 Replies
View Related
Sep 25, 2008
ColumnA Column B ColumnC (Yes/No)
2121 345766
23423 6456546
4234 6456456
7567 64566456
76756 654645
67567 3344534
76575 34534534
756756 45345
7657 534545
756767 4534534
756756 435345
Hello,
What I am trying to do is
Search the number written at ColumnB in ColumnA and if found write YES to column C
if not write No
View 9 Replies
View Related
Oct 13, 2009
On sheet 1 I have a list of 1000 firstnames
On sheet 2 I have a list of 1000 emails,
I need a function that states If a cell in the email column contains a string or value from the names column, it will result in a true statement so that I can separate out the emails that have these peoples first names.
View 5 Replies
View Related
Nov 26, 2008
I have a lookup table (see attached file) which holds the min & max value for a vehicle, the min & max size of the engine and the premium. I want a function that will search for the value of the vehicle (e.g. 100000 in cell H5) within the min value and max value columns as well as the engine size (e.g. 2000 in cell H6) in the min size & max size columns return the premium from the associated premium (which should be 13,200).
View 2 Replies
View Related
Dec 16, 2013
I have an array 20 Rows x 42 Columns, which contains a competition draw.
I need to search this array for a unique value and return whatever the time is in the first column on the same row as the value appears, and enter it into column C in the Womens Times sheet.
I also want to return into column D the court number from row 3.
The reason i want this automated is as teams enter / withdraw we may need to drag the games from court to court to fill gaps, so i want the Womens Times sheet to update accordingly.
I have been messing around with index and match, but cannot quite get it to return what i need.
I have attached an example ... on the sheet "Womens Times" in column A there is a list of game numbers ( #1W etc etc) indicating womens game #1 and so on. The main sheet i am using also has a seperate tab for the mens games, hence the designator of W or M on the end of the game number.
View 2 Replies
View Related
Jun 8, 2009
I am trying to get a formula that will search one column range “B” and pull data from another, “D”. Dates are down column “B” and some of those dates are repeated several times. In column “D” there is only one piece of data (a number) entered for each day. Eg, if 08/06/2009 has been entered 3 times in column “A”, there will only be data entered in 1 of the cells of column “D” and blank cells in the other 2.
Column B -- Column D
07/06/09 -- 54000
08/06/09
08/06/09 -- 62000
08/06/09
09/06/09 -- 61000
I couldn’t get the LOOKUP function to work properly, as there are duplicate dates in column “B” and I often got a result of 0 returned.
As I’ve only got 1 piece of data added in column “D” per day and any duplicate days would just have blank cells in “D”, I can actually get a SUMIF function to work, SUMIF(B3:B60,DATE(2009,6,8),D3:D60). Although it does work, it doesn’t feel right using it and I would prefer a formula that would return just the one cell, instead of the sum of a range of cells.
View 6 Replies
View Related
Mar 19, 2014
I have a file with duplicate names of test id's in col a. In col b I have single test id's and col c I have test names. I need to search col a for exact match of test id in col b and if it is there then put the name of test in col c into col d.
See attached document. Basically I need to know the name associated with the ID in column B.
View 3 Replies
View Related
Feb 5, 2010
I like to search in a columns(1) for specific words say “Don” and then write in another column (say column 6) as “one”. Then it should keep doing until the last cell in that column. It should do nothing if "Don" is not found.
How can I do it?
View 5 Replies
View Related
Sep 3, 2008
how to find text from a row in column, where is a lot of text and return row number, of located text?
View 15 Replies
View Related
Feb 8, 2010
I want to get value from reference one column and return value by corresponding row from another column. This can be done by vlookup column. But it find value from 1st column and return value from given relative column. That mean find from Left column and return value from right side given column number.
But I want find from Given column number and return value from given left column. For Further detail see the Attached file.
View 3 Replies
View Related
Apr 6, 2007
=IF(ISNUMBER(VLOOKUP($E8,Su!$D:$K,7,FALSE)),VLOOKUP($E8,Su!$D:$K,7,FALSE),)*$I8
In the first vlookup it picks up a value. I need to do the same vlookup function but it should also pick up another value in column 9 and should add value in column 7 and 9 and return it. Employee id numbers are in column E in the first page.My formula checks for the employee id in Su sheet and retrieves the value from the seventh column. I need to retrieve also from 9 th column and add them together.
View 8 Replies
View Related
Jul 29, 2006
I want to find the minimum value of column A if there is anything greater than zero in column B. I tried this formula (simplified): MINIF(B2:B6,">"&0,A2:A6) And it gives me the # NAME? error
View 6 Replies
View Related
May 18, 2007
Is there a function to put in a new column to get the abbreviated year and month of a previous column in the same row???
Ex. Row A B C D
3/14/2007 5/16/2007 2007-3 2007-5
Instead of using the YEAR MONTH funcion for each row is there a universal function that I could designate to the whole column of C and D something like C=YEAR(A(row#))???
View 3 Replies
View Related
Apr 4, 2014
I want to look up a value in the third column of a table and return the value in the first column of that row on the same table. What do I do?
View 2 Replies
View Related
Feb 24, 2014
I have a table as below (you can also refer to the attachment) and need to do the vlookup with EE Code if the left 2 characters of "EE Code" = 91 to 95.
EE Codedeptif left 2 characters of EE code= 91 to 95, vlookup dept code
921600012345678
vlookup arraryA12345623456700
39914123 test785637039914123
38214125 test915580057889056
40964197 test932660038214125
77014155 test913580039914123
345699940964197
945800077014155
953790300123432
915800012345678
045699957889056
585637039914123
View 3 Replies
View Related
Jul 17, 2014
Currently, I have a standard vlookup forumla that looks like =Vlookup(B2,Sheet2!A:G,5,false)
However, the data on sheet two is ever expanding--each month, specifically. And I need to return the most recent (so, rightmost filled) column. Right now, the column is 5, but next month it will be 6 and so on and so forth.
View 7 Replies
View Related
Nov 22, 2008
i attach the testing2.xls attachment here. from the sheet 1 "original", how to copy from 1 column, column"B" and then paste to column "A" by clicking function "alt + enter" at the same row but different row in the same cell. Output result can refer to the sheet 2 "output".
View 4 Replies
View Related
Jun 3, 2012
I need to come up with a way to search Sheet1 column-by-column and within each column search cell-by-cell. The value within each cell is a string and there are empty or blank cells between data (Ending the search after 100 rows is sufficient). As the macro iterates down each column and finds a cell that contains data, I need it to copy that data and paste it in a column on Sheet2. Basically, as the macro searches column A with space between data in Sheet1, it needs to copy that data to column A with no spaces in Sheet2. This needs to repeat for 20 columns.
View 9 Replies
View Related
Sep 11, 2012
I am basically trying to find the first non-empty cell in a range, but I want the macro to look down columns first. In other words, I want it to look down column A, then column B, and so on. Right now I believe it is searching by rows.
With Columns("A1:D15")
.Find(what:="*", after:=.Cells(1, 1), LookIn:=xlValues).Activate
End With
how to make it search through columns then rows?
View 1 Replies
View Related
Feb 20, 2009
Let's say I have a dataset with blank or X in column A, and a dollar value in column B. I want to sum the dollar amounts for column B only if there is a corresponding X in that row in column A. The way I currently do that is by creating a new column C, making a if statement to display the value of B only if there is an entry in A, and then doing operations on that new range. I figure there has to be an easier way. I don't know how to use VLOOKUP, despite trying to read the helpme a bunch of times. Is that relevant?
View 8 Replies
View Related
Mar 24, 2003
I would like to do a VLOOKUP (or similar operation) to grab information from a column based on a column name instead of column number.
For example, instead of:
=vlookup(a2,t5:z10,4,FALSE)
I would like the formula to read:
=vlookup(a2,t5:t10,"COLUMN_NAME",FALSE)
View 9 Replies
View Related
Oct 6, 2013
I have two columns of data and what I would like to do is have excel look over one column ( I5-I379) and for each cell that has say 30 in it I want it to return the value from a corresponding column (G5-G379), to form a separate column.......is this possible?
View 9 Replies
View Related