![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 15
|
I am a complete newbie to Excel, so I'm guessing this is a no brainer for most of you.
I have a column that has a series of state abbreviations. I want to set up a formula in another column that looks at the state abbreviations and basically says "IF E:E = AL, CT, DE, KY, etc. THEN H:H = whatever" This seems like such a simple task, but I can't figure it out! Help! Thanks Paul |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=IF(OR(E1={"AL","CT","DE","KY"}),"Whatever","") |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 15
|
THANK YOU!!!
Of course, I forgot 1/2 of my question. the other half would be - if it does not = "Whatever" then it = "Something Else" Does that make sense? So if it is AL, CT, DE, KY, etc. it = "Whatever" but if it does not = "Whatever" it = "Something Else".... Thanks again for the help on this beginner problem! |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
Maybe a VLOOKUP?
Column A - state abbreviations Column B - name of states In C1 =VLOOKUP(C2,A1:B50,2) Enter HI in C2 and C1 returns Hawaii! Column A is sorted |
|
|
|
|
|
#5 |
|
New Member
Join Date: Apr 2002
Posts: 15
|
Already figured it out:
=IF(OR(E1={"AL","CT","DE","KY"}),"Whatever","Something Else") Thanks!!!! |
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
Last "" is "Something else"; thusly: =IF(OR(E1={"AL","CT","DE","KY"}),"Whatever","Something else") Examine also what Brian is suggesting. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|