+ Reply to Thread
Results 1 to 2 of 2

Count days based on 3 dates

  1. #1
    Registered User
    Join Date
    03-27-2012
    Location
    Glasgow
    MS-Off Ver
    Excel 2013
    Posts
    0

    Count days based on 3 dates

    Hi, I am looking to count the value of dates based on certain criteria.

    I have todays date in cell A1. I want to count how many nights stay (Cells I7-9) from Admission date (E7-9) to current date (A1), however it needs to only calculate if there is an admission date (E7-9) and stop calculation if we have a demission date (G7-9). If no admission date, the cell stay blank.

    I have worked out the formula to calculate this and it works if there is a demission date and stays blank if no admission date, however I am not getting a current number of days if there is an admission, but no demission yet.

    The formula I have in is =IF(ISBLANK($E9),"",($A$1-$E9)-($A$1-$G9)) HELP!!!

    TIA
    Angie
    Attached Files Attached Files

  2. #2
    Administrator arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,145
    Hello aange35,

    Welcome to Excelforum. Be a part of large Excel community. Enjoy Learning.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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