View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default Is this possible? If so what function do I use?

Put a list of valid states somewhere, in this case H1 - H50 then try this
formula:-


=IF(COUNTIF($H$1:$H$50,A1)0,"United States","")

drag down as required

Mike

This looks

"AdirondackSam" wrote:

My data is:
A B C
TX United States
MA
NY United States
NJ
NH United States
London United Kingdom
Paris France


Column A has states that are almost always populated, but B is often left
blank. I wanted to create some type of Array or Lookup that has all the
states in it, and them do a comparison; If what is in Column A is a valid
state, then populate B with "United States, otherwise leave it alone.

I can't use "IF" because there are too many arguments, and can't figure out
how to make it work with something like VLOOKUP.

Advice apreciated.
~S