- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
counting total item in each cell that contain different pattern
Hi,
I want to get the total count of the item in the cell under setting columns. Can someone give me suggestion how I can code it so it will take the value under :setting column and count the total number like what shown under :Total Items. Many Thanks.
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: counting total item in each cell that contain different pattern
Created:
Apr 14, 2022 08:31 PM
| Last Modified: Apr 14, 2022 5:32 PM
(800 views)
| Posted in reply to message from dadawasozo 04-14-2022
Here is the formula for the column Total Items, that I came up with.
count = 0;
i = 1;
While( Word( i, :setting, "," ) != "",
theWord = Word( i, :setting, "," );
If( Contains( theWord, "-" ) | Contains( theWord, ":" ),
Show( Row(), theWord );
count = ((count + Num( Word( 2, theWord, "-:" ) )) - Num( Word( 1, theWord, "-:" ) )) + 1;
,
count
++);
i++;
);
count;
Jim
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: counting total item in each cell that contain different pattern
Created:
Apr 14, 2022 08:31 PM
| Last Modified: Apr 14, 2022 5:32 PM
(801 views)
| Posted in reply to message from dadawasozo 04-14-2022
Here is the formula for the column Total Items, that I came up with.
count = 0;
i = 1;
While( Word( i, :setting, "," ) != "",
theWord = Word( i, :setting, "," );
If( Contains( theWord, "-" ) | Contains( theWord, ":" ),
Show( Row(), theWord );
count = ((count + Num( Word( 2, theWord, "-:" ) )) - Num( Word( 1, theWord, "-:" ) )) + 1;
,
count
++);
i++;
);
count;
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: counting total item in each cell that contain different pattern
This is amazing! I was only able to do one type str count. I learn new thing. Thanks a lot.