View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Don Guillett Don Guillett is offline
external usenet poster
 
Posts: 10,124
Default Formula help for a newbie, please

Better if col a and col b can NOT have anything but w or x

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Matthew Pfluger" wrote in
message ...
Put this in cell C1 and copy it down:
=IF(LEFT(A1,1)=LEFT(B1,1),100,999)

HTH,
Matthew Pfluger

"SedonaBob" wrote:

Columns A and B each can have two-character text beginning with either
the
letter "W" or the letter "X". If the text in both columns begin with the
same letter, Column C would be 100, but if the text in the columns begin
with
different letters, Column C would be 999.