is below correct if i need a range from 50000 to 5...
# ask-stanley-ai
a
is below correct if i need a range from 50000 to 50230. also individual 50250 and 51600. Starts with "500" or Starts with "501" or Starts with "5020" or Starts with "5021" or Starts with "5022" or Is "50230" or Is "50250" or Is "51600" or
c
AI generated answer (using internal Slack threads):
Based on the conversations provided, it seems like you are trying to filter data based on the starting digits or specific values of a numeric field. In NetSuite, you can use the
SUBSTR
function in a formula to achieve this. Here is a sample formula that you can modify to suit your needs:
Copy code
sql
CASE 
    WHEN SUBSTR({internalid}, 1, 3) IN ('500', '501') 
    OR SUBSTR({internalid}, 1, 4) IN ('5020', '5021', '5022') 
    OR {internalid} IN ('50230', '50250', '51600') 
    THEN 'Match' 
    ELSE 'No Match' 
END
This formula checks if the
internalid
starts with '500', '501', '5020', '5021', '5022' or is exactly '50230', '50250', '51600'. If it matches any of these conditions, it returns 'Match', otherwise it returns 'No Match'. Please replace
{internalid}
with your actual field name. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.782206297
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.775900126
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.774020553
Please provide your feedback on this answer.