cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Azim
Level II

How to select row with specific criteria from left or right of digit string?

From example in sample.xlsx. I have a list of IDs. In my case, I have tens of thousands of those. I need to remove rows where number starts from "204". 

I tried using:

Data Table ("Sample") << Select Where ( Contains(:Sample ID, "240")) << Delete Rows;

 

But this will also select and delete even when "240" is in the middle of digit string. What do I do if I want to only remove when my Sample ID starts from 240?

 

 

1 REPLY 1
jthi
Super User

Re: How to select row with specific criteria from left or right of digit string?

Use Starts With() (or Ends With() if lookup from the end) instead of Contains()

-Jarmo

Recommended Articles