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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 countif
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

53945

Austria
1 Posts

Posted - 03/27/2002 :  11:43:36 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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/ ")

CStorey

Canada
137 Posts

Posted - 03/28/2002 :  12:25:58 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000