Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
LARGE
Hi
I'm using the following function to sum the best 14 numbers from 16. =SUM(LARGE(B20:Q20,{1,2,3,4,5,6,7,8,9,10,11,12,13, 14})) My problem is if there are less than 14 numbers the function comes up with '#NUM' Any help would be appreciated. Thanks Fesk |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
LARGE
Try,
=SUM(LARGE(B20:Q20,ROW(INDIRECT("1:"&MIN(COUNT(B20 :Q20),14))))) 'This is an array formula which must be entered by pressing CTRL+Shift+Enter 'and not just Enter. If you do it correctly then Excel will put curly brackets 'around the formula {}. You can't type these yourself. If you edit the formula 'you must enter it again with CTRL+Shift+Enter. Mike "Fesk" wrote: Hi I'm using the following function to sum the best 14 numbers from 16. =SUM(LARGE(B20:Q20,{1,2,3,4,5,6,7,8,9,10,11,12,13, 14})) My problem is if there are less than 14 numbers the function comes up with '#NUM' Any help would be appreciated. Thanks Fesk |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
LARGE
=IF(COUNT(B20:Q20)<15,SUM(B20:Q20),your_formula)
-- Gary''s Student - gsnu200812 |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
LARGE
I should have added an equivalent of your formula without the less than 14
numbers issue is this. Still an array but a bit less unweildy =SUM(LARGE(B20:Q20,ROW(INDIRECT("1:14")))) Mike "Mike H" wrote: Try, =SUM(LARGE(B20:Q20,ROW(INDIRECT("1:"&MIN(COUNT(B20 :Q20),14))))) 'This is an array formula which must be entered by pressing CTRL+Shift+Enter 'and not just Enter. If you do it correctly then Excel will put curly brackets 'around the formula {}. You can't type these yourself. If you edit the formula 'you must enter it again with CTRL+Shift+Enter. Mike "Fesk" wrote: Hi I'm using the following function to sum the best 14 numbers from 16. =SUM(LARGE(B20:Q20,{1,2,3,4,5,6,7,8,9,10,11,12,13, 14})) My problem is if there are less than 14 numbers the function comes up with '#NUM' Any help would be appreciated. Thanks Fesk |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
LARGE
Gary & Mike H
Thanks for the help, worked brilliantly. Fesk |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Need large spreadsheet - can you help? | Excel Discussion (Misc queries) | |||
Large data | Charts and Charting in Excel | |||
LARGE 1, LARGE 2, LARGE 3, LARGE 4 | Excel Worksheet Functions | |||
to large if formula | Excel Worksheet Functions | |||
SMALL and LARGE | Excel Discussion (Misc queries) |