+ Reply to Thread
Results 1 to 12 of 12

Looking to create a list of appointments that match a time and date

  1. #1
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Looking to create a list of appointments that match a time and date

    Hi I have a workbook that requires the user to enter data for an appointment calendar.

    I need a formula that will list all the appointmets that are entered for a seleted date and time.

    Please see the attached workbook with an example of what is required.

    Cheers

    JD
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Looking to create a list of appointments that match a time and date

    Put this formula in H4:

    =IF(AND(E4=$B$1,F4=$B$2),MAX(H$3:H3)+1,"")

    and copy down to beyond the bottom of your data (to allow for expansion). Then you can use this formula in A5:

    =IFERROR(INDEX(D:D,MATCH(ROWS($1:1),H:H,0)),"")

    and this one in B5:

    =IFERROR(INDEX(G:G,MATCH(ROWS($1:1),H:H,0)),"")

    then copy both these down as far as you think you might need them. Then just change the entries in B1 and B2 to suit your requirements.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Looking to create a list of appointments that match a time and date

    Great result, I f I want to exstend this so that the result chart displays monday to frday of each week and 10am until 5pm are displayed how would I change the formulas to suit.

    Please see attached sheet for further details.

    Sorry for the update just been asked If a full week can be displayed insted of invidual days.

    Cheers

    JD
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Looking to create a list of appointments that match a time and date

    Hi
    This is for Name
    =IFERROR(INDEX($D$4:$D$8,SMALL(IF(($B$1=$E$4:$E$8)*($B$2=$F$4:$F$8),ROW($E$4:$E$8)-3,""),ROW()-4)),"")

    Requirement
    =IFERROR(INDEX($G$4:$G$8,SMALL(IF(($B$1=$E$4:$E$8)*($B$2=$F$4:$F$8),ROW($E$4:$E$8)-3,""),ROW()-4)),"")

    They both are array. Hit ctrl+shift+enter after pasting
    Appreciate the help? CLICK *

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Looking to create a list of appointments that match a time and date

    @John

    I think you have just posted the same workbook - is it meant to show the extended requirements?

    Pete

  6. #6
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Looking to create a list of appointments that match a time and date

    Sorry attached the wrong workbook here you go.
    Attached Files Attached Files

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Looking to create a list of appointments that match a time and date

    So, will B1 always be a Monday?

    Do you want Monday to Friday going across (like a calendar), and then the times going down, with sufficient rows to accommodate a number of entries for each time (e.g. 5) ?

    Pete

  8. #8
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Looking to create a list of appointments that match a time and date

    Yeah cheers Pete

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Looking to create a list of appointments that match a time and date

    The attached file does what you asked for. I've put comments in blue, but it should be fairly self-explanatory - put your data in the List sheet, then use the Weekly_summary sheet to see the data in the form you requested by putting a date in the yellow cell. You can use the filter in O2 to hide empty rows and thus bunch the data up.

    Hope this helps.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, as I've helped you before, a click on the "star" icon would be appreciated.

    Pete

    By the way, times are rounded to the nearest hour so if you put in 10:15:00 it will be treated as 10:00:00.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Looking to create a list of appointments that match a time and date

    Hi Pete just a quick question, how do I take the nearest hour calc out of the formula as I have half hour slots as well and may extend this to every fifteen minute slots in the future.

    Thanks for all your help it works very well.

    JS

  11. #11
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Looking to create a list of appointments that match a time and date

    It is the MROUND(cell,1/24) function which rounds the times to the nearest hour. This is used in column A of the List sheet and in columns C to L of the summary sheet. It is probably easiest to leave it in and do a Find & Replace (CTRL H) to change the 1/24 parameter (as there are 24 hours in a day) to 1/48 (for half-hour) or 1/96 (for quarter-hour) increments in both sheets.

    Thanks for the rep, by the way.

    Hope this helps.

    Pete

  12. #12
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Looking to create a list of appointments that match a time and date

    Learning all the time mate but its slow progress.

    Cheers

    JD

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Create appointments in Non Default Calendar
    By nobox in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-17-2015, 10:21 PM
  2. Excel macro to create appointments in outlook calandar
    By John Pateman-Gee in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 03-19-2012, 12:00 PM
  3. Create Outlook Appointments from Range
    By bmasella in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-22-2011, 02:06 PM
  4. Automaticly create Appointments from XL
    By zbor in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2009, 03:47 AM

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