Want 1st 10 non blank entries in a row

Barry_D

New Member
Joined
May 4, 2018
Messages
3
I have been searching for some way to operate on the 1st 10 number entries in a row. The row may contain blanks or numbers. 10 number entries could be in the 1st 10 cells or it may take 50 or more cells to find the 1st 10 numbers. I want to use the result in a formula, specifically to find the average of the highest 5 numbers out of the 1st 10.

The formula: =average(large('range',{1,2,3,4,5}))

Thanks for any help or suggestions.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Welcome to the forum.

How about:

=AVERAGE(LARGE(A2:INDEX(A2:Z2,SMALL(IF(ISNUMBER(A2:Z2),COLUMN(A2:Z2)-COLUMN(A2)+1),10)),{1,2,3,4,5}))

with Control+Shift+Enter. That's if your maximum range is A2:Z2. If you have the values in a column, you'd need to change the 2 COLUMN functions to ROW.
 
Last edited:
Upvote 0
Welcome to the forum.

How about:

=AVERAGE(LARGE(A2:INDEX(A2:Z2,SMALL(IF(ISNUMBER(A2:Z2),COLUMN(A2:Z2)-COLUMN(A2)+1),10)),{1,2,3,4,5}))

with Control+Shift+Enter. That's if your maximum range is A2:Z2. If you have the values in a column, you'd need to change the 2 COLUMN functions to ROW.

That works so thank you very much. I have been fumbling all around this solution and finally you have solved it.
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,144
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top