--- title: "TALLY or a SUM search on any line you select" type: "article" slug: "tally-or-a-sum-search-on-any-line-you-select" url: "http://localhost/article/tally-or-a-sum-search-on-any-line-you-select/" markdown_url: "http://localhost/article/tally-or-a-sum-search-on-any-line-you-select.md" published_at: "2023-04-04T00:23:03+00:00" modified_at: "2026-06-21T23:27:10+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "One of the changes in this issue permits you to do a TALLY or a SUM search on any line you select. When I was limited to one line, I made little use of the SUM routine and no use of TALLY. Now I can set up a file for each of my products which…" category: - name: "Extensions" slug: "extensions" taxonomy: "category" url: "http://localhost/category/periodicals/extensions/" post_tag: - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" - name: "Pro/File 2068" slug: "pro-file-2068" taxonomy: "post_tag" url: "http://localhost/tag/pro-file-2068/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Robert Fischer" slug: "robert-fischer" taxonomy: "indiv" url: "http://localhost/indiv/robert-fischer/" publication_r: id: 39138 title: "Extensions" type: "periodical" url: "http://localhost/periodical/extensions/" authors: "Robert Fischer" authors_r: - name: "Robert Fischer" slug: "robert-fischer" taxonomy: "indiv" url: "http://localhost/indiv/robert-fischer/" issue: "4" issues_articles: - id: 49310 title: "Extensions issue 4" type: "issue" url: "http://localhost/issue/extensions-4/" pages: "1" product_reviews: - id: 13646 title: "Pro/File 2068" type: "product" url: "http://localhost/product/pro-file-2068-2/" archive_link: false --- # TALLY or a SUM search on any line you select One of the changes in this issue permits you to do a TALLY or a SUM search on any line you select. When I was limited to one line, I made little use of the SUM routine and no use of TALLY. Now I can set up a file for each of my products which I sell in a year. Each line could represent a different month’s sales and by searching and calculating the appropriate line I could check the total profits or gross sales in a given month. There are certainly similar possibilities you may find. Granted, these routines are not fast, but they could suit your purposes if you are not prepared to invest in a major financial program. Of course, the numbers to be calculated do not need to represent monetary values. To allow you to select any line for SUM or TALLY just make the following changes: ``` 130 LET J$=CHR$ PEEK VAL "23670": IF J$="T" OR J$="S" THEN INPUT "WHICH LINE TO CALCULATE? ";RW: IF RWJ THEN GO TO VAL "130" 9200 POKE VAL "63798",J+U: LET E$(RW)=E$(RW): IF USR VAL "63792" THEN LET T=T+VAL E$(RW, TO J+U) 9205 LET 4$(RW,J+H)=E$(RW,J+H): IF USR VAL "63792" THEN LET TO=TO+VAL E$(RW,J+H TO ) 9250 POKE VAL "63798",Q: LET E$(RW)=E$(RW): IF USR VAL "63792" THEN LET T=T+VAL E$(RW): LET TO=VAL E$(RW) ``` Whenever you do a TALLY or SUM search, the input line at the bottom of the main menu will prompt you to input the line number you wish to calculate. Once you enter that number, the routine will continue as before.