using text in an if function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to make a formula that will take the value in one cell and place
a value in another cell. ex a1=shop then a2 would = 85 but if a1 = on site
then a2 would = 95. When I try this I get a #name? error.
Can any one help this beginner?
 
Brent,

if you're just trying to type this formula into a cell, then the text values
have to be inside inverted commas, otherwise Excel assumes you're referring
to a named range.

=IF(A1="shop",85,0)

Cheers, Pete.
 
=(A1="shop")*85+(A1="site")*95

You are getting an error probably because you need the double quotes.
 

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

Back
Top