Date: 23/09/2018 07:57:30
From: mollwollfumble
ID: 1279880
Subject: Excel help please

I have data that looks like this, but with more rows and columns.

For each row, I want the number of columns with entries other than 99999, and the mean (or median) of those non-99999 entries.

Reply Quote

Date: 23/09/2018 09:01:57
From: Michael V
ID: 1279882
Subject: re: Excel help please

mollwollfumble said:


I have data that looks like this, but with more rows and columns.

For each row, I want the number of columns with entries other than 99999, and the mean (or median) of those non-99999 entries.

Global find and replace: – (dash) for 99999

Do your calculations. (One cell, first row, then fill down.)

Copy and paste special (values): calculation column.

Global find and replace 99999 for – (dash).

Reply Quote

Date: 23/09/2018 10:23:15
From: The Rev Dodgson
ID: 1279889
Subject: re: Excel help please

For data in I10:M10,with first formula in N10:
=COUNTIF
=SUMIF/N10

For median, I don’t know (other than a VBA function, that would be quite easy).

Reply Quote

Date: 23/09/2018 10:26:48
From: The Rev Dodgson
ID: 1279891
Subject: re: Excel help please

Can’t remember how to post code here.

Click on Quote to see text in full.

The Rev Dodgson said:


For data in I10:M10,with first formula in N10:

=COUNTIF
=SUMIF/N10

For median, I don’t know (other than a VBA function, that would be quite easy).

Reply Quote

Date: 23/09/2018 10:28:58
From: The Rev Dodgson
ID: 1279892
Subject: re: Excel help please

Try reading the help:

The Rev Dodgson said:


Can’t remember how to post code here.

Click on Quote to see text in full.

The Rev Dodgson said:


For data in I10:M10,with first formula in N10:
=COUNTIF(I10:M10,"<>99999")
=SUMIF(I10:M10,"<>99999")/N10
For median, I don’t know (other than a VBA function, that would be quite easy).

Reply Quote

Date: 23/09/2018 10:39:53
From: The Rev Dodgson
ID: 1279893
Subject: re: Excel help please

For Median:

=MEDIAN(IF(I10:M10<>99999,I10:M10,""))

Has to be an array formula.
Enter as shown (or copy and paste)
Press F2
Press Ctrl-Shift-Enter

Reply Quote

Date: 23/09/2018 13:40:54
From: mollwollfumble
ID: 1279939
Subject: re: Excel help please

The Rev Dodgson said:


For Median:

=MEDIAN(IF(I10:M10<>99999,I10:M10,""))

Has to be an array formula.
Enter as shown (or copy and paste)
Press F2
Press Ctrl-Shift-Enter

Thanks to both of you. I’d forgotten that there was such a function as “median”, “countif” and “sumif”.
I’m startled that “dash” works, but it might at that.

Reply Quote