+ Reply to Thread
Results 1 to 9 of 9

Formula calculate the amount of late bookings

Hybrid View

  1. #1
    Registered User
    Join Date
    09-30-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    19

    Formula calculate the amount of late bookings

    Hi

    I am trying to come up with a formula where:

    A booking made for a journey which needs to be completed on the same date or is made the day before but AFTER 13:00hrs will display in a set field as NO. If the booking had been made before 13:00hrs the day before the booking then the cell would display YES.

    We have journey dates in a column and also booked date of journey. What i am looking to achive is that if a booking is made the date before the date of the journey but has been made before the hours of 13:00hrs this will show yes and for after 13:00hrs would show no. Im looking to calculate the amount of late bookings we recieve.

    Hope you can help
    Last edited by pike; 09-30-2010 at 06:56 AM. Reason: edit title for newbie

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Formula Help

    Hi Massy1983
    Welcome to the forum
    Please take a few minutes to read the forum rules, and then amend your thread title accordingly
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    09-30-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Formula Help

    Thanks Pike for the fast response.

    I have heard VBA is quite complexed. Do you think i woould need to go doen this line or would a formula be good enough?

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula calculate the amount of late bookings

    Presumably the Journey Dates are just Dates whereas the Booking values are DateTime values, correct ?

    One method might be:

    =IF(A2>=B2-"11:00","NO","YES")
    where B2 holds Journey Date and A2 holds Booking DateTime

  5. #5
    Registered User
    Join Date
    09-30-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Formula calculate the amount of late bookings

    Hi Donkeyote

    many thanks for the reply
    A2 will hold date and time booking made
    B2 will just hold journey date

    so any bookings made for a journey on the same day or day before (but afrter the hours of 13:00) will display No or Late booking.

    All bookings made 13:00hrs or before on the day before or sooner will display yes or non late booking

    what do you think the formula will be for this?

    Many thanks

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula calculate the amount of late bookings

    Quote Originally Posted by Massy1983
    what do you think the formula will be for this?
    the one posted previously

  7. #7
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Formula calculate the amount of late bookings

    Hi Massy1983,
    I've changed your title, please revise the forum rules so you can comply in the future.
    In the forum rules you can also read about how best to have your questions answered.
    Attaching workbook would be help full in understanding your request

  8. #8
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Formula calculate the amount of late bookings

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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