ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   SUMIF problem (https://www.excelbanter.com/excel-worksheet-functions/87660-sumif-problem.html)

wahur

SUMIF problem
 

Column A has dates
Column S has numbers
I need to add numbers in rows where date is in past.
I tried
Code:
--------------------
=SUMIF(A:A;"<today()";S:S)
--------------------
and got 0 for an answer
I put
Code:
--------------------
=today()
--------------------
in the cell U1 and tried

Code:
--------------------
=SUMIF(A:A;"<U1";S:S)
--------------------
and still got 0 for an answer.
Whats wrong with the formula?

Wahur


--
wahur
------------------------------------------------------------------------
wahur's Profile: http://www.excelforum.com/member.php...o&userid=26555
View this thread: http://www.excelforum.com/showthread...hreadid=540235


SteveG

SUMIF problem
 

Wahur,

Change your original to:

=SUMIF(A:A,"<"&TODAY(),S:S)

You had quotes around the TODAY function which caused your problem.

HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=540235


wahur

SUMIF problem
 

Thanks, works perfect!

Wahur


--
wahur
------------------------------------------------------------------------
wahur's Profile: http://www.excelforum.com/member.php...o&userid=26555
View this thread: http://www.excelforum.com/showthread...hreadid=540235



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

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