+ Reply to Thread
Results 1 to 6 of 6

which formula to use?

  1. #1
    Registered User
    Join Date
    02-18-2007
    Posts
    2

    which formula to use?

    I have created a spreadsheet for the turnaround time of stat radiographs. In one column I type the time the exam was sent to be read, then in the next column I type the time the results were recieved. In the third column I have used a formula to tell me how long in hours and minutes it took to get the results. Now I need to make a chart using those numbers in the third column. Instead of me counting the results, I would like to generate a chart that tells me how many exams came back in 0:00-0:30mins, how many in 0:31-1:00, how many in 1:01-1:30, and so forth, (using 30 minute intervals). I can not seem to figure out what to use to generate this. I was trying to generate it in a new spreadsheet then create a chart from that, but if someone knowd an easier way, or anyway, that would be great.

    Thank you,
    Meg

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Does this help

    VBA Noob
    Attached Files Attached Files
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    02-18-2007
    Posts
    2

    thank you

    That is very helpful and exactly what I was trying to do. How did you set up the interval & no. box?

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Using Sumproduct

    Less than 30 mins
    =SUMPRODUCT(--($C$2:$C$8<=TIME(0,30,0)))

    Greater than 30 mins and less than a hour
    =SUMPRODUCT(--($C$2:$C$8<=TIME(1,0,0))*($C$2:$C$8>TIME(0,30,0)))

    etc

    More on sumproduct here

    http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    more on time here

    http://www.cpearson.com/excel/datearith.htm#AddingTimes

    HTH

    VBA Noob

  5. #5
    Registered User
    Join Date
    02-14-2007
    Posts
    28

    additional question on sumproduct

    Hi VBA, in your formula above, what purpose is served by the -- immediately following your open paren?

    I'm still trying to get a handle on how to use the sumproduct function,

    thanks

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Explained on link

    VBA Noob

+ 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