ExcelBanter

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

Daniel

Sum of specific cells
 
How do I return a sum of a range of cells corresponding to a certain criteria

(For example: I want the sum of all cells in A column which have a value in
B colomn:

A B
1 A
3 B
6

- I only want the sum of cells a1, a2 = 4)

Thanks.

Aladin Akyurek


=SUMIF(B1:B3,"<",A1:A3)

Daniel Wrote:
How do I return a sum of a range of cells corresponding to a certain
criteria

(For example: I want the sum of all cells in A column which have a
value in
B colomn:

A B
1 A
3 B
6

- I only want the sum of cells a1, a2 = 4)

Thanks.



--
Aladin Akyurek
------------------------------------------------------------------------
Aladin Akyurek's Profile: http://www.excelforum.com/member.php...fo&userid=4165
View this thread: http://www.excelforum.com/showthread...hreadid=319037


Trevor Shuttleworth

Daniel

=SUMIF(B:B,"<",A:A)

Regards

Trevor


"Daniel" wrote in message
...
How do I return a sum of a range of cells corresponding to a certain
criteria

(For example: I want the sum of all cells in A column which have a value
in
B colomn:

A B
1 A
3 B
6

- I only want the sum of cells a1, a2 = 4)

Thanks.




Steve Walton

On Sat, 20 Nov 2004 11:33:36 -0600, Aladin Akyurek
wrote:


=SUMIF(B1:B3,"<",A1:A3)


or
{=SUM(IF(B1:B3"",A1:A3,0))}

to cover when b3=6

Daniel Wrote:
How do I return a sum of a range of cells corresponding to a certain
criteria

(For example: I want the sum of all cells in A column which have a
value in
B colomn:

A B
1 A
3 B
6

- I only want the sum of cells a1, a2 = 4)

Thanks.



--
Aladin Akyurek
------------------------------------------------------------------------
Aladin Akyurek's Profile: http://www.excelforum.com/member.php...fo&userid=4165
View this thread: http://www.excelforum.com/showthread...hreadid=319037


Steve

Pierre Leclerc

Hi

Welcome to the amazing univers of SUMPRODUCT

=SUMPRODUCT((b1:b502)*(A1:A50))
In plain English, sum cells A1 to A50 if in the corresponding cell of
B1 to B50 the value is greater than 2

=SUMPRODUCT((b1:b50<"")*(A1:A50))
In plain English, sum cells A1 to A50 if in the corresponding cell of
B1 to B50 there is something

This is SUMPRODUCT with one criteria but you can have as many criteria
as you need...depending on a value in columns B, C, D, E, F......

See the site below

http://www.excel-vba.com


On Sun, 21 Nov 2004 13:39:39 GMT, (Steve
Walton) wrote:

On Sat, 20 Nov 2004 11:33:36 -0600, Aladin Akyurek
wrote:


=SUMIF(B1:B3,"<",A1:A3)


or
{=SUM(IF(B1:B3"",A1:A3,0))}

to cover when b3=6

Daniel Wrote:
How do I return a sum of a range of cells corresponding to a certain
criteria

(For example: I want the sum of all cells in A column which have a
value in
B colomn:

A B
1 A
3 B
6

- I only want the sum of cells a1, a2 = 4)

Thanks.



--
Aladin Akyurek
------------------------------------------------------------------------
Aladin Akyurek's Profile:
http://www.excelforum.com/member.php...fo&userid=4165
View this thread: http://www.excelforum.com/showthread...hreadid=319037


Steve


Pierre Leclerc
http://www.excel-vba.com


Aladin Akyurek


Steve Walton Wrote:[color=blue]
On Sat, 20 Nov 2004 11:33:36 -0600, Aladin Akyurek
wrote:


=SUMIF(B1:B3,"<",A1:A3)


or
{=SUM(IF(B1:B3"",A1:A3,0))}

to cover when b3=6
...



You seem to think that "a value" should be restricted to letters/text.
If so, you need something different than what you suggest for it fails
to exclude B3 = TRUE or include B3 housing a formula blank, etc.?


--
Aladin Akyurek
------------------------------------------------------------------------
Aladin Akyurek's Profile: http://www.excelforum.com/member.php...fo&userid=4165
View this thread: http://www.excelforum.com/showthread...hreadid=319037



All times are GMT +1. The time now is 05:17 AM.

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