Re: Is this possible? If so what function do I use?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Great list available here:
http://www.usps.com/ncsc/lookups/abbr_state.txt

--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"T. Valko" <biffinpitt@xxxxxxxxxxx> wrote in message
news:evY37L78HHA.4612@xxxxxxxxxxxxxxxxxxxxxxx
Create a 1 column table of all 50 states. Assume this table is in the
range D1:D50.

Then, in column B:

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

Copy down as needed.

--
Biff
Microsoft Excel MVP


"AdirondackSam" <AdirondackSam@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F9F73262-525A-41E5-86C2-E056A35979E4@xxxxxxxxxxxxxxxx
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




.



Relevant Pages

  • Re: vlookup with more than one reference with the same name
    ... Microsoft Excel MVP ... populate the data/template. ... to find the second reference and the third to find the third can anyone ... Here is the vlookup formula I use and works great...cant even tell you ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Replace SUMIF with SUMPRODUCT
    ... Bernard V Liengme ... Microsoft Excel MVP ... remove caps from email ... *distaste* for the unary form of Sumproduct. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Lookup for Most Recent Value of a category
    ... Microsoft Excel MVP ... Also is there a way to populate a cell with the value of a category ... I get the 2nd most occurance to the right? ...
    (microsoft.public.excel)
  • Re: Barcode suffix ean128
    ... Bernard V Liengme ... Microsoft Excel MVP ... remove caps from email ...
    (microsoft.public.excel.misc)
  • Re: Formula Problem for Newbie - Please!
    ... Bernard V Liengme ... Microsoft Excel MVP ... remove caps from email ...
    (microsoft.public.excel.newusers)