Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
s2m
 
Posts: n/a
Default =IF($D6=AprStart,$D6<=AprEnd)

When I use this formula to count 1 or 0 if column D dates fall between the
dates, it shows False or True.

How do I get it to show 1 or 0?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default =IF($D6=AprStart,$D6<=AprEnd)

When you use a Boolean formula (a formula that returns TRUE or FALSE), Excel
returns those values. Their numeric equivalents are 1 and 0, respectively.
BUT...to coerce the conversion from Boolean to Numeric, you need to apply an
arithmetic operator. The generally accepted convention is to use a double
minus sign (--). Knowledgable Excel users immediately recognize the purpose
of -- in a formula.

Try this:
=--IF($D6=AprStart,$D6<=AprEnd)

OR..this works too:
=--OR($D6=AprStart,$D6<=AprEnd)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"s2m" wrote:

When I use this formula to count 1 or 0 if column D dates fall between the
dates, it shows False or True.

How do I get it to show 1 or 0?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
kraljb
 
Posts: n/a
Default =IF($D6=AprStart,$D6<=AprEnd)


Try This...
=IF($D6=AprStart,1,0)


--
kraljb
------------------------------------------------------------------------
kraljb's Profile: http://www.excelforum.com/member.php...fo&userid=9955
View this thread: http://www.excelforum.com/showthread...hreadid=552380

  #4   Report Post  
Posted to microsoft.public.excel.misc
s2m
 
Posts: n/a
Default =IF($D6=AprStart,$D6<=AprEnd)

Great that works!

Thanks



s2m wrote:
When I use this formula to count 1 or 0 if column D dates fall between the
dates, it shows False or True.

How do I get it to show 1 or 0?

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default =IF($D6=AprStart,$D6<=AprEnd)

The second should be AND, OR gives 1 whatever the value.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Ron Coderre" wrote in message
...
When you use a Boolean formula (a formula that returns TRUE or FALSE),

Excel
returns those values. Their numeric equivalents are 1 and 0, respectively.
BUT...to coerce the conversion from Boolean to Numeric, you need to apply

an
arithmetic operator. The generally accepted convention is to use a double
minus sign (--). Knowledgable Excel users immediately recognize the

purpose
of -- in a formula.

Try this:
=--IF($D6=AprStart,$D6<=AprEnd)

OR..this works too:
=--OR($D6=AprStart,$D6<=AprEnd)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"s2m" wrote:

When I use this formula to count 1 or 0 if column D dates fall between

the
dates, it shows False or True.

How do I get it to show 1 or 0?

Thanks





  #6   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default =IF($D6=AprStart,$D6<=AprEnd)

oops! Thanks for catching that, Bob!


***********
Regards,
Ron

XL2002, WinXP


"Bob Phillips" wrote:

The second should be AND, OR gives 1 whatever the value.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Ron Coderre" wrote in message
...
When you use a Boolean formula (a formula that returns TRUE or FALSE),

Excel
returns those values. Their numeric equivalents are 1 and 0, respectively.
BUT...to coerce the conversion from Boolean to Numeric, you need to apply

an
arithmetic operator. The generally accepted convention is to use a double
minus sign (--). Knowledgable Excel users immediately recognize the

purpose
of -- in a formula.

Try this:
=--IF($D6=AprStart,$D6<=AprEnd)

OR..this works too:
=--OR($D6=AprStart,$D6<=AprEnd)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"s2m" wrote:

When I use this formula to count 1 or 0 if column D dates fall between

the
dates, it shows False or True.

How do I get it to show 1 or 0?

Thanks




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



All times are GMT +1. The time now is 04:46 PM.

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

About Us

"It's about Microsoft Excel"