Thread: Formula
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Kevin B Kevin B is offline
external usenet poster
 
Posts: 1,316
Default Formula

If the return values are numeric use this function:

=IF(A1=B2,7641,7642)

Otherwise, use this function:

=IF(A1=B2,"7641","7642")

--
Kevin Backmann


"Donna" wrote:

What is the formula for:
if data in a1 is the same as data in b2 then "7641" otherwise "7642"