InStr issue

I'm trying to use

if instr({Sheet1_.Restrict},{CI_Item.UDF_BRAND}) > 0
then
"Alert"

Sheet1_.Restrict is excel cell with this exactly   ["Smith's Sharpeners","Arkansas Sharpeners"]

{CI_Item.UDF_BRAND} is over 850 brands

The problem is its returning Smiths Sharpeners & Arkansas Sharpeners and Sharpeners Brands

I need it to only return Smiths Sharpeners & Arkansas Sharpeners and NOT Sharpeners

Sheet1_Restrict is an excel sheet with all our customers and the Brands they can't buy. I have a quantity report and I want to customize it for our top customers and exclude the brands they cant purchase.

So Im trying to use a excel document with a partial formula and have Crystal use it in its formula. It works part of the time.

I've also tried the Select Expert    not ({CI_Item.UDF_BRAND} like {Sheet1_.Restrict}) but that didn't work either.

Parents
  • 0

    For the brands, are you trying to select based on an array of brands?

  • 0 in reply to Sage100User

    We have over 850 Brands and over 35,000 items. Certain customers cant buy some Brands because that brand doesn't want them sold on 3rd party sites like Amazon or that customer got banned from that brand for selling below MAP pricing. So I want to exclude those brands from their Quantity report. Thats why I have a excel sheet with customer numbers and the brands they cant purchase. I thought I would be slick and put a partial formula in a excel cell ["Smith's Sharpeners","Arkansas Sharpeners"] and refer that cell/field  {Sheet1_.Restrict} in the crystal formula.

Reply
  • 0 in reply to Sage100User

    We have over 850 Brands and over 35,000 items. Certain customers cant buy some Brands because that brand doesn't want them sold on 3rd party sites like Amazon or that customer got banned from that brand for selling below MAP pricing. So I want to exclude those brands from their Quantity report. Thats why I have a excel sheet with customer numbers and the brands they cant purchase. I thought I would be slick and put a partial formula in a excel cell ["Smith's Sharpeners","Arkansas Sharpeners"] and refer that cell/field  {Sheet1_.Restrict} in the crystal formula.

Children