+ Reply to Thread
Results 1 to 8 of 8

Appointment Times to be grouped

  1. #1
    Forum Contributor
    Join Date
    01-25-2005
    Location
    Cardiff, Wales
    MS-Off Ver
    Mac 365 & M/S 365
    Posts
    107

    Unhappy Appointment Times to be grouped

    Hi All

    Can someone please help, I have a list of client appointments that I'm required to group (see below),

    ( 01.00Hrs – 07.00 Hrs) ( 07.00Hrs – 12.00hrs)(12.00hrs – 17.00Hrs)( 17.00hrs- 1.00Hrs )

    I have adapted one of my other formulas to capture this and sort, however I keep getting an error, the formula is;

    =IF(D2<>"",IF(AND(D2>=01:01:00,D2<=07:00:00),"01:01-07:00",IF(AND(D2>=07:01:00,D2<=12:00:00),"07:01-12:00",IF(AND(D2>=12:01:00,D2<=17:00:00),"12:01-17:00",IF(AND(D2>=17:01:00,D2<=01:00:00),"17:01-01:00")))),"")

    Your help is very much appreciated.

    Clash
    Last edited by Clash; 02-22-2013 at 06:57 AM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Appointment Times to be grouped

    Hi Clash,

    Please post a sample workbook.. thanks.



    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Appointment Times to be grouped

    Hi Clash,

    Please post a sample workbook.. thanks.



    Regards,
    DILIPandey
    <click on below * if this helps>

  4. #4
    Forum Contributor
    Join Date
    01-25-2005
    Location
    Cardiff, Wales
    MS-Off Ver
    Mac 365 & M/S 365
    Posts
    107

    Re: Appointment Times to be grouped

    Sorry, unable to upload table, so please accept below

    Date of Appt Time of Appt Time of Test Groups Surname First name

    01 Apr 2012 01:35:00 Formula sits here Edwards R
    01 Apr 2012 04:51:00 Charles G
    01 Apr 2012 05:35:00 Smith T
    01 Apr 2012 07:51:00 Jones A
    01 Apr 2012 08:29:00 Richardson J

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Appointment Times to be grouped

    We need to include following as a column :-
    ( 01.00Hrs – 07.00 Hrs) ( 07.00Hrs – 12.00hrs)(12.00hrs – 17.00Hrs)( 17.00hrs- 1.00Hrs )
    and then using formulas we can obtain Groupings.. let me know if this suits you.



    Regards,
    DILIPandey
    <click on below * if this helps>

  6. #6
    Forum Contributor
    Join Date
    01-25-2005
    Location
    Cardiff, Wales
    MS-Off Ver
    Mac 365 & M/S 365
    Posts
    107

    Re: Appointment Times to be grouped

    Hi all,

    sorry for the delay in getting back, I've done as suggested and I'm still getting the same error.

    I've changed the quotations to cell references and still nothing, any help would be very much appreciated.

    Clash

    I've also attached the spreasdsheet.
    Attached Files Attached Files

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Appointment Times to be grouped

    Hi Clash,

    You are typing formula reference in D2 by sitting in D2 only.. that wont work.. also for time, it would be better for you to type them some where in cell and then use those reference in your formula rather than typing them manually.


    Regards,
    DILIPandey
    <click on below * if this helps>

  8. #8
    Forum Contributor
    Join Date
    01-25-2005
    Location
    Cardiff, Wales
    MS-Off Ver
    Mac 365 & M/S 365
    Posts
    107

    Re: Appointment Times to be grouped

    Hi again,

    I've done as i've shown and still I'm still getting the error, thanks for you help anyway, but I think I'll have to call it a day on this.

    Many thanks again.

    PS. I've solved using a range and linking to that, once again thanks for looking.
    Last edited by Clash; 02-22-2013 at 06:56 AM. Reason: Solved

+ 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