- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
How do I calculate a ratio with negative numbers
Without using scripting, I want to create a formula that computes a ratio between two columns of CAGR percentages, taking into account that some of the percentages are negative (meaning simple division will not suffice). A formula that might accomplish this is:
If the above formula would work, how would I incorporate the comma in the JMP formula box? Or, is there a better way to compute the ratio?
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: How do I calculate a ratio with negative numbers
Created:
Aug 16, 2017 03:42 PM
| Last Modified: Aug 16, 2017 12:45 PM
(19451 views)
| Posted in reply to message from rj69 08-16-2017
abs(x-y)/max(abs(x),abs(y))
The functions are available at:
Help==>Scripting Index==>Functions,
or in the Formula Editor
Jim
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: How do I calculate a ratio with negative numbers
Created:
Aug 16, 2017 03:42 PM
| Last Modified: Aug 16, 2017 12:45 PM
(19452 views)
| Posted in reply to message from rj69 08-16-2017
abs(x-y)/max(abs(x),abs(y))
The functions are available at:
Help==>Scripting Index==>Functions,
or in the Formula Editor
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: How do I calculate a ratio with negative numbers
Got it. Wasn't sure of the notation for the comma. Thank you.