Share via

MONTHIF

Anonymous
2011-02-25T22:06:01+00:00

Can anyone help me, I am wondering if there is a formual that is =MONTHIF, and if there is how this would work.

Many thanks and I look forward tp hearing from you soon.

Chris

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

5 answers

Sort by: Most helpful
  1. Anonymous
    2011-02-28T22:40:32+00:00

    I am trying to return either a Month value for a cell, eg the month number, or a blank cell to allow me to carry out the next calculation without there being a #Value in the cell which is then compremising the next step.

     

    Many thanks and I look forward to hearing from you in the near future.

     

    Chris

    As a general way of avoiding errors you can use the IFERROR() function.

    Something like this maybe:

    =IFERROR(MONTH(A1),"")

    This will return an empty string if the result of the MONTH() function should be an error value like #VALUE!

    Hope this helps / Lars-Åke

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2011-02-28T15:24:36+00:00

    I am trying to return either a Month value for a cell, eg the month number, or a blank cell to allow me to carry out the next calculation without there being a #Value in the cell which is then compremising the next step.

    If you have the information in "Date" format

    =month(c1)

    Would give you the month of the date in C1

    If the information is in "Text" format a lookup table could be created to provide the right month - but you would have to provide the "format" of the text.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2011-02-28T12:50:27+00:00

    I am trying to return either a Month value for a cell, eg the month number, or a blank cell to allow me to carry out the next calculation without there being a #Value in the cell which is then compremising the next step.

    Many thanks and I look forward to hearing from you in the near future.

    Chris

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2011-02-25T22:12:12+00:00

    Not sure what you want to do but

    =if(month(c1)=8,"August","Not August")

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2011-02-25T22:11:18+00:00

    There is no such function, but I'm sure we can create either a formula or a UDF (user defined function) to do what you want once you describe to us how you would like such a function to work. Besides a written description, please include several examples so we get a good idea of the functionality you are after.


    NOTE: Please mark the message or messages (yes, you can mark more than one) that answer your question as the "Answer" so that others will know your question has been resolved.

    Was this answer helpful?

    0 comments No comments