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. ET 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

Group Age Column into Categories

Hello.. I'm new to JMP and I have a basic question.

I would like to create a new column that groups customer's ages into age groups:

Age range 0 <34.9 should be labeled <35

Age range 35.0-44.9 should be labled 35-44

Age range 45.0-53.9 shoulf be 45-54

How do I write the formula and reflect the labels?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
KarenC
Super User (Alumni)

Re: Group Age Column into Categories

If(:AGE < 35, "35", 35 <= :AGE < 45, "35 - 44", "45 -54")

You should be able to cut and paste this into a column formula.  The :AGE is the name of the column for age so you may need to update that based on your table.  Once you have the formula in place you can click on the "AGE" in the formula and then select the correct column from the column list in the formula editor. 

View solution in original post

1 REPLY 1
KarenC
Super User (Alumni)

Re: Group Age Column into Categories

If(:AGE < 35, "35", 35 <= :AGE < 45, "35 - 44", "45 -54")

You should be able to cut and paste this into a column formula.  The :AGE is the name of the column for age so you may need to update that based on your table.  Once you have the formula in place you can click on the "AGE" in the formula and then select the correct column from the column list in the formula editor. 

Recommended Articles