Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default OK i need help with the if function.

Pls help me. My current column formula is =SUM(LARGE(B8:B15,{1,2,3,4,5,6})).
that get's me the top 6 values i need, but only if values are entered. If I
do not put values in cells 8:15 i get #NUM! as a result. This formula is
being used in 5 columns (b,c,d,e,f). The totals are in cell 16 for each
column. I need to get the value 0 WHILE LEAVING THE CELLS EMPTY because I
grand total the totals by using the formula =SUM(B16:F16). That formula
won't unless it has at least a value of 0 for each column, or it returns the
#NUM! also.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default OK i need help with the if function.

Try this then:

=IF(ISERROR(SUM(LARGE(B8:B15,{1,2,3,4,5,6}))),0,SU M(LARGE(B8:B15,
{1,2,3,4,5,6})))

Put this in B16 and copy across to F16.

Hope this helps.

Pete

On May 15, 8:16 am, TheDrip wrote:
Pls help me. My current column formula is =SUM(LARGE(B8:B15,{1,2,3,4,5,6})).
that get's me the top 6 values i need, but only if values are entered. If I
do not put values in cells 8:15 i get #NUM! as a result. This formula is
being used in 5 columns (b,c,d,e,f). The totals are in cell 16 for each
column. I need to get the value 0 WHILE LEAVING THE CELLS EMPTY because I
grand total the totals by using the formula =SUM(B16:F16). That formula
won't unless it has at least a value of 0 for each column, or it returns the
#NUM! also.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default OK i need help with the if function.

On Tue, 15 May 2007 00:16:01 -0700, TheDrip
wrote:

Pls help me. My current column formula is =SUM(LARGE(B8:B15,{1,2,3,4,5,6})).
that get's me the top 6 values i need, but only if values are entered. If I
do not put values in cells 8:15 i get #NUM! as a result. This formula is
being used in 5 columns (b,c,d,e,f). The totals are in cell 16 for each
column. I need to get the value 0 WHILE LEAVING THE CELLS EMPTY because I
grand total the totals by using the formula =SUM(B16:F16). That formula
won't unless it has at least a value of 0 for each column, or it returns the
#NUM! also.


If there are fewer than six entries, do you want to sum the entries that are
present? Or do you want a Zero?

If the former, then:

=IF(COUNT(B8:B15)=0,0,SUMPRODUCT(LARGE(B8:B15,
ROW(INDIRECT("1:"&MIN(6,COUNT(B8:B15)))))))

If the latter, then:

=IF(COUNT(B8:B15)<6,0,SUM(LARGE(B8:B15,{1,2,3,4,5, 6})))


--ron
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default OK i need help with the if function.

"Pete_UK" wrote...
Try this then:

=IF(ISERROR(SUM(LARGE(B8:B15,{1,2,3,4,5,6}))),0 ,
SUM(LARGE(B8:B15,{1,2,3,4,5,6})))

....

That works, but the condition does way more than it needs to. How about

=IF(COUNT(B8:B15)=6,SUM(LARGE(B8:B15,{1,2,3,4,5,6 })),0)

which won't mask error values, if any, in B8:B15?


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
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
SUMIF Function Inside SUMPRODUCT Function Abdul Waheed Excel Worksheet Functions 17 September 19th 05 04:24 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM


All times are GMT +1. The time now is 04:08 AM.

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

About Us

"It's about Microsoft Excel"