Thread: If function?
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default If function?

Try

=IF(COUNTIF(A1,"*stock*"),"stock","no stock")


"Paul" wrote in message
...
Newbie question...I'm looking for the formula that will report
the value that
I want in column B. I guess wildcards must nbe used. I tried
=IF (A1 =
"*Catalog*", "Catalog", IF(A1 = "*Stock*", "Stock"))

A B
Stock - Rock Stock
Catalog - Indie Catalog
Catalog - Rock Catalog
Stock - Indie Stock

Thanks for your help.

Paul