ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Conditional Sum based on independent evaluation (https://www.excelbanter.com/excel-worksheet-functions/197321-conditional-sum-based-independent-evaluation.html)

analysis headache

Conditional Sum based on independent evaluation
 
I am trying to figure out how to sum certain cells in a row that correspond
to a Date in the same column. For example.
A B C D E
F G
1 DATE 1/1/2008 2/1/2008 3/1/2008 4/1/2008 5/1/2008
2 VENDOR 3/1/2008 10 20 30 40 50

In this example. I want to sum all the numbers in row 2 which have a date
greater then or equal to the date in cell b2.

smartin

Conditional Sum based on independent evaluation
 
analysis headache wrote:
I am trying to figure out how to sum certain cells in a row that correspond
to a Date in the same column. For example.
A B C D E
F G
1 DATE 1/1/2008 2/1/2008 3/1/2008 4/1/2008 5/1/2008
2 VENDOR 3/1/2008 10 20 30 40 50

In this example. I want to sum all the numbers in row 2 which have a date
greater then or equal to the date in cell b2.


Not sure how your data is laid out exactly, but if it looks like this:

A B C D E F G H
1 DATE 01/01 02/01 03/01 04/01 05/01
2 VENDOR 03/01 10 20 30 40 50 120

H2 is =SUMIF(C1:G1,"="&B2,C2:G2)


All times are GMT +1. The time now is 04:51 PM.

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