Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Returning a zero if there is no month given

Hello,

I have a simple equation to just return a value for the month that a payment
was received.

=month(a1)

at the moment, where there is no date in a column, i seem to be still
getting a value of 1. What i need to do is to return a value of 0 if there is
no date of payment.

Thanks very much
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Returning a zero if there is no month given

=if(a1="",0,month(a1))
is one way

=if(isnumber(a1),month(a1),0)
is another.



spudsnruf wrote:

Hello,

I have a simple equation to just return a value for the month that a payment
was received.

=month(a1)

at the moment, where there is no date in a column, i seem to be still
getting a value of 1. What i need to do is to return a value of 0 if there is
no date of payment.

Thanks very much


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Returning a zero if there is no month given



"Dave Peterson" wrote:

=if(a1="",0,month(a1))
is one way

=if(isnumber(a1),month(a1),0)
is another.



spudsnruf wrote:

Hello,

I have a simple equation to just return a value for the month that a payment
was received.

=month(a1)

at the moment, where there is no date in a column, i seem to be still
getting a value of 1. What i need to do is to return a value of 0 if there is
no date of payment.

Thanks very much


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Returning a zero if there is no month given

Perfect. Thank you very much.

"Dave Peterson" wrote:

=if(a1="",0,month(a1))
is one way

=if(isnumber(a1),month(a1),0)
is another.



spudsnruf wrote:

Hello,

I have a simple equation to just return a value for the month that a payment
was received.

=month(a1)

at the moment, where there is no date in a column, i seem to be still
getting a value of 1. What i need to do is to return a value of 0 if there is
no date of payment.

Thanks very much


--

Dave Peterson

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
returning value if month is January jermsalerms Excel Worksheet Functions 6 August 18th 06 07:47 PM
Workaround for returning month name? Marty Excel Worksheet Functions 4 February 14th 05 10:07 PM
Returning the Week Number of a Specific Date on a Month arjcvg Excel Worksheet Functions 0 November 5th 04 01:21 AM
Returning the Week Number of a Specific Date on a Month arjcvg Excel Worksheet Functions 1 November 3rd 04 04:35 AM
Returning the Week Number of a Specific Date on a Month arjcvg Excel Worksheet Functions 0 November 3rd 04 04:26 AM


All times are GMT +1. The time now is 07:40 AM.

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"