+ Reply to Thread
Results 1 to 4 of 4

calculate the number of days in a month through 'Month Name'

  1. #1
    Forum Contributor
    Join Date
    06-09-2014
    Location
    Sweden
    Posts
    311

    calculate the number of days in a month through 'Month Name'

    Hi,

    Need urgent help, i am working on the salary, what i am trying to do is Highlight the Total Days exceed of the Month, the mouth name which i enter manually.

    I am trying this formula in conditional formatting to highlight the Present days if it exceed from the days in month. But the problem is their the below formula works with month number, not with month name.

    Please Login or Register  to view this content.
    i want formula (with mouth name) something like this

    Please Login or Register  to view this content.
    I hope what i am trying to accomplish is possible or their any other way around.

    any kind help and guidance will be appreciated

    Best,

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,175

    Re: calculate the number of days in a month through 'Month Name'

    Try

    =DAY(DATE(2017, MONTH("April" &0)+1, 1) -1)

    Or

    =DAY(DATE(2017, MONTH(A1 &0)+1, 1) -1)

    A1="April" (without quotes)

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: calculate the number of days in a month through 'Month Name'

    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 April 30
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Contributor
    Join Date
    06-09-2014
    Location
    Sweden
    Posts
    311

    Re: calculate the number of days in a month through 'Month Name'

    Bingo, Perfect Works Great

    Thank you soooo much 'JohnTopley' & 'AlKey' i am relly great full to you all Experts

    Best,

    Threat Marked as SOLVED & Reputation Added

+ 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. How to calculate number of days between two dates by month
    By MHayward in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-06-2015, 12:26 PM
  2. Replies: 2
    Last Post: 09-12-2014, 02:21 PM
  3. [SOLVED] Calculate number of days in a month between two dates
    By schlomo87 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-04-2014, 12:32 AM
  4. Calculate the number of working days month wise in a given period using VBA
    By rakesh3235 in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 08-21-2014, 07:00 AM
  5. [SOLVED] How to calculate Year, Month and Day from total number of days?
    By Indra Rai in forum Excel General
    Replies: 4
    Last Post: 06-25-2014, 02:08 PM
  6. Replies: 15
    Last Post: 06-03-2014, 02:08 PM
  7. vba code needed to calculate the number of working days thus far for the month
    By Jim885 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-22-2014, 09:38 PM

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