+ Reply to Thread
Results 1 to 4 of 4

How to pull month from another column and then apply the number of days in that month

  1. #1
    Registered User
    Join Date
    12-14-2008
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    73

    How to pull month from another column and then apply the number of days in that month

    I guess this might be an IF statement formula? I copy data from a state database regularly and dump it into Excel. The date column (Column A) pastes as, for instance, 5/1/2011 or 11/1/2011. (There is one row for each month of data.) I would like to create another column, Column I, that looks at Column H and then divide whatever is in Column H by... whatever is in that same ROW, in Column A, and pull the month, such as "5" and have it recognize it as the month of May and then can it "know" that May has 31 days... and so, at that point I would need to divide by 31*1000.

    How could I do this? Would it be 12 IF statements? I am not an expert in how to compose formulas.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How to pull month from another column and then apply the number of days in that month

    Not sure I follow the whole chain of events you want to accomplish.
    Particularly the dividing part...

    But this will give you the # of days in the month of a given date.
    Say A1 is 5/1/2011

    =DAY(EOMONTH(A1,0))

  3. #3
    Registered User
    Join Date
    12-14-2008
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: How to pull month from another column and then apply the number of days in that month

    Awesome, that makes it simple, lol. I easily made a formula with that.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How to pull month from another column and then apply the number of days in that month

    You're welcome.

+ 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] Determine work days in current month or next month based on day of the month
    By sbrnard in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-29-2014, 05:14 PM
  2. find time left in month.days unit between two dates(in YEAR.MONTH.DAY)
    By xcfeng95 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-21-2014, 12:55 PM
  3. [SOLVED] Lookup month and calculate if specific month value apply
    By D-smoke in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-24-2013, 03:03 AM
  4. [SOLVED] Trying to Pull Data by keyword for each month and use for percentages for each month (Y/N)
    By Shrad013 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 06-20-2013, 11:37 AM
  5. [SOLVED] Trying to Pull Data by keyword for each month and use for percentages for each month (Y/N)
    By Shrad013 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2013, 08:55 AM
  6. Replies: 12
    Last Post: 02-08-2013, 02:26 PM
  7. Replies: 4
    Last Post: 03-19-2012, 08:58 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