Article View: comp.apps.spreadsheets
Article #135Re: Question for Excel users.
From: ralf
Date: Tue, 01 Sep 1992 07:34
Date: Tue, 01 Sep 1992 07:34
39 lines
2502 bytes
2502 bytes
In <1992Aug25.164046.26564@newssrv.edvz.univie.ac.at> A4422DAB@vm.univie.ac.at (Erich Neuwirth) writes:
>What I need to know is how can I find out how many '5's I have in a
>row, or how many '7's I have in a row. I tried DCOUNT but only seems to
>work on columns and not rows. I tried to TRANSLATE the database and then
>use the out put to do a DCOUNT. This method fails if the numbers in the
>database change.
I think I have a solution for you.
>+=====+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+==
>| | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R
>+=====+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+==
>| DA1 | 4 | 3 | 2 | 6 | 8 | 5 | 8 | 9 | 4 | 3 | 5 | 7 | 4 | 2 | 5 | 6 | 7 | 3
>+=====+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+==
>| DA2 | 3 | 4 | 2 | 3 | 4 | 5 | 7 | 9 | 8 | 9 | 4 | 9 | 0 | 3 | 2 | 5 | 7 | 3
>+=====+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+==
>| DA3 | 4 | 4 | 4 | 4 | 6 | 6 | 6 | 6 | 3 | 3 | 3 | 1 | 1 | 1 | 4 | 4 | 4 | 5
>+=====+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+==
Assuming that the column with your "DA1-3"s in column 1 means "Row 1-3" the
necessary formula will be:
{=sum(if(A1:R3=5;1))}
You might replace the "5" in the formula with an other number in an other cell.
Please note that you have not to enter the curly braces (it's an array-form.).
Enter the formula without them and finish the line with CTRL-SHIFT-ENTER.
I hope this will solve your problem.
MfG/Regards
---------------------------------------+----------------------------------------
Ralf Burghart | Phone: [nation | 0] 5251 8 25990
Siemens Nixdorf Informationssysteme AG | Fax : [nation | 0] 5251 8 25889
IT-Service - Paderborn | CompuServe : 73337,763
| NET : (usenet) burghart.kd@sni-usa.com
| (eunet) burghart.kd@sni.de
---------------------------------------+----------------------------------------
Technical Details
Message-ID:
<1097@usun01.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!nixpbe!usun01!ralfReferences:
<1992Aug25.164046.26564@newssrv.edvz.univie.ac.at>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!nixpbe!usun01!ralf From: ralf@usun01.UUCP (ralf) Newsgroups: comp.apps.spreadsheets Subject: Re: Question for Excel users. Message-ID: <1097@usun01.UUCP> Date: 1 Sep 92 07:34:50 GMT References: <1992Aug25.164046.26564@newssrv.edvz.univie.ac.at> Organization: Nixdorf Computer AG, Paderborn, Germany Lines: 39