Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JFenley
 
Posts: n/a
Default Conditional Formulas in Excel

If anyone can help me with this formula, I will be very grateful.

I am manipulating a mailing list in Excel and I want the correct city to
populate a field, according to the Zip Code entered in another field. For
instance, if the Zip Code entered into A1=90272, the City in B1 should equal
"Pacific Palisades" - If the Zip Code entered into A1=90402, the CIty in B1
should equal "Santa Monica" and so on. There are going to be about 5
different Zip Code possibilities in the whole list.

I am guessing that it will be some variation of a formula like this entered
into B1:
=IF(A1=90272,"Pacific Palisades") but I don't know how to write the formula
for multiple Zip Code and City combinations.

Can anybody help??

Thanks!


  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

List, perhaps in a second sheet, your zips in column A and cities in
column B. Then use

B1: =VLOOKUP(A1,Sheet2!A:B, 2, FALSE)

In article ,
"JFenley" wrote:

If anyone can help me with this formula, I will be very grateful.

I am manipulating a mailing list in Excel and I want the correct city to
populate a field, according to the Zip Code entered in another field. For
instance, if the Zip Code entered into A1=90272, the City in B1 should equal
"Pacific Palisades" - If the Zip Code entered into A1=90402, the CIty in B1
should equal "Santa Monica" and so on. There are going to be about 5
different Zip Code possibilities in the whole list.

I am guessing that it will be some variation of a formula like this entered
into B1:
=IF(A1=90272,"Pacific Palisades") but I don't know how to write the formula
for multiple Zip Code and City combinations.

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

The number of combination probably far outweigh Excel's nested formula
capability.

Instead, build a table in say H1:In, where H contains the Zip code, and I
the City.

Then in B1, simply use

=VLOOKUP(A1,$H$1:$I$100,2,False)

the 100 would be the size of the table

--

HTH

RP
(remove nothere from the email address if mailing direct)


"JFenley" wrote in message
...
If anyone can help me with this formula, I will be very grateful.

I am manipulating a mailing list in Excel and I want the correct city to
populate a field, according to the Zip Code entered in another field. For
instance, if the Zip Code entered into A1=90272, the City in B1 should

equal
"Pacific Palisades" - If the Zip Code entered into A1=90402, the CIty in

B1
should equal "Santa Monica" and so on. There are going to be about 5
different Zip Code possibilities in the whole list.

I am guessing that it will be some variation of a formula like this

entered
into B1:
=IF(A1=90272,"Pacific Palisades") but I don't know how to write the

formula
for multiple Zip Code and City combinations.

Can anybody help??

Thanks!




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel won't calculate my formulas correctly. Shelfish Excel Worksheet Functions 2 March 18th 05 05:29 PM
Excel Error when copying formulas Joe Gieder Excel Worksheet Functions 2 March 18th 05 05:01 PM
Add-Ins for Excel 2003 - Financial Formulas does not download bankerjack Setting up and Configuration of Excel 6 March 16th 05 12:41 PM
how do I apply more than 3 conditional formats in excel chetwyndthomas Excel Discussion (Misc queries) 1 January 30th 05 04:24 PM
excel 2002 - copying formulas to another worksheet Greg Excel Discussion (Misc queries) 2 January 28th 05 10:23 PM


All times are GMT +1. The time now is 10:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"