I'm not nearly smart enough to understand anything on
McRitchie's URL and the "Help" on the "Help" didn't help
me any either. I need someone to tell me How to make
Column "F" put in Zip code 37186, and Column E put in TN
when I enter Bethpage in Column D and then repeat it if I
enter "Bethpage" in other lower rows
As you describe it, IT CAN'T BE DONE for the FIRST instance in which you enter
Bethpage as city. *YOU* or some other lucky human would need to enter TN as
state and 37186 as zip code the first time. The *ONLY* way around this is if you
*ALREADY* had a table of city, state and zip code somewhere else which Excel
could use to fill in the other columns. On its own, Excel HAS ABSOLUTELY NO IDEA
which cities are in which states and what their zip codes are. THERE'S NO WAY
AROUND THIS. Bitch, whine & moan all you want, no one's going to give you a
different answer.
However, for subsequent instances you could use formulas that look at previous
entries in the table. So, if the first entries were in D2 (city), E2 (state) and
F2 (zip code), you could use formulas in column E and F to fill in state and zip
code when the corresponding city is entered if it already appears above.
E3:
=IF(AND(COUNT($D3),COUNTIF($D$2:$D2,$D3)),VLOOKUP($D3,$D$2:$F2,2,0),"")
F3:
=IF(AND(COUNT($D3),COUNTIF($D$2:$D2,$D3)),VLOOKUP($D3,$D$2:$F2,3,0),"")
Select E3:F3 and fill them down as far as you think you need to. Then after you
enter Bethpage in D2, TN in E2 and 37186 in F2, when you enter Bethpage in
column D in subsequent rows, columns E and F will display TN and 37186,
respectively.
Caveats: If you have multiple zip codes for a given city, only the topmost one
in column F will display. Also, if you have the same city name in multiple
states, e.g., Springfield, these formulas will pull the state for the topmost
entry.