ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   sumproduct or other formula? (https://www.excelbanter.com/excel-discussion-misc-queries/117482-sumproduct-other-formula.html)

bubble

sumproduct or other formula?
 
i would like to be able to sum the following according to column A's value

mar 100
april 200
may 300
june 400

if i have a cell that has may, i would like another cell to add up anything
from before, example, may will be 600, april will be 300, and june will be
1000.

Thank you.

Biff

sumproduct or other formula?
 
Try this:

.................A..............B..........C...... ...D
1...........mar.............100..................m ay
2...........april............200
3...........may............300
4...........june............400

D1 = some month

=SUM(B1:INDEX(B1:B4,MATCH(D1,A1:A4,0)))

Biff

"bubble" wrote in message
...
i would like to be able to sum the following according to column A's value

mar 100
april 200
may 300
june 400

if i have a cell that has may, i would like another cell to add up
anything
from before, example, may will be 600, april will be 300, and june will be
1000.

Thank you.




bubble

sumproduct or other formula?
 
Thank you!!!

"Biff" wrote:

Try this:

.................A..............B..........C...... ...D
1...........mar.............100..................m ay
2...........april............200
3...........may............300
4...........june............400

D1 = some month

=SUM(B1:INDEX(B1:B4,MATCH(D1,A1:A4,0)))

Biff

"bubble" wrote in message
...
i would like to be able to sum the following according to column A's value

mar 100
april 200
may 300
june 400

if i have a cell that has may, i would like another cell to add up
anything
from before, example, may will be 600, april will be 300, and june will be
1000.

Thank you.





Biff

sumproduct or other formula?
 
You're welcome! Thanks for the feedback.

Biff

"bubble" wrote in message
...
Thank you!!!

"Biff" wrote:

Try this:

.................A..............B..........C...... ...D
1...........mar.............100..................m ay
2...........april............200
3...........may............300
4...........june............400

D1 = some month

=SUM(B1:INDEX(B1:B4,MATCH(D1,A1:A4,0)))

Biff

"bubble" wrote in message
...
i would like to be able to sum the following according to column A's
value

mar 100
april 200
may 300
june 400

if i have a cell that has may, i would like another cell to add up
anything
from before, example, may will be 600, april will be 300, and june will
be
1000.

Thank you.








All times are GMT +1. The time now is 07:13 AM.

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