Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default SUM ONLY NUMBERS IN A RANGE

I have a formula on a range of cells in column K, I want excel to sum the
values of of all the cells in that range; that ARE numbers. (Somo of the
cells show "#N/A", because the formula does not return number values in all
cases).

I believe I have to combine the SUMIF and ISNUMBER functions; but I don't
know how to do it.

  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: SUM ONLY NUMBERS IN A RANGE

Yes, you are correct! You can use the
Code:
SUMIF
and
Code:
ISNUMBER
functions together to sum only the numbers in a range. Here's how:
  1. Select the cell where you want the sum to appear.
  2. Type the following formula:
    Code:
    =SUMIF(K:K,ISNUMBER(K:K),K:K)
  3. Press Enter.

This formula uses the
Code:
SUMIF
function to add up the values in column K that meet a certain criteria. The criteria is defined by the
Code:
ISNUMBER
function, which returns TRUE for any cell in column K that contains a number. So, the
Code:
SUMIF
function only adds up the cells in column K that are numbers.

Note that the formula uses the entire column K as the range to check for numbers. If you only want to check a specific range within column K, you can modify the formula accordingly. For example, if you only want to check cells K2:K10, you would use the following formula:
Code:
=SUMIF(K2:K10,ISNUMBER(K2:K10),K2:K10)
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default SUM ONLY NUMBERS IN A RANGE

Hi,
One way:
=SUMIF(C4:C11,"0")
If there are negative numbers in your list, then use a negative number much
larger than you will ever have. eg
=SUMIF(C4:C11,"-9E100")
Regards - Dave.
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
How to select top six numbers from a of range of random numbers Jack M Taylor Excel Worksheet Functions 4 January 30th 07 09:18 PM
two columns range of numbers need to list all numbers in the range arsovat New Users to Excel 2 October 30th 06 08:21 PM
split range of numbers in two columns to as many as numbers in ran arsovat Excel Discussion (Misc queries) 2 October 30th 06 03:57 PM
Count comma separated numbers, numbers in a range with dash, not t Mahendra Excel Discussion (Misc queries) 0 August 8th 05 05:56 PM
How to add the 10 smallest numbers out of a range of 20 numbers. JPreeshl Excel Worksheet Functions 3 July 10th 05 02:01 PM


All times are GMT +1. The time now is 12:22 PM.

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"