LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Sum only certain cells

This formula gives me a count of the cells that do not contain "N/A"

Used in this form:

SUMPRODUCT(B1:B4,$A1:$A4)

Sumproduct cannot count. It multiplies both arrays together and then sums
the result of the multiplication.

Based on your posted sample data the formula works:

=IF(COUNT(B1:B4)<4,"N/A",SUMPRODUCT(B1:B4,$A1:$A4))

See this screencap:

http://img49.imageshack.us/img49/2671/sump7ir.jpg

Biff

"sweetsue516" wrote in message
...
Biff,

This formula gives me a count of the cells that do not contain "N/A"

Any suggestions

"Biff" wrote:

Hi!

Try something like this:

=IF(COUNT(B1:B4)<4,"N/A",SUMPRODUCT(B1:B4,$A1:$A4))

Copy across as needed.

Biff

"sweetsue516" wrote in message
...
In row 5 I need a total of colums b through f multiplied by colum a
unless
the cell contains text which in this case is "N/A"

example for column b

sumproduct(b1:b4,a1:a4) Unless the cell contains text which is
"N/A".

So all of the columns in line 5 would have a value except for column f
which
I need an "N/A".




A B C D E F

1 10% 15.58 38.50 26.68 9.43 N/A

2 10% 13.51 36.03 24.85 6.41 3.34

3 4% 8.41 28.66 20.26 4.86 N/A

4 4% 3.67 1. 36 15.75 9.89 9.2

5






 
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 do you "select locked cells" w/o "select unlocked cells"? princejohnpaulfin Excel Discussion (Misc queries) 3 July 16th 05 03:53 AM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 0 April 7th 05 12:47 AM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM


All times are GMT +1. The time now is 09:23 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"