+ Reply to Thread
Results 1 to 11 of 11

Reflect Month Name when Column A Date is the Same Day & Month

  1. #1
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Reflect Month Name when Column A Date is the Same Day & Month

    Dear friends,
    Please correct this formula to get correct output.

    =IF(P9=TODAY(),IF(P9<>"",CHOOSE(MONTH(P9),"January","February","March","April","May","June","July","August","September","October","November","December"),""))

    It's working fine if the year is 2014 but not if the year is different.

    Conditions:

    If the date is today then only the month should display else blank.
    The year should be ignore.
    For example:

    08/01/2000: January
    01/01/2000: blank cell
    08/01/2014: January
    01/01/2014: blank cell
    The date is in column 'p' in dd mm yyyy format. In short if the date is current date that is for today '8' then only the month should be display in the output.

    Please suggest me a correction to get correct output.

    Thank you.

    Regards,

    Mukesh
    Last edited by mukeshbaviskar; 01-09-2014 at 10:21 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Formula correction

    hi Mukesh. try:
    =IF(DATE(YEAR(TODAY()),MONTH(P9),DAY(P9))=TODAY(),TEXT(P9,"mmmm"),"")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Formula correction

    =IF(AND(DAY(P9)=DAY(TODAY()),MONTH(TODAY())=MONTH(P9)),TEXT(P9,"mmmm"),"")
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,372

    Re: Formula correction

    =IF(NOT(A18=TODAY()),"",(CHOOSE(MONTH(A18),"Jan","Feb","March","Apr","May","Jun","Jul","August","Sept";,"Oct","Nov","Dec")))

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Formula correction

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Formula problem

    Dear Fdibbinson,
    I have changed the title of post as per your instruction.

    Thank you.

    Sincerely,

    Mukesh

  7. #7
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: Formula correction

    Hi benishiryo,
    Excellent! It is working fine. It creates a list of today's birthdays only. It's as per my requirement but if I want a list of the birthdays in that particular month then what will be the formula?

    The output of this formla is today's birthday so I want the remark 'Today' instead of the month. Is it possible?

    Thank you for solution.

    sincerely,

    Mukesh

  8. #8
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: Formula correction

    Hi RobertMika,
    Thank you for suggestion. It's working fine.

    Thank you.

    Sincerely,

    Mukesh

  9. #9
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Reflect Month Name when Column A Date is the Same Day & Month

    try:
    =IF(P9=TODAY(),"Today",IF(MONTH(P9)=MONTH(TODAY()),TEXT(P9,"mmmm"),""))

  10. #10
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Reflect Month Name when Column A Date is the Same Day & Month

    You are welcome.

  11. #11
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: Reflect Month Name when Column A Date is the Same Day & Month

    Hi all,
    Thank you for solving my problem. Now my problem is solved.

    Thank you.

    Sincerely,

    Mukesh

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] IF formula correction
    By mra1984 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-06-2013, 12:36 PM
  2. correction of formula please............
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  3. correction of formula please............
    By azmi in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1