ExcelBanter

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

Gos-C

Conditional Sum
 

I entered:

=SUMPRODUCT((REPLACE(REPLACE(A9:A933500,1,1,""),3, 4,"")="LR"),(B9:B33500"31-Dec-03"+0),(L9:L33500))

Column A contains eight-character record numbers with the second and
third characters being letters and the remainding characters being
numbers. Column B contains dates. Column L has dollar values.

If Column B is greater than 31-Dec-2003 and Column A is an LR record
number sum the dollar value in Column L.

Any help?


--
Gos-C
------------------------------------------------------------------------
Gos-C's Profile: http://www.excelforum.com/member.php...o&userid=14518
View this thread: http://www.excelforum.com/showthread...hreadid=272991


Myrna Larson

See if this works:

=SUMPRODUCT(--(MID(A9:A933500,2,2)="LR"),--(B9:B33500DATE(2003,12,31)),(L9:L33500))

On Wed, 27 Oct 2004 16:21:42 -0500, Gos-C
wrote:


I entered:

=SUMPRODUCT((REPLACE(REPLACE(A9:A933500,1,1,""),3 ,4,"")="LR"),(B9:B33500"31-Dec-03"+0),(L9:L33500))

Column A contains eight-character record numbers with the second and
third characters being letters and the remainding characters being
numbers. Column B contains dates. Column L has dollar values.

If Column B is greater than 31-Dec-2003 and Column A is an LR record
number sum the dollar value in Column L.

Any help?




All times are GMT +1. The time now is 01:15 AM.

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