I'm still working on my appointments system with bells on and am making good progress.
With the help of some great articles online I've been able to create a range of appointments that once selected from the drop down list disappear so they can't be selected twice
However, I now want to populate the record for that appointment with the first name and surname of the person who the appointment was just booked out to.
The sheet that needs to lookup the firstname and surname is called Appointments. The sheet that has the drop down on is called BH Appointment Booking. I want cell B2 on Appointments to look at the appointment time in the cell B1 next to it and then go to BH Appointment Booking, look at column G, find the row that contains the appointment that matches and then put the first name of the person who booked that appointment (held in column B of that same row) into cell B2 on Appointments. I've tried to code this and have written the following (based on http://www.cpearson.com/excel/TablesAndLookups.aspx):
However, it brings up #REF!. When I try to amend any of the values in the last set of four (-1,0,1,1) it tries to change the first digit (-1) to * and then the number.
I want to also do this for cell B3 on appointments to find the last name of the person.
Can anybody help me understand where I am going wrong? Thanks
With the help of some great articles online I've been able to create a range of appointments that once selected from the drop down list disappear so they can't be selected twice
However, I now want to populate the record for that appointment with the first name and surname of the person who the appointment was just booked out to.
The sheet that needs to lookup the firstname and surname is called Appointments. The sheet that has the drop down on is called BH Appointment Booking. I want cell B2 on Appointments to look at the appointment time in the cell B1 next to it and then go to BH Appointment Booking, look at column G, find the row that contains the appointment that matches and then put the first name of the person who booked that appointment (held in column B of that same row) into cell B2 on Appointments. I've tried to code this and have written the following (based on http://www.cpearson.com/excel/TablesAndLookups.aspx):
Code:
=OFFSET('BH Appointment Booking'!A1:G10,MATCH(Appointments!A2('BH Appointment Booking'!A1:G10,0,1,ROWS('BH Appointment Booking'!A1:G10),1),0)-1,0,1,1)
However, it brings up #REF!. When I try to amend any of the values in the last set of four (-1,0,1,1) it tries to change the first digit (-1) to * and then the number.
I want to also do this for cell B3 on appointments to find the last name of the person.
Can anybody help me understand where I am going wrong? Thanks