+ Reply to Thread
Results 1 to 10 of 10

Transfer dates to "calendar"

  1. #1
    Registered User
    Join Date
    10-24-2011
    Location
    Playa del Carmen, Mexico
    MS-Off Ver
    Excel 2003
    Posts
    33

    Transfer dates to "calendar"

    Hello everybody.

    I'm new to the forums and I appreciate any imput.

    I work in a travel agency, the way we keep track of how many people come and go is with a spreadsheet in which we have the client's number, arrival date, departure date, name etc. We manage around 4,000 people each year. What I want to do is find a way to transfer the duration of their trips to a calendar. I'm attaching pictures of both our main lista and the calendar I was thinking about.

    Is there a formula or macro that can take those date values and transfer them to the other spread sheet? Or is there any other way in which I can know at any given time, how many people we have in house?

    Thanks

    Tunk
    Attached Images Attached Images
    Last edited by Tunk Ayauit; 11-04-2011 at 11:53 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Transfer dates to "calendar"

    Conditional Formatting. Pictures aren't much help with spreadsheet problems though
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Transfer dates to "calendar"

    This file shows you that it's possible.

    I left the "calendar" on the same sheet, just put it in columns AA:FB.
    It could be easily moved to another sheet.

    You would need to hide columns AA:AF. They are used to sort the guests by arrival date. If you could guarantee that the "In" column would always be sorted by "In" date then column AA could be deleted.

    If you don't understand how to move the formulas to your workbook, let me know.

    Notes:
    If you try to use my workbook:
    1) you would want to hide columns AA:AF
    2) my workbook only has 3 conditional formats so I could only put 3 colors on the "calendar". If you have more then you can add them.
    3) I did not try to figure out how to get "October 2011", "November 2011", etc to include the correct columns. I figure that you can do that manually each month. If you need it automated, I can probably do it.
    4) Copy AA76:FB76 down as many rows as you want (all the way to the bottom if you want). It shouldn't matter if there is nothing in columns A:Z for any rows with the formulas in them.
    5) It will automatically adjust the "calendar" as people depart.
    Attached Files Attached Files
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  4. #4
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Transfer dates to "calendar"

    I just reread your message, and notice that you wanted to count how many people are in house.
    To do that I would insert a column (say column "Z") with the formula in Z2: "=And($B2<=Today(),$B3>=Today())" then in some cell somewhere "=Countif($Z:$Z,TRUE)".
    If desired, with a little work, you could put the # of people in house for every column in the "calendar" and see how the # changes from day to day.

  5. #5
    Registered User
    Join Date
    10-24-2011
    Location
    Playa del Carmen, Mexico
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Transfer dates to "calendar"

    Sorry I hadn't answered earlier. We had a hurrican scare, Hurricane Rina, last week and needless to say, I had a whole bunch of turists to get out safely.

    Thanks Foxguy for the file and the formulae. I think that the easies method will be with the later one. Not that I didnīt like the calendar, it's just easier the other way. One question though, I copied the second formula next to the first one (Z3) and then copied the whole thing down a few rows. and in all the cells 16 came up, regardless of the given date. I know I'm doing something wrong, any thoughts?

    Thanks again

    Tunk

  6. #6
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Transfer dates to "calendar"

    I assume that the 2nd formula is "=Countif($Z:$Z,True)". It will always be the same #.
    It's the 1st formula that determines what day it's counting. The formula I gave you only counts for "Today()". You could replace the "Today()" with "$Z$1" and type a date into $Z$1 and it would tell you how many on that date.

  7. #7
    Registered User
    Join Date
    10-24-2011
    Location
    Playa del Carmen, Mexico
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Transfer dates to "calendar"

    This is what i did.... Not sure what though, hehe.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Transfer dates to "calendar"

    What did you expect to happen. It looks right to me.

  9. #9
    Registered User
    Join Date
    10-24-2011
    Location
    Playa del Carmen, Mexico
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Transfer dates to "calendar"

    Obviously my bad, for some reason I thought that with the second formula the ammount of pax would be accounted. But with the true and false is more than enough, now I can just filter it. Thanks a bunch fox guy.

  10. #10
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Transfer dates to "calendar"

    Don't forget to mark the thread "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