Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Here's another way...
=AVERAGE(SUBTOTAL(9,OFFSET(A1:A14,SMALL(IF(A1:A14 0,ROW(A1:A14)-MIN(ROW(A 1))),{1,2,3}),0,1))) ....confirmed with CONTROL+SHIFT+ENTER, not ENTER. Hope this helps! In article , Alienator wrote: Hi everyone, I'll give an example to show you what I want to do. I have the following data: 0 1.2179 0 0 0 0 0 0 1.2140 0 0 0 1.2115 1.2165 I want to average the first 3 numbers that are non-zero. So the result of the 1st should be 1.2179+1.2140+1.2115 /3. I need the results of these to be in the 1st row somewhere else. The rows with zeros, and non-zeros keep changing, so you might get 10 0's in a row followed by 10 non-zero numbers. I just need to extract the first 3 non-zero numbers then average them I'm good with the basic functions, but I can't figure this out ![]() Any help at all would be most appreciated. Thanks Zak |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do you "select locked cells" w/o "select unlocked cells"? | Excel Discussion (Misc queries) | |||
Counting empty cells within a range of cells | New Users to Excel | |||
Counting only active cells | Excel Discussion (Misc queries) | |||
Help adding text values | Excel Worksheet Functions | |||
Convert data type of cells to Text,Number,Date and Time | Excel Worksheet Functions |