ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Conditional Sum of cells (https://www.excelbanter.com/excel-worksheet-functions/196019-conditional-sum-cells.html)

UB

Conditional Sum of cells
 
Hi
I have data in Cell A1,A2, C1,C2 E1,E2
A C E
10 15 12
1 0 1

I WANT THE SUM OF CELLS A1 & C1 ONLY IF THE VALUE IN A2 AND C2 IS NOT ZERO
THIS IS AN EXAMPLE. ACTUALLY THE NUMBER OF CELLS THAT I NEED SUM OF ARE MORE
THAN 20 IN THE SHEET. BUT THEY ARE NOT IN ORDER

M Kan

Conditional Sum of cells
 
If the values in your condtional range are always 1 or 0, you could just use
a basic SUMPRODUCT function

Do the rest of your values extend across multiple columns, but in rows 1 and
2, or are they always in columns A:E, but down more rows than just 1 and 2?

Also, what values can your conditional tests take?
--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"ub" wrote:

Hi
I have data in Cell A1,A2, C1,C2 E1,E2
A C E
10 15 12
1 0 1

I WANT THE SUM OF CELLS A1 & C1 ONLY IF THE VALUE IN A2 AND C2 IS NOT ZERO
THIS IS AN EXAMPLE. ACTUALLY THE NUMBER OF CELLS THAT I NEED SUM OF ARE MORE
THAN 20 IN THE SHEET. BUT THEY ARE NOT IN ORDER



All times are GMT +1. The time now is 08:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com