2012 Archives by date, by thread · List index

# Re: [libreoffice-users] Help with Scoring Bi-nominal Responses

```Hi Paul,

```
(replied received on my personal mailbox -- as I think this might be by mistake, I answer on the list also)
```
Le 21/09/2012 07:18, Paul Anderson a écrit :
```
```
Also, sorry if you have addressed this already, Brian. But, I know only
basic functions within the spreadsheet and will request a more
explanatory example.
The file was delivered in xlsx format. I would like to maintain the
format (using LibreOffice!), but I may have to look to other software.
```
```
```
Just another question here: where does the data come from? Directly entered by the user? Extracted from elsewhere? Exported from some software? IOW, do you have the hand on the values (the zeroes and the ones in the source columns, the result lists in the result columns)?
```
```
```
Here is an example of my first two rows of data, cells F2&3 through
S2&3, with F1-S1 containing variable names

*F*     *G*     *H*     *I*     *J*     *K*     *L*     *M*     *N*     *O*     *P*     *Q*     *R*
*S*
0       1       0       1       0       0       1       0       0       0       0       0       0
0
1       0       1       1       0       0       1       0       0       0       1       0       0
0

Using a simple example with only two cells (F2&L2), I want T2 to equal a
'score' based on a weighted index, like this:
```
```
Is T linked only with F and L?

```
```
IF F2=0 then T2=0; else T2=T2+1;
```
```
```
As stated in someone else's message, the above formula for T2 (T2=T2+1) is self-referencing which will result in an infinite loop. You'll have to compute the result in another column, I guess.
```
```
```(Where F2 can only take on a value of 0 or 1)
AND
IF L2=0 OR L2=1 OR L2=2 then T2=T2+0; else T2=T2+3
(Where L2 can take on a value of 0,1,2,or 3)

So that:

T2 = 0 (if F2=0 and L2=0,1,or 2)
OR
T2 = 4 (if F2=1 and L2=3)

I haven't been able to create the proper syntax for this simple two cell
scoring.
```
```
```
I'd start with a sheet of paper, drawing a table of possible values: for each input column and for each value, write down the output column values. From such a sketch, it would be much easier for you to figure things out. I'm sure your calculations might be simple. IMO, the first thing to do is re-think the whole thing as large "table" and analyse the output values ranges. Then deducting the formulas is a no-brainer ;)
```
```
```How can I not only score an individual cell but also link it with
another cell in the same row?
```
```
```
Depending on the needs, the IF() and SUMIF() functions might be of help. Sorry to be vague here as I don't quite understand the question :)
```

Cheers,
--
Jean-Francois Nifenecker, Bordeaux

--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
```