ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Syntax for "Not Blank" (https://www.excelbanter.com/excel-discussion-misc-queries/232129-syntax-not-blank.html)

KKD

Syntax for "Not Blank"
 
I am trying to write a formula that only sums the values from the amount
column if there is a date in the date column...what is the syntax for this?
My formula is a SUMIF:

=sumif(N:N,0,(H:H))

Excel does not accept the 0, how should this be written to say "when this
cell is not blank"?
--
KKD

Jarek Kujawa[_2_]

Syntax for "Not Blank"
 
try:

=sumif(N:N,"0")
for 0

or

=sumif(N:N,"<""")
for not blanks

pls click YES if this helped




On 27 Maj, 23:05, KKD wrote:
I am trying to write a formula that only sums the values from the amount
column if there is a date in the date column...what is the syntax for this?
My formula is a SUMIF:

=sumif(N:N,0,(H:H))

Excel does not accept the *0, how should this be written to say "when this
cell is not blank"?
--
KKD



Dave Peterson

Syntax for "Not Blank"
 
=SUMIF(N:N,"<",H:H)

KKD wrote:

I am trying to write a formula that only sums the values from the amount
column if there is a date in the date column...what is the syntax for this?
My formula is a SUMIF:

=sumif(N:N,0,(H:H))

Excel does not accept the 0, how should this be written to say "when this
cell is not blank"?
--
KKD


--

Dave Peterson


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

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