Vlook Up And Zipcodes

Mar 9, 2009

I'm creating a look up function for the staff where you enter in the zip code, and it returns a series of answers (the state the zip code is attached to, the shipping code to use for regular shipping, next day air, and IF it is available for that zip code, the codes to use for Saturday shipping).

My problem is the fact that I'm looking up zipcodes. I have the cells, both the one where you enter in the zipcode to look up AND the entire column of the 29,000+ zipcodes formatted as "zipcode". However the cell where you enter in the zipcode.. it shows the "0" in the cell, but Excel thinks it's four numbers.. it's not recognizing the "0" in the function line. This means Vlookup is trying to find a 4 digit number, and not the 5 digit one I am asking it to, thus I get #N/A as a result for any zip code starting with "0". Every zipcode that starts with 1 or higher looks up just fine.

I have it set as FALSE so it will return the #N/A when you enter in a nonshippable zipcode, or one that doesn't exist.

If I change to TEXT, then it will not look up anything past "0" in the list, so all answers higher that 070xx (new jersey) come back as #N/A

I'd really like to have just 1 look up, not two, one for Zipcodes starting in "0" and one for zipcodes starting with "1-9". Does anyone know what I can do here? I've tried combinations, but am I just missing something? I'd rather not go back and just drop the 0 in the lookup column of the zipcodes to make this work.. I spent hours reformatting this whole column to show right int he first place.

View 6 Replies


ADVERTISEMENT

Macro To Fix Zipcodes...

Mar 31, 2009

I have a spreadsheet and I have to fix zip codes everyday for the map to read them
Example if zip code is 66606-5648 map will read the zip code, but if its 66606 it will not read it. I need to macro that It will fix the zip code form 66606 to 66606-5648 the zip code doesn’t have to have the correct last four digits just any last four digit I attach a sample of the file.

View 3 Replies View Related

Convert A List Of Downloaded Zipcodes That Preceed With Zeroes Into 5 Digits

Jun 7, 2006

How do I convert a list of downloaded zipcodes that preceed with zeroes into 5 digits?

i.e.

501 into 00501

and

1601 into 01601

View 9 Replies View Related

VLook Up From Across Several Worksheet

Nov 30, 2009

I am using a Vlookup to pull through information from a worksheet, but I am wanting to vlookup in column a on 12 different worksheets to then pull back corresponding information.

Example

12 worksheets - January through to December.

On each worksheet the first colum is a unique reference number 00001, 00002, etc depending on when we have ordered the goods and each column after that has amount order etc.

In a completely seperate workbook I want to input the unique reference and it to bring back certain information. I have used Vlook up for this, but this only appears to work when searching one worksheet. Is there anyway I can get it to search the whole workbook and bring back the information?

View 11 Replies View Related

Combining A Vlook Up With And If Then Statement

May 2, 2006

I have a workbook with 2 tabs

The 1st tab has the following info

A B C
Level Acct Dollars
1 3AAAAA1,631,276.63
2 2BBBBB8,879,065.02
3 1BBBBB86.57
4 3 BBBBB234,986.25

The second tab has the following info:

A B C D
Acct Level 1 Level 2 Level 3
1 BBBBB
2 AAAAA
3 CCCCC

I want to combine a vlook up and an if statement to populate the above tab
to look like:

A B C D
Acct Level 1 Level 2 Level 3
1 BBBBB 86.57 8,879,065.02 234,986.25
2 AAAAA 1,631,276.63
3 CCCCC

View 14 Replies View Related

Merge Text Using IF Or VLOOK?

Oct 24, 2003

I have a database containing dates and activities (text) on the speciified dates.

In some cases a date might have more then one activity therefore I need XL to (on a separate sheet?) merge the text.

E.g:
Sheet1
A B
2004-01-03Lunch with Marie
2004-01-03Reply from MrExcel?
2004-01-04Draft

Wanted 'end-result':
Sheet2
A B
2004-01-03Lunch with Marie; Reply from MrExcel?
2004-01-04Draft

View 9 Replies View Related

Vlook Up Across Multiple Sheets

Nov 13, 2008

I have a query and not sure if it can be done.

I did have alook across the search forum and web generally and didnt come up with too much luck only found the following [url]

What i am trying to achieve is the following

I have a list of names which i need to do a Vlookup against

the first part works fine

=VLOOKUP(C2,'[ALL_CFA Sales-IM User Profiles edited 2008_11_09.xls]Sales'!$G$2:$H$516,2,0)

Where i come stuck is that some names will be on another worksheet on the same workbook.

I.e i have done a vlookup against sales profile on the first worksheet, but some names shall be on the next worksheet as their "Job Profiles" will be different

Is there a way to extend the vlookup across multiple worksheets in the same workbook,

No two names will be duplicated across the worksheets (unless by pure chance i.e if there happens to be two Steve Smiths this will be two different people and not one indivdual)

View 9 Replies View Related

VLook Up Match Multiple Criteria

Mar 8, 2009

On sheet one, I am trying to match the employees job code for that particular week in cell K2. The vlookup/match is trying to find the particular job code for that employee number for that particular week ending.

Cell A2 (sheet 1, shows their employee #),
Cell J2 (sheet 1) has that particular week ending.
Cell K2 has this formula in sheet 1:
=VLOOKUP(A2,Sheet2!A:C,3,MATCH(J2,Sheet2!$D$1:$D$5,0))

Sheet 2
Column A = employee numbers
Column C = job codes (which I need to appear in cell K2 for sheet 1)
Column D = has the week endings to match against column J in sheet 1

View 2 Replies View Related

How To Use VLook Up Function To Look At A Range Of Numbers

Oct 26, 2012

is it possible to use the VLook up function to look at a range of numbers - I.e.

30-40, answer = 15%, I have tried 30-40 also 30,40 but none seem to work?cualte?

View 4 Replies View Related

Vlookup & Concatenate (Vlook A Value From A Cell In Another Workbook)

Mar 20, 2009

I want to Vlook a value from a cell in another workbook then before I get the formula result I would like it to concatenate the result with another cell.
I have attached an example

AlEXAMPLE.xls

View 2 Replies View Related

Vlook-up Exact Number Match In Sheet

Dec 19, 2008

Sheet 1
23456
23479
23409
23512

Sheet 2
23455
23456
23457
23478
23479
23480
23408
23409
23410
23511
23512
23513

In Sheet 1 there's a Column B with data I'd like to pull using a VLOOK-UP formula. However, I need it too look-up not only the exact number match in Sheet 2, but also the cell directly above it and the cell directly below it. In the sample above if I placed the VLOOK-UP formula in Sheet 2 (at for instance the numbers 23455, 23456, 23457), I'd need it to pull data from Sheet 1, Column B (for the 23456).

View 9 Replies View Related

Can Vlook Function Property, When Look_up Value In 2 Cells

Aug 28, 2009

I am having problem with vlookup.

Cell 1 contains 134 cell 2 contains account number.

can look up value be in 2 columns? It has to be the exact match for both cell in order to generate the data. Thanks.

View 9 Replies View Related

Vlook Up But The Reference Cell Indicates Formula Error

Dec 30, 2009

I am trying to do Vlook up but the reference cell indicates formula error even if this has values.

I have to do F2 in every cell to make the Vlookup work. Is there any way to remove this?

View 9 Replies View Related

VLook Up Specific Text Within Text And Output Match From Table

Dec 3, 2009

Table 1:
I like to go to Berlin.
You like to move to Amsterdam.
They want to see Chicago.
When will the reach San Francisco.

Table 2:
Amsterdam
Chicago
San Francisco
Berlin

What I want to do:
I want my function to see if the text in Table 1 contains a value in Table 2, and if yes, output that value.

Desired Result:

Row A1:
I like to go to Berlin.
Row A2:
Berlin
Row B1:
You like to move to Amsterdam.
Row B2:
Amsterdam

View 9 Replies View Related

Vlook Up: Combobox Shows The The First Column (only 1 Of Each) And The Second ComboBox Shows Me The Secondary List

Jun 9, 2006

I have a userform where I have 2 comboboxes. The first combobox shows the the first column (only 1 of each) and the second comboBox shows me the secondary list that correlates to the valuse in the first from column B. Now I have a text box that I am trying to get the value from column C depending on what I have in the first 2 comboboxes. What is the easiest way to do it? This is all in VB since it is a UserForm, and using Vlookup seems to be too many lines if I go that route. Is there a way to use Index and Match in VB where it would be more efficient? I attached just a sample of how the data would be layed out in the Excel sheet.

View 4 Replies View Related







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