View Single Post
  #4   Report Post  
Gary''s Student
 
Posts: n/a
Default

=(D4=23)*45+(D4=24)*48+(D4=26)*97

No IFs required.
--
Gary's Student


"AccessNewbie" wrote:

I want to do something like this:
if cell D4 is "23" then "45"
or
if cell D4 is "24" then "48"
or
if cell D4 is "26" then "97"
etc.
So the formula in one cell is looking for the value in another cell and
returning the appropriate response.

Thanks!