+ Reply to Thread
Results 1 to 6 of 6

Help with dates please - novice alert!

  1. #1
    Registered User
    Join Date
    11-06-2006
    Posts
    3

    Smile Help with dates please - novice alert!

    Hi there
    I am a new user to Excel - I am devising a worksheet to contain details people enquiring about and booking two holiday properties. I want to be able to input an arrival date, and if that date for that property (and not the other property) has already been input in another cell in the same column ('arrival date') then I want an error alert to let me know I am double-booking. Does that make sense? It's important that if the client is booking the same date for the other property, that I am allowed to input it.

    Any suggestions and help gratefully received - and many thanks for even looking (and probably laughing!)

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Nobody is laughing ...
    In addition for a newbie, it is already a tough question ...
    In my opinion, best solution is to use
    Data Validation to avoid duplicate in your column say column B
    Select cells B2:B50
    Choose Data Data Validation
    Choose Allow: Custom
    Formula
    =COUNTIF($B$2:$B$50,B2)<=1

    HTH
    Carim

  3. #3
    Registered User
    Join Date
    11-06-2006
    Posts
    3

    Smile

    Hi again Carim
    Many thanks for that - it does work, but it flags up the error even if the arrival date is for the other holiday property. Is there a way to extend the formula so that it's only a problem if the previous column has the same info too? The previous column has the name of the property in it - either 'OK' or 'OH', and if the property and the date match then the error is flagged up?
    I hope I'm explaining myself articulately! If there isn't a way to do that, then you have still helped a great deal.
    thanks again.

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Well ...
    Let me tell you that for a start ... it's a heck of start ...
    Data validation formula should look like :
    Please Login or Register  to view this content.
    make sure to adjust your ranges, as need be ...
    make sure the validation formula is adjusted in all your range ...
    and let me know if it is working properly ...

    HTH
    Carim

  5. #5
    Registered User
    Join Date
    11-06-2006
    Posts
    3
    Carim - you are a genius!
    I have no idea how that works, but it does. I'm so in awe that I may not be able to take all the credit for that at work...
    Thank you so much for your help!
    Valerie (pinkpopster)

  6. #6
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Valérie,

    I am quite glad you can take all the credit at work ...
    Because you were interested in solving the issue ...(as opposed to those who keep talking without acting...)

    Thanks for the feedback

    Cheers
    Carim

+ 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