• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

name to the cell through formula

sunnyp

Member
I have reservation templets in excel with two sheets sheet 1=Room Reservation Sheet2=Avilability


Room Reservation

A B c d e f g h i i j k

Booking No Guest Name PH Country Date in Date Out roomType room#


1

2

3

Sheet 2(Availability)

Cell E7=(=IF(AND($B8<>"",$C8<>""),1-SUMPRODUCT(('Room Reservation'!$F$2:$F$1000<=E$7)*('Room Reservation'!$G$2:$G$1000>=E$7+1)*('Room Reservation'!$J$2:$J$1000=$B8)*('Room Reservation'!$K$2:$K$1000=$C8)),"")

How do i get the Name to cell E7 in Sheet2 from sheet1 when i enter the name in cellB2.

Please help me.

Here is the screen shot if you wanted to look at the temp lets

http://exceltemplate.net/calendar/hotel-reservations/
 
Hi sunnyp,


Welcome to the Chandoo's forum!! Here is a file i worked out, there is a little change you might notice in formatting but i think it is doing what you supposed it to:


http://dl.dropbox.com/u/60644346/Copy%20of%20Hotel%2520Reservation%2520Daily%2520V1.1.xlsx


Comments/Modification are welcome.


Regards,

Faseeg
 
I guess you mean in E8 not E7? If so, you have a problem, as that cell already contains a formula that drives the colour, so if you change that to the name for that period, you will lose the colour.
 
2010 and 2007 use the same formats...what's the problem that's developing due to version?
 
Hi All,


I have got excel 2007 and the file is working here. It should work on 2010 as well should not it?


Faseeh
 
Name works fine but date are not working through this formula. When i put check in date (suppose)May 13 and check Out date May 14th (This is for one night stay) The cell suppose to show only one night but is is showing both nights as a booked room. Please help.
 
Hi sunnyp,


Sorry for late follow-up. Kindly check the last uploaded file i just modified it according to your requirement.


1. I have been using named ranges to simplify formulas, you need to update them by adjusting the row no. I worked out only 7 rows, now they are adjusted for upto 2000 rows. Once you cross it please update it to lets say 3000.


2. When you say that for 13th May & 14th May, it should show only one date that means I will take 13th as night of 13th and person will check out on 14th so that 14th night is available for reservation. See example on last two rows i worked out.


Regards,

Faseeh
 
Hi sunnyp,


You can update Named Ranges from:

Code:
Formula (Tab) > Name Manager > Select Range > Edit


Regards,

Faseeh
 
https://dl.dropbox.com/u/6663751/test%20Room%20Status.xlsx


Hello.

I worked at the file. Now I wish it was written the Booking Number as well the Guest Name in the corresponding cell of sheet "Rooms Status" when I write the Guest name in the sheet "Reservation"


Thank you
 
Hi, gimatli!


First of all welcome to Chandoo's website Excel forums. Thank you for your joining us and glad to have you here.


As a starting point I'd recommend you to read the green sticky topics at this forums main page. There you'll find general guidelines about how this site and community operates (introducing yourself, posting files, netiquette rules, and so on).


Among them you're prompted to perform searches within this site before posting, because maybe your question had been answered yet.


Feel free to play with different keywords so as to be led thru a wide variety of articles and posts, and if you don't find anything that solves your problem or guides you towards a solution, you'll always be welcome back here. Tell us what you've done, consider uploading a sample file as recommended, and somebody surely will read your post and help you.


And about your post...


When you post at a such an old topic (8 months in this case), it's probable that the OP wouldn't read it, so it'd be better if you start a new topic explain there your question or solution and if you consider it include a link to the previous related post.


If you're gonna follow your comment, it's advisable to start a new topic.


Regards!
 
Hi ,


Can you try this formula in E8 ?


=IFERROR(IF(SUMPRODUCT((E$7>=CheckIn)*(E$7<=CheckOut-1)*(RoomNo=$C8))>1,"Duplicate",INDIRECT("'Reservation'!A"&SUMPRODUCT((E$7>=CheckIn)*(E$7<=CheckOut-1)*(RoomNo=$C8)*ROW(RoomNo)))&" - "&INDIRECT("'Reservation'!B"&SUMPRODUCT((E$7>=CheckIn)*(E$7<=CheckOut-1)*(RoomNo=$C8)*ROW(RoomNo)))),"-")


Copy this across and down.


Let me know if this is not what you want.


Narayan
 
Hello

for SirJB7 thank you for your welcome, I will introduce myself.

for NARAYANK991 Great! it is!


many thanks!
 
Back
Top