Formula quandary?

  • Thread starter Thread starter shallowz
  • Start date Start date
S

shallowz

Still a noob when it comes to excel formulas

I was gratefully given a formula
=IF(A1="New York",25,"")

When I wanted to make cell A7 come up the number 25 if cell A1 is New York

Now I want to know if can place multiples in that same cell for two other
locations for example:

Maine will equal the number 48 and
Alaska will equal the number 13

I tried a couple of things but didn’t work
How do I go about doing that please?
 
Try

=IF(A1="New York",25,IF(A1="Maine",48,IF(A1="Alaska",13,"")))

In case you have more check out the help on VLOOKUP()

If this post helps click Yes
 
WOOHOO
Thank you so much Jacob.
(HIGH FIVE!)

Jacob Skaria said:
Try

=IF(A1="New York",25,IF(A1="Maine",48,IF(A1="Alaska",13,"")))

In case you have more check out the help on VLOOKUP()

If this post helps click Yes
 
Go back to your original posting and read replies.

Best to always stay with the thread you started first.



Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Formula help please 9
Excel Need Countifs Formula Help 0
formula needed please 2
EXCEL FORMULA 2
counta formula 4
Excel formula 4
formula for multiple variables. 2
Help with formula 4

Back
Top