#1   Report Post  
Posted to microsoft.public.excel.misc
dpb dpb is offline
external usenet poster
 
Posts: 109
Default Syntax Again...

What's wrong with

=SUMIF(G1:G10,"DATE(2020,2,18)",J1:J10)

Returns 0, no error

=G1DATE(2020,2,18)

in K1 returns TRUE/FALSE depending on the value in G1; the values in
column G are dates, numeric values nonzero in column J

--

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Syntax Again...

Hi,

Am Tue, 6 Oct 2020 19:25:56 -0500 schrieb dpb:

What's wrong with

=SUMIF(G1:G10,"DATE(2020,2,18)",J1:J10)

Returns 0, no error


you must add a function with an ampersand:
=SUMIF(G1:G10,""&DATE(2020,2,18),J1:J10)


Regards
Claus B.
--
Windows10
Office 2016
  #3   Report Post  
Posted to microsoft.public.excel.misc
dpb dpb is offline
external usenet poster
 
Posts: 109
Default Syntax Again...

On 10/7/2020 2:44 AM, Claus Busch wrote:
Hi,

Am Tue, 6 Oct 2020 19:25:56 -0500 schrieb dpb:

What's wrong with

=SUMIF(G1:G10,"DATE(2020,2,18)",J1:J10)

Returns 0, no error


you must add a function with an ampersand:
=SUMIF(G1:G10,""&DATE(2020,2,18),J1:J10)


That documented anywhere, Claus?

Thanks...

--


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Syntax Again...

Hi Duane.

Am Wed, 7 Oct 2020 06:55:32 -0500 schrieb dpb:

That documented anywhere, Claus?


I didn't see it anywhere.

You don't need the ampersand if you insert the date as string:
Use:
=SUMIF(G1:G10,""&DATE(2020,2,18),J1:J10)
or
=SUMIF(G1:G10,"18.02.2020",J1:J10)


Regards
Claus B.
--
Windows10
Office 2016
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why is Access VBA syntax different from Excel syntax? cr113 Excel Programming 2 December 2nd 09 01:42 AM
The NOW() syntax Tom Excel Discussion (Misc queries) 3 January 4th 08 05:10 PM
Syntax [email protected] Excel Programming 2 June 22nd 07 04:13 PM
AND if syntax Janis Excel Programming 3 September 22nd 06 09:51 PM
Need syntax help! FCC[_6_] Excel Programming 6 June 30th 06 10:30 AM


All times are GMT +1. The time now is 07:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"