#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default LARGE

=IF(COUNT(B20:Q20)<15,SUM(B20:Q20),your_formula)
--
Gary''s Student - gsnu200812
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default LARGE

Gary & Mike H

Thanks for the help, worked brilliantly.

Fesk
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need large spreadsheet - can you help? DW[_2_] Excel Discussion (Misc queries) 1 June 4th 08 08:52 AM
Large data Shivali Sadavarte Charts and Charting in Excel 1 February 29th 08 03:49 PM
LARGE 1, LARGE 2, LARGE 3, LARGE 4 jeel Excel Worksheet Functions 2 January 30th 08 06:05 AM
to large if formula allertonagain Excel Worksheet Functions 2 February 13th 06 10:14 AM
SMALL and LARGE Tonto Excel Discussion (Misc queries) 6 October 27th 05 07:02 AM


All times are GMT +1. The time now is 01:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"