turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Group Age Column into Categories

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Apr 6, 2015 4:46 AM
(2152 views)

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Apr 6, 2015 6:32 AM
(3141 views)

Solution

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.

1 REPLY

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Apr 6, 2015 6:32 AM
(3142 views)

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.