+ Reply to Thread
Results 1 to 13 of 13

Count The Number of days

  1. #1
    Registered User
    Join Date
    08-19-2010
    Location
    Kerala, India
    MS-Off Ver
    Excel 2003
    Posts
    41

    Count The Number of days

    I have two queries to post both are related

    I have a coulum D where i put the dates, and in the next coulmn E I put this formula "=MONTH(D2)" and drag it till the end, it gives me the moth of that date for eg if i put 01/09/2010 in coulumn E2, D2 will give me the value ' 9 '. I want that to show up as September. Is that possible????????

    second question is i have dates going down in column E, one date is repeated around 15 to 16 times and it might vary, so i want a formula to count the number of days., I might come up with a few more questions after i get the results for this

    Thanking you in adavnce

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Count The Number of days

    Just enter the actual date & format as "mmmm"

    Not sure how a date can be repeated but vary
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Count The Number of days

    a) Instead of =MONTH(D2) you can write =D2 and format cell as mmmm

    b) post some example what you trying to to and how your output should look like

  4. #4
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Count The Number of days

    Have you tried the EDATE function? sorry - i didnt see the posts above, if i saw the responses i would not have replied. these guys know much more than me!
    Last edited by Blake 7; 10-11-2010 at 06:08 AM. Reason: amend post

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Count The Number of days

    Everybody can contribute

  6. #6
    Registered User
    Join Date
    08-19-2010
    Location
    Kerala, India
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Count The Number of days

    The first question is cleared now the second part I have the same dates repeating likei will show you example
    01/09/2010
    01/09/2010
    01/09/2010
    01/09/2010
    02/09/2010
    02/09/2010
    02/09/2010
    02/09/2010
    03/09/2010
    03/09/2010
    03/09/2010
    03/09/2010 Here i have just added 4 times,but in the real time it will be more than that,so at any point of time when i generate the report i want to know the Number of days in this report,In the example, it is for 3 days from 1st to 3rd. I hope I have explained correctly

  7. #7
    Forum Contributor
    Join Date
    05-27-2008
    Location
    Newcastle Upon Tyne UK
    MS-Off Ver
    XP Excel 2003
    Posts
    105

    Re: Count The Number of days

    =(max(dates)-min(dates))+1

    + 1 gives an inclusive figure

    edvwvw

  8. #8
    Registered User
    Join Date
    08-19-2010
    Location
    Kerala, India
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Count The Number of days

    I am having the dates on Sheet two, column D and i want the number of days in Sheet 1, Is that possible???

  9. #9
    Forum Contributor
    Join Date
    05-27-2008
    Location
    Newcastle Upon Tyne UK
    MS-Off Ver
    XP Excel 2003
    Posts
    105

    Re: Count The Number of days

    =(MAX(Sheet2!D2:D26)-MIN(Sheet2!D2:D26))+1

    the dates in column D sheet 2

    format the result cell as number

    edvwvw

  10. #10
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Count The Number of days

    Specify the sheet in the formula

    =MAX(Sheet2!A1:A12)-MIN(Sheet2!A1:A12)+1

  11. #11
    Registered User
    Join Date
    08-19-2010
    Location
    Kerala, India
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Count The Number of days

    There is a problem there, I have the data pasted on to sheet two on a dialy basis, so there will be dates from last month and this month, I am trying to find out the number of days for a pirticular month, not from the last month and i think it also counts the week ends, even if the date is not mentioned on the sheet 2

  12. #12
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Count The Number of days

    I think a pivotTable would be best. You could create a Dynamic Named Range for the data, or depending on your Excek version format the data as a List or Table

  13. #13
    Forum Contributor
    Join Date
    05-27-2008
    Location
    Newcastle Upon Tyne UK
    MS-Off Ver
    XP Excel 2003
    Posts
    105

    Re: Count The Number of days

    wish2excel

    It is important that you state your request precisely - if you constantly "move the goal posts" the people on here who volunteer their time will be reluctant to help.

    It is possible to achieve the work days and also by month totals but I haven't got time to assist you at the moment

    edvwvw

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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