ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how to add values of cells only if a corresponding cell has information on it (https://www.excelbanter.com/excel-worksheet-functions/92557-how-add-values-cells-only-if-corresponding-cell-has-information.html)

zuri125

how to add values of cells only if a corresponding cell has information on it
 

Is there a function that can add up the values of cells but only if a
corresponding cell has information on it. For example i have two
columns of lists. The left column has every cell filled up with a
number, but the right column has a few blanks. How can I add up the
cells of the left column that only have a number in the right column?
THanks


--
zuri125
------------------------------------------------------------------------
zuri125's Profile: http://www.excelforum.com/member.php...o&userid=31131
View this thread: http://www.excelforum.com/showthread...hreadid=549314


Ardus Petus

how to add values of cells only if a corresponding cell has information on it
 
Array formula (to validate with Ctrl+Shift+Enter):
=SUM(IF(B1:B4<"",A1:A4))

HTH
--
AP

"zuri125" a écrit
dans le message de news:
...

Is there a function that can add up the values of cells but only if a
corresponding cell has information on it. For example i have two
columns of lists. The left column has every cell filled up with a
number, but the right column has a few blanks. How can I add up the
cells of the left column that only have a number in the right column?
THanks


--
zuri125
------------------------------------------------------------------------
zuri125's Profile:
http://www.excelforum.com/member.php...o&userid=31131
View this thread: http://www.excelforum.com/showthread...hreadid=549314





All times are GMT +1. The time now is 09:11 AM.

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