![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
I am stuck I am trying to add the top 8 alues from this row of 10 entires:- Answer 19 23 29 17 22 23 20 25 25 24 191 but I am not sure how to do this ? |
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Quote:
=IF((COUNT(A1:A10)<=B1),SUM(A1:A10),SUM(LARGE(A1:A10,{1,2,3,4,5,6,7,8}))) =IF((COUNT(A1:A10)<=B1),SUM(A1:A10),SUMPRODUCT(LARGE(A1:A10,ROW(INDIRECT("1:"&B1))))) where B1 holds 8, the desired number of top/largest values. |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2002
Posts: 9
|
I have now registered as a user.
Tried both equations and they work ! Many thanks for you quick response. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|