The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Min value in a range from max to end

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
bedibra Posted - 08/23/2017 : 09:57:22 AM
Dear all,
I am looking for a way using the set values function to get Min value in a column which range from max value in that column to the end of the column.
I will really appreciate your help.
2   L A T E S T    R E P L I E S    (Newest First)
bedibra Posted - 08/23/2017 : 1:59:50 PM
Will it works.
Thanks a lot
quote:
Originally posted by Hideo Fujii

Hi bedibra,

Please try the following:

Before Formula Script:
  sum(col(A));
  smax=sum.max;
  simax=sum.imax;
  range rr=col(A)[$(simax):<end>];
  sum(rr);
  smin=sum.min;
  simin=sum.imin;

col(B)=
  i==1?simax: (i==2?smax: (i==3?simin:(i==4?smin:0)))
It shows the max position, the value, the min position after the max, and the value.

Does it work?

--Hideo Fujii
OriginLab


Hideo Fujii Posted - 08/23/2017 : 11:58:34 AM
Hi bedibra,

Please try the following:

Before Formula Script:
  sum(col(A));
  smax=sum.max;
  simax=sum.imax;
  range rr=col(A)[$(simax):<end>];
  sum(rr);
  smin=sum.min;
  simin=sum.imin;

col(B)=
  i==1?simax: (i==2?smax: (i==3?simin:(i==4?smin:0)))
It shows the max position, the value, the min position after the max, and the value.

Does it work?

--Hideo Fujii
OriginLab

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000