Lookup Up Entire Table Not Just Column In Table Like Vlookup Does

Jun 5, 2014

I'm trying to see if you can look up multi columns for a number and when it finds it return back to one column and return that data?

I am trying to sort out territories for a state I work on; the territories are divided up by zip codes.

i.e.
A B C D

territory 1 12345 54321 11222
territory 2 22222 33333
territory 3 44444 55555

and what I want is to say put a formula in cell B3 on Sheet 1 pointing to cell C3 that has zip code 33333. I want it to then take that and look in Sheet 2 and search A1:D3 and when it finds 33333, return "territory 2" back to cell B3 on Sheet 1.

View 3 Replies


ADVERTISEMENT

Vlookup Where The Lookup Value Isn't In The First Column Of A Range/table

Jan 8, 2009

I would like to do a vlookup where the lookup value isn't in the first column of a range/table. Would I use index/match? For example, I have fields for vendor, part # and location in that order. I'd like to pull up location with a formula based on part #.

View 4 Replies View Related

Lookup Table In VBA Rather Than VLookup Table?

Nov 23, 2011

I get a file every day that contains online orders for a client. They have made the state and country fields on the order form free text, so sometimes the State field has CA, sometimes California, sometimes even Cal or Cali. Oregon may be represented as OR, Oregon, or Ore (and one time even Orygon.)

The country field may have US, USA, United States and sometimes United States of America.

Well, they need this data imported to their system with the states fully spelled out: Oregon, California. And the country spelled out as well: United States, Canada.

Right now I have a lookup tables worksheet that I just have a macro run a vlookup on. But I'd like to know if there is a way I could just put it all in the code, without the external tables.

i.e. some code that, in English, would basically say, "If the value of any cell in column K is among these values, replace it with those values, otherwise just leave it as it is". Could I do that while containing the two sets of values right in the code rather than on a worksheet?

I really just want to replace the standard abbreviated state/country codes with the full text, and if the value does contain Cali or Ore, let them manually make the change. Hopefully that will finally nudge them to just make the online order form utilize a drop-down list of states and countries, rather than free text.

View 1 Replies View Related

Move Lookup Table To Same Sheet As VLOOKUP

Jan 18, 2010

One other common problem is storing the Lookup Function on another sheet to the Table. On The Uploaded Workbook. Is it possible to change the Vlookup to the same worksheet as the lookup list to remove the disadvantage of having them on separate worksheets. If I have misunderstood the statement in the quote above.

View 2 Replies View Related

Adding Formula To Entire Column In Table?

Mar 17, 2014

I am trying to add a formula to a defined column in a a table. I get a method range of object error. I previously used the .value and a for loop to enter the forumlas into each cell but I would like to use a different approach. It's basically looking at the compelted column to see if the check box is checked. Here's my code.

Set ntidRange = Application.Range(tn & "[NTID]")
Set dtRange = Application.Range(tn & "[Date]")
Range(ntidRange).formula = "=IF([@COMPLETED]=TRUE,Login!K2,"""")"
Range(dtRange).formula = "=IF([@COMPLETED]=TRUE,Now(),"""")"
'For Each c In ntidRange.Cells
'c.formula = "=IF([@COMPLETED]=TRUE,Login!K2,"""")"
'c.Offset(0, 1).formula = "=IF([@COMPLETED]=TRUE,Now(),"""")"
'Next

View 1 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

Lookup Table (adjust Which Column The Lookup Function Refers To)

Jun 12, 2009

I am trying to perform a lookup (vlookup) function in a cell in excel and wish to have the range as a variable, so that I can adjust which column the lookup function refers to.

View 4 Replies View Related

Lookup When Value Not In 1st Column Of Table

Oct 9, 2006

I use a vlookup function on some database to lookup some data. However the data that I wanted to lookup is actually on the third row. In my attached sample, I have some data in "source data" worksheet. Another worksheet "Ratio" is where I keep the lookup value. In this sample, I actually wanted to lookup the ratio of 0.7 for Geogetown. And 0.66 for Queenstown. Could the vlookup formula be modified or need some vba code to achieve this?

View 5 Replies View Related

Data Table Is Pasted In For VLookUp - Not Have To Redo Table Name Each Time

Jun 2, 2013

I created a lookup table that works quite well. It even has if statements in the LookUp Formula. However, I have to update the table it pulls the information from each day. I wind up recreating the range each time because the table always has more rows each time. Is there a way I could just paste the table in each day and not have to change the range? The columns never change.

View 9 Replies View Related

Vlookup - Value Not In First Column Of Table

Apr 4, 2007

Is it possible to use the VLOOKUP (or similar function) when the value it is looking up is not the first column.

A B C
Kevin 8.00 140000003
Paul 8.00 140000001

I want to lookup the value in column C and return the value in column A. Kind of the reverse to this =VLOOKUP(E1,A1:C2,1,false)

View 2 Replies View Related

Table Lookup (search On A 2 Dimensional Table)

Aug 4, 2009

I am attempting to do a search on a 2 dimensional table, based on Product Code/Month. Is there a function, addin or a macro that will allow me to do this? All I can come up with is a messy combination of VLOOKUP/HLOOKUP/COLUMN.

View 2 Replies View Related

Lookup Column Header Value Based On Matching Table Value

May 16, 2013

I'd like a formula that'll return the column header by matching a lookup value with a table in the second sheet.

eg: sheet 1

Name
Cell
Region

John
111-2222

[Code] .......

The formula should match the name in A2, John, with value from the table in sheet 2 and return the correct region, this case North.

View 1 Replies View Related

VLookup Table To Another Table That Has Multiple Values

Jun 24, 2014

Vlookup a table, to another table that has multiple values.

E.g.

Table
GPASP002

Look up table - need to return second coloum but not the first value, all the values?
GPASP002 KZASP100
GPASP002 KZASP500
GPASP002 KZASP600
GPASP002 KZASP501
GPASP002 KZASP502
GPASP002 KZASP601

View 2 Replies View Related

Vlookup: Search For Value In SECOND Column Of Table Array And Return Value From FIRST

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

VLookup Value In Third Column Of Table To Return Value In First Column

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

MACRO Lookup Columns Of Current Sheet And Matches It With Table In Tab Then Returns Hourly Pay In Column

Mar 5, 2014

I am having trouble with my macro. I have attached excel sheet for reference.

Basically, I want a Macro that Looks up columns B & C of current sheet and matches it with table in the charges tab, and then returns hourly pay in column D.

I have created the macro but it's giving me Run time 1004 error.

Also, my formula is incorrect. Maybe that's why my macro isn't working?

2WayLookup_Macro.xlsm‎

View 4 Replies View Related

Column Shows In Pivot Table But Doesn't In Source Table?

Oct 5, 2011

There is pivot table for some reason the last column (YEAccts), which sums all the other columns values is exluding the 1st column for some reason. This "YEAccts" shows up fine in the pivot table "field list". And I followed the source for this and it's a table in a different tab that pulls data from an access query connection.

The name of the column that is summing up the rest of the columns is "YEAccts", but for the life of me I can't seem to find where this column is in the source table tab or even in the access query where the data is being pulled from.

How to find this "YEAccts" column? Also, why would it exclude not summing up the data in the first column?

View 2 Replies View Related

Transfer Data Table 1 To Table 2 Change Rows To Column?

Mar 13, 2013

Table 1
January-12
February-12
March-12

Table 2

Sr. No
Name
Dep
Lates
CL / SL
AL
Lates
CL / SL
AL
Lates
CL / SL
AL

[Code].....

View 1 Replies View Related

Alternate Colors In Table With Table Style When String Value In Column A Changes

Feb 25, 2014

When I add a table in Excel, I can choose from Table Styles, different styles that set one color for even rows and another color for odd rows.

Is there a way to say to this Table Style that assign one color for rows that have the same string in column A in consecutive rows and another color when the string in colum A changes?

I mean,
If A1= XYZ, A2=XYZ assign blue to row 1 and 2.
If A3:A9=FTG assign green to rows 3 to 9.
If A10:A13=LLKF assign blue again to rows 10 to 13.
If A14:A22=WUR882 assign green again to rows 14 to 22.

and so on.

View 2 Replies View Related

Reconstruct Data Table So That Column Headers Become Values In Table

Jul 15, 2014

I have a large table that I want to reconstruct. For simplicity sake, let's just says it's 3 rows (excluding headers) by 3 columns.

Item Description
1/1/2014
1/2/2014
1/3/2014

Cheese Burgers
2
3
4

Hot Dogs
5
12
6

Beverages
2
5
3

I want to reconstruct it so that the column headers become values in the table. The table headers are dates, in this case, if that gives clearer picture. So the new table would have 9 rows, (3 rows of data, excluding the header times four columns).

Item Description
Date
Quantity

Cheese Burgers
1/1/2014
2

Hot Dogs
1/1/2014
5

[Code] ....

The above example is sorted by date but I would be indifferent if it's sorted by the Item Description.

Is there an easy way to do this? Pivot possibly? Again, my data table is large: 36 rows x 181 columns. Using the copy/paste/transpose feature is pretty impractical.

View 3 Replies View Related

Create Database Table From Multi-Column Summary Table

Nov 5, 2008

I want to accomplish something like this but slightly different:

[url]

I have the same issue but a bit more complex. In my case I have an additional amount of columns (let's say dimensions). So for the example given (sales per month) I would add two columns for 4 different regions and 5 machine types (just examples).

The output (that would serve as pivot tabel input) would then have to be a 4 x 5 x 12 x 4 = 960 row database table.

I have tried to accomplish it by customizing the given code but that provedto be beyond my powers ;o)

and some 3rd party software [url]and [url] but non of them is doing what I'm looking for.

The code I'm looking for ideally would count the number of columns and unique records per column and construct the database table from that. So I am looking for flexibility in the number of dimensions also...

View 6 Replies View Related

Copy Table Column To Another Table Column If Cells Are Identical

May 2, 2013

I have two Tables, Table1 and Table2, in a single Excel spreadsheet. Table1 is our master log, and Table2 contains only Provider Names, Contact Names, Phone Numbers, and Email Addresses. I need to compare column K from Table1 with column AT from Table2. Whenever Excel finds a perfect match, I need Excel to copy AW:AY to AB:AD. For each value in column AT, there will be several identical matches in column K.

I have tried to implement vlookup() and index(match()), but cannot figure either one of them.

Table1 is almost 1500 rows long, while Table2 is not quite 80.

View 3 Replies View Related

Look At Column In Table Remove Duplicates And Sort To Another Table

Mar 19, 2014

I have a list of parts in a table. I am manually copy/pasting this list to another sheet in my workbook and then using DATA→Remove Duplicates to get a shortened list. Is there a way to automate this process?

In the attached workbook I want the yellow cells to auto-fill for me.

I get a lot of lists in the format on the left hand side so I want excel to automatically format them for me so that I can use the output on the right.

List Sorting Help.xlsx‎

View 1 Replies View Related

Fill Table By Match Row & Column Headings Of Another Table

Aug 29, 2007

I currently have a table with a range of headings (row & column), and the necessary data for it. On a new worksheet, I have a table with only a few of the headings, and I was wondering if there was a macro that would automaticlly match the headings of the new sheet with the other table, and fill in the ncessary dat, as on the other sheet.

View 3 Replies View Related

VBA Select Entire Table Row Below ActiveCell

Jul 7, 2014

I have code to Add a row to my Table ...

[Code] .....

Now, how do I select the entire Table row below ActiveCell?

View 3 Replies View Related

Delete Entire Row From Excel Table When Cell Not Zero?

Dec 27, 2012

How to delete the entire row if the cell value of the "D" column is greater then zero (not containing "0").

View 8 Replies View Related

Converting/multiplying Entire Data Table

Jun 4, 2006

I have a spreadsheet of measurements which i need to convert. In short, all of the numbers must be multiplied by 2.54. I can follow how to do 1 number at a time, but the sheer number of calculations makes this highly inefficient. I think my problem lies in settng up the formula properly. I am working with an iBookG4 with an excel program 11.2.3.

View 3 Replies View Related

Conditionally Format Entire Table If Values Changed?

Feb 22, 2012

I have two data tables (12 columns each, 60 rows each) in the same worksheet. Ideally, I'd like to conditionally format the 1st table to show if any values changed from the 2nd table.

I see that I can conditionally format each cell to compare to its respective cell in the 2nd table, but would rather not do this 720 times.

View 2 Replies View Related

VLOOKUP With INDIRECT (become Dynamic As The Table Array Part Of The Vlookup Will Change)

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

Lookup Function To Lookup For Data In Another Table

Jul 29, 2008

I am trying to use lookup function to lookup for data in another table (we call it table A). Unfortunately, whenever the code is not in the table A, Excel will return the data from the previous row.... is there any possible way to prevent this... in another word, if the code does not exist in the table A, I want Excel to return 0 or some other figures.

View 9 Replies View Related







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