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
Danial1
Level II

How do I select rows within a specific time range and create a new column using the selected rows?

For example, I only wanted to select rows when the time is between 7pm-10pm. How do I create a column with the selected rows within the specified time range?

Danial1_0-1605693947009.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
ian_jmp
Level X

Re: How do I select rows within a specific time range and create a new column using the selected rows?

Using the 'Hour()' function (see 'Help > Scripting Index'), you could add a new column with a formula such as:

Hour( :test_start_date ) >= 19 & Hour( :test_start_date ) <= 22

View solution in original post

2 REPLIES 2
ian_jmp
Level X

Re: How do I select rows within a specific time range and create a new column using the selected rows?

Using the 'Hour()' function (see 'Help > Scripting Index'), you could add a new column with a formula such as:

Hour( :test_start_date ) >= 19 & Hour( :test_start_date ) <= 22
Danial1
Level II

Re: How do I select rows within a specific time range and create a new column using the selected rows?

Thanks a lot for the prompt response. It helped a tonne!

Recommended Articles