+ Reply to Thread
Results 1 to 4 of 4

If formula for waiting times

  1. #1
    Registered User
    Join Date
    06-29-2011
    Location
    sheffield
    MS-Off Ver
    Excel 2003
    Posts
    23

    If formula for waiting times

    Hi there,

    I would like a formula in column L to calculate the waiting time of patients who are on the waiting list (Column H with a 1). There waiting time is todays date - their opt in date (col F). And if they are not on the waiting list then I would like the cell to remain blank.

    Thanks for the help

    Sophy
    Attached Files Attached Files
    Last edited by sophy_1402; 09-02-2011 at 10:19 AM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: If formula for waiting times

    In cell L4 put the formula =IF(H4<>1,"",TODAY()-F4) and copy down.

  3. #3
    Registered User
    Join Date
    04-18-2011
    Location
    Surrey, UK
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: If formula for waiting times

    Hi Soph,

    So youre saying that if column H is a one, you would like column L to be the number of days difference between today and the "opt in date" in column F.

    If this is the case all you need to do is having the following formula in cell L4 and copy it down?

    =IF(H4=1,NOW()-F4,"")

    I.e. If H4 is 1, then subtract the date in F4 from todays date, otherwise make the cell empty.

    Let me know if this helps - if not we can try again!

    Edit: Andrew beat me to it!

    Anyway, just noticed that your column is headed in units of "weeks", so you could adapt the formula by having something like:

    =IF(H4=1,ROUND((NOW()-F4)/7,0),"") to round to the nearest number of weeks (i.e. 10 days is 1 week) or

    =IF(H5=1,ROUNDUP((NOW()-F5)/7,0),"") to round UP to the next number of whole weeks.

    Happy Excelling!


    Kind regards,

    Paul
    Last edited by PaulG2011; 09-02-2011 at 06:27 AM.

  4. #4
    Registered User
    Join Date
    06-29-2011
    Location
    sheffield
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: If formula for waiting times

    Thank you Paul and Andrew!

+ 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