View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default using text in an if function

=(A1="shop")*85+(A1="site")*95

You are getting an error probably because you need the double quotes.
--
Gary''s Student


"Brent" wrote:

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?