-2
1
I've seen this and similar methods posted here and elsewhere:
How can I condense a list that has missing data to a new list without the cells with missing data?
I have patient data, basically like this:
D E F H I J
label1 label2 label3 label4 label5 label6
8 15 7 8 15 7
4 11 3
5 13 1
4 11 3 2 8 0
3 5 2
5 13 1
2 8 0
3 5 2
- row 1 are data labels
- up to 5 possible number values are randomly positioned in columns D, E, F
- there are lots of blanks
- collect those up-to-5 numbers, and put them in a 3x5y grid H2:H6 so I can average them and stdev them elsewhere
- no NUM! errors can be returned
2 solutions have been found here and elsewhere but they don't work.
=IFERROR(INDEX(D:D,SMALL(IF(ISNUMBER(D:D),ROW(D:D)),ROW(D1))),"")
This does not work in Excel 2016 xlsx format, but seems to work sometimes in a 2003 Excel .xls. That's the really wierd part. I'd like to use 2016 format, because 97-2003 gives some errors trying to save. The formula returns blanks or the first row data label, or all the same number from D2 instead of up-to-5 numbers that is has condensed.
=IF(ROWS(H$2:H2)>COUNTA(D:D),"",INDEX(D:D,SMALL(IF(D$2:D$256<>"",ROW(D$2:D$256)),ROWS(H$2:H2))))
This does not work because it returns NUM! error values for totally blank columns or columns with less than five numerical values. This workbook will have "future" days and sheets that are blank, but have the formula pasted or templated in, and the whole workbook from H2:J6 is averaged and stdev'd on sheet1. That in turn is graphed. It cannot have non-numerical error values.
1You may not be able to post actual data, but please create a table that shows the problem and the expected output in the smallest most concise manner. it will help us understand the problem better. – Scott Craner – 2018-09-12T18:46:40.007
2"I have patient data, and will not post or share anything due to HIPAA" this is what mock data is for, surely Bugs Bunny, Sherlock Holmes and Plato won't mind if you invent data about them – cybernetic.nomad – 2018-09-12T18:47:14.063
Please add information by editing your question. Avoid comments as they are harder to parse when they are more than 1 or two simple sentences.
– cybernetic.nomad – 2018-09-12T19:10:01.277edited original post with "mock data" – ghent96 – 2018-09-12T19:28:09.190