+ Reply to Thread
Results 1 to 12 of 12

Calculate a total holiday price based upon different nightly room rates

  1. #1
    Registered User
    Join Date
    09-15-2011
    Location
    Hautefort, France
    MS-Off Ver
    Excel 2007
    Posts
    59

    Calculate a total holiday price based upon different nightly room rates

    Hello

    I really need some help here with Excel 2000 and hope someone can help.

    I've created a worksheet of rooms (shown in columns) and nightly prices (shown in rows) per the attached copy of my worksheet.

    I would like to create a facility where I can enter an arrival date (e.g. 04/04/12) in cell A20 and a departure date (e.g. 09/04/12) in cell A21 and, for each column, (or room) it shows the total price (e.g. 249 for column D, 264 for column F and so on and so on).

    Any ideas ?

    Thanks
    Attached Files Attached Files
    Last edited by bellevue; 09-18-2011 at 04:37 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Calculate a total holiday price based upon different nightly room rates

    Welcome to the forum.

    This is an Excel help forum, so please attach Excel spreadsheets if you need help with them. This way we do not to recreate from scratch.

    Thanks.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-15-2011
    Location
    Hautefort, France
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: Calculate a total holiday price based upon different nightly room rates

    Oops Sorry !

    OK then, I'll start again, I really need some help here with Excel 2000 and hope someone can help.

    I've created a worksheet of rooms (shown in columns) and nightly prices (shown in rows) per the attached copy of my worksheet.

    I would like to create a facility where I can enter an arrival date (e.g. 04/04/12) in cell A20 and a departure date (e.g. 09/04/12) in cell A21 and, for each column, (or room) it shows the total price (e.g. 249 for column D, 264 for column F and so on and so on).

    Any ideas ?

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Calculate a total holiday price based upon different nightly room rates

    The sample is not consistent with the pdf....

    For this sample the input dates seem to be in D13 and D14.

    Then the formula would be:

    =SUMIFS(D$16:D$449,$A$16:$A$449,">="&D13,$A$16:$A$449,"<="&D14)

    copied across.

    adjust ranges for your real sheet.

  5. #5
    Registered User
    Join Date
    09-15-2011
    Location
    Hautefort, France
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: Calculate a total holiday price based upon different nightly room rates

    Thanks for the reply, you're quite right, the excel spreadsheet I attached isn't consistent with the PDF (I had to remove some data from the one seen in PDF) and the actual spreadsheet attached is an example.

    I've entered the formula you suggest into cell D13, and entered arrival and departure dates into cells A13 and A14 but it tells me it's a circular reference and there's no total price shown ?

    Thanks

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Calculate a total holiday price based upon different nightly room rates

    Try

    =SUMIFS(D$16:D$449,$A$16:$A$449,">="&A13,$A$16:$A$449,"<="&A14)

  7. #7
    Registered User
    Join Date
    09-15-2011
    Location
    Hautefort, France
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: Calculate a total holiday price based upon different nightly room rates

    Thanks but it's now returning a "#NAME?" error message.

  8. #8
    Registered User
    Join Date
    09-15-2011
    Location
    Hautefort, France
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: Calculate a total holiday price based upon different nightly room rates

    Ihed the spreadhseet with the formula entered into those cells so you can see what I mean.
    Attached Files Attached Files

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Calculate a total holiday price based upon different nightly room rates

    Sorry, I assumed you had version 2007, you have 2000 so SUMIFS won't work.

    Try instead

    =SUMPRODUCT(D$16:D$449,--($A$16:$A$449>=A13),--($A$16:$A$449<=A14))

    make sure your dates in A13 and A14 are entered as actual dates.

  10. #10
    Registered User
    Join Date
    09-15-2011
    Location
    Hautefort, France
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: Calculate a total holiday price based upon different nightly room rates

    That's brilliant thank you, I've had to change the formula slightly to...

    =SUMPRODUCT(D$16:D$449,--($A$16:$A$449>=A13),--($A$16:$A$449<A14))

    ...as for an arrival on (for example) 04/04/12 and a departure on 09/04/12 it totals the prices for 6 nights as opposed to 5 nights which it should be; have I got the formula change correct please ?

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Calculate a total holiday price based upon different nightly room rates

    I get 249.6 which is April 4 to April 8th inclusive. It checks out fine to me.

  12. #12
    Registered User
    Join Date
    09-15-2011
    Location
    Hautefort, France
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: Calculate a total holiday price based upon different nightly room rates

    Thank you so much, that's brilliant and you've been really helpful and I'll mark it as solved and click to show my appreciation.

+ 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