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 for Programming
 LabTalk Forum
 countif

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
53945 Posted - 03/27/2002 : 11:43:36 AM
Hello,
I need the order in Lab talk, who make the
same how the excel-order "countif" for count
number codes (example: "6/ 10/ 12/ ")
1   L A T E S T    R E P L I E S    (Newest First)
CStorey Posted - 03/28/2002 : 12:25:58 PM
From the Excel documentation:


COUNTIF(range,criteria)

Range is the range of cells from which you want to count cells.

Criteria is the criteria in the form of a number, expression, or text that defines which cells will be counted. For example, criteria can be expressed as 32, "32", ">32", "apples".



So if I understand you are looking for a command to search for all values in a column/selection that match a number? There is no duplicate function to countif in LabTalk, but you can easily write one yourself. The limit command as well as the wks.cx and wks.rx (x=1,2) objects in LabTalk will be useful to you. In version 7.0 you could make write an OriginC funtion to simulate the countif function.

Hope this helps.

Craig Storey
Origin WebRing Member - http://g.webring.com/hub?ring=originwebring

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