SOLVED
Home

Sum.if with dates

%3CLINGO-SUB%20id%3D%22lingo-sub-401339%22%20slang%3D%22en-US%22%3ESum.if%20with%20dates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-401339%22%20slang%3D%22en-US%22%3E%3CP%3Ehi%2C%3C%2FP%3E%3CP%3EI'm%20trying%20to%20build%20a%20table%20with%20dates%20in%20column%20C%20and%20values%20(money)%20in%20column%20D.%3C%2FP%3E%3CP%3EI%20want%20to%20count%20the%20sum%20of%20the%20values%20in%20column%20D%20it%20the%20date%20in%20the%20same%20row%20in%20column%20C%20is%20smaller%20then%20the%20present%20date.%3C%2FP%3E%3CP%3EThe%20formula%20I%20made%20looks%20like%20this%3A%3C%2FP%3E%3CP%3E%3Dsum.if(c2%3Ac9%3B%26lt%3B%22now()%22%3BD2%3Ad9).%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20the%20total%20sum%20does%20not%20show%20up.%20It%20stays%20zero.%3C%2FP%3E%3CP%3EActually%20I%20am%20using%20the%20Dutch%20equivalent%20of%20this%20formula%2C%20but%20that%20should%20not%20make%20a%20difference%2C%20I%20think.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20compare%20dates%20in%20the%20sum.if-formula%2C%20or%20am%20I%20doing%20something%20wrong%3F%3C%2FP%3E%3CP%3EI%20hope%20someone%20can%20help%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELex%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-401339%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-401397%22%20slang%3D%22en-US%22%3ERe%3A%20Sum.if%20with%20dates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-401397%22%20slang%3D%22en-US%22%3EThank%20you%20very%20much.%20It%20works%20fine.%3CBR%20%2F%3EIn%20Dutch%20TODAY()%20is%20VANDAAG()%20%3A)%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-401343%22%20slang%3D%22en-US%22%3ERe%3A%20Sum.if%20with%20dates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-401343%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F315405%22%20target%3D%22_blank%22%3E%40Lex_Albers%3C%2FA%3E%26nbsp%3B%2C%20it's%20like%3C%2FP%3E%0A%3CPRE%3E%3Dsum.if(c2%3Ac9%3B%22%26lt%3B%22%20%26amp%3B%20TODAY()%3BD2%3Ad9)%3C%2FPRE%3E%0A%3CP%3EBetter%20to%20use%20TODAY()%20(if%20the%20function%20has%20the%20same%20name%20in%20your%20locale)%2C%20it%20returns%20date%20only.%20NOW()%20returns%20date%20and%20time.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Lex_Albers
New Contributor

hi,

I'm trying to build a table with dates in column C and values (money) in column D.

I want to count the sum of the values in column D it the date in the same row in column C is smaller then the present date.

The formula I made looks like this:

=sum.if(c2:c9;<"now()";D2:d9). 

But the total sum does not show up. It stays zero.

Actually I am using the Dutch equivalent of this formula, but that should not make a difference, I think.

 

Is it possible to compare dates in the sum.if-formula, or am I doing something wrong?

I hope someone can help me.

 

Lex

2 Replies
Solution

@Lex_Albers , it's like

=sum.if(c2:c9;"<" & TODAY();D2:d9)

Better to use TODAY() (if the function has the same name in your locale), it returns date only. NOW() returns date and time.

 

Thank you very much. It works fine.
In Dutch TODAY() is VANDAAG() :)

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies