Meeting room data

jappi

New Member
Joined
Sep 7, 2006
Messages
26
Office Version
  1. 365
Platform
  1. MacOS
Hi - hoping someone may be able to help please. This is way beyond my level of knowledge:

I have one set of data from a meeting room booking system (booked data) in one tab and another set of data from sensors in the meeting room (actual data) in another tab. I want to compare / match various elements of the 2 sets of data to determine if the booked meeting actually took place.

Sample of booked data:

Booking Date Room Event Start Event End
2/3/18 Room 10.1 8:30 am 9:30 am


Sample of actual data:

Time Room In Use
2018-03-02 08:00:00 +1000 AEST Room 10.1 0

Other things to know:
- There will be multiple rooms so I also need to match the room names across each data set.
- The booked data will only ever have one row for a meeting for that given room and start / end time
- The actual data can have many rows of data that has a time that falls within between the Event Start and Event end times from the booked data. This is because the sensors are sending data back every 2 minutes for each seat in the room. For example, if we had 4 seats in Room 10.1, each with a sensor and a 60min meeting, we would have 120 lines of data that may have a time stamp that falls between the meeting start / end time from the booked data.
- The "In Use" element on the actual data is either 0 (seat not in use) or 1 (seat in use). If we have a 1 on any of the lines of actual data that fall within the booked window, then by definition the meeting took place because at least 1 seat was occupied.
- The date / time formats shown above is as it is in Excel

So - in my dumb speak the logic would be something like:

Where actual room name = booked room name and;
actual date = booked date and;
actual time is => event start and =< event end and;
actual in use is = 1 then;
mark row of booking data with "meeting happened" else;
mark row of booking data with "meeting did not happen"

Hope this makes sense and thanks in advance for any help.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi jappi,

It will be easier for us to help you if you can post some sample data or how you would like the output to be.
 
Upvote 0
Hi Jappi,

I used helper columns on “Actual Data Sample” to convert date output, see if you can use this;


Book1
ABCDE
1TimeRoomIn UseDateTime
22018-03-02 08:00:00 +1000 AESTRoom 10.102/03/20188:00 AM
32018-03-02 08:00:00 +1000 AESTRoom 10.102/03/20188:00 AM
42018-03-02 08:00:00 +1000 AESTRoom 10.102/03/20188:00 AM
52018-03-02 08:00:00 +1000 AESTRoom 10.102/03/20188:00 AM
62018-03-02 08:00:00 +1000 AESTRoom 10.102/03/20188:00 AM
72018-03-02 08:00:00 +1000 AESTRoom 10.102/03/20188:00 AM
82018-03-02 08:00:00 +1000 AESTRoom 10.102/03/20188:00 AM
92018-03-02 08:00:00 +1000 AESTRoom 10.102/03/20188:00 AM
102018-03-02 08:00:00 +1000 AESTRoom 10.102/03/20188:00 AM
112018-03-02 08:00:00 +1000 AESTRoom 10.102/03/20188:00 AM
Actual Data Sample
Cell Formulas
RangeFormula
D2=DATE(LEFT(A2,4),MID(A2,6,2),MID(A2,9,2))
E2=TIME(MID(A2,12,2),MID(A2,15,2),MID(A2,18,2))





Book1
ABCDEFG
1Booking DateRoomEvent StartEvent EndIn useSensor CountsMeetings Occurred
22/03/2018Room 10.18:30 AM9:30 AM18Yes
32/03/2018Room 10.110:00 AM10:45 AM110Yes
42/03/2018Room 10.111:30 AM12:00 PM11Yes
52/03/2018Room 10.11:00 PM2:00 PM13Yes
62/03/2018Room 10.12:30 PM3:30 PM10No
72/03/2018Room 10.13:30 PM4:00 PM10No
82/03/2018Room 10.14:00 PM4:30 PM10No
92/03/2018Room 10.14:30 PM5:30 PM10No
Output Sample
Cell Formulas
RangeFormula
F2=COUNTIFS('Actual Data Sample'!$D$2:$D$145,A2,'Actual Data Sample'!$B$2:$B$145,B2,'Actual Data Sample'!$C$2:$C$145,E2,'Actual Data Sample'!$E$2:$E$145,">="&C2,'Actual Data Sample'!$E$2:$E$145,"<="&D2)
G2=IF(COUNTIFS('Actual Data Sample'!$D$2:$D$145,A2,'Actual Data Sample'!$B$2:$B$145,B2,'Actual Data Sample'!$C$2:$C$145,E2,'Actual Data Sample'!$E$2:$E$145,">="&C2,'Actual Data Sample'!$E$2:$E$145,"<="&D2)>0,"Yes","No")
 
Upvote 0
Thanks so much RasGhul - this is a huge help. Your version of the output sample above also has column E which was not in my version and is now used by your formulas. Can you please advise what formula you have in column E on your output sample?

Thanks again for all your help
 
Upvote 0
Hi Jappi,

The E column is just number 1s entered in that column as that is your part of your sensor criteria. Glad I could help.
 
Upvote 0
If you would prefer not to have column E I could hard wire it into the formula?
 
Upvote 0
ok - I may be misunderstanding. The output sample is based on the original "booked" dataset. This dataset in its original form does not have the 1 and 0 values from the sensors, the "actual" dataset does. So in order to have column E as you have it the the output data, those values have to be derived by formulas from the "actual" dataset.

I don't need to see that column in the output sample but without it the formulas don't work, and as it seems to me, the values in column E are not correct unless they are properly calculated from the "actual" data. I hope that makes sense and thanks for your patience and help!
 
Upvote 0
Yes this formula calculates directly from the Actual data set, if you only want the yes and no output use;

Code:
=IF(COUNTIFS('Actual Data Sample'!$D$2:$D$145,A2,'Actual Data Sample'!$B$2:$B$145,B2,'Actual Data Sample'!$C$2:$C$145,1,'Actual Data Sample'!$E$2:$E$145,">="&C2,'Actual Data Sample'!$E$2:$E$145,"<="&D2)>0,"Yes","No")

*Note you will still need the helper columns to get the Date & Time values for the formula.
 
Upvote 0
Sorry RasGhul - please bear with me and the dumb questions. Im basically getting everything you have done except for one part which I'd like to use......I'm just going back to your first response, specifically the Output sample and your column "E" for "In Use". You only gave me formulas for columns F & G and the "In Use" column was not part of the original Booked data sample which is the basis for the Output sample. Can you please explain which formula you have used for column E on the output sample? I'm just struggling to understand your point above where you say "The E column is just number 1s entered in that column as that is your part of your sensor criteria". If you look at the Output sample and rows 6 down, they have a "In Use" value of 1 which means the room was in use but a sensor count of 0 - this is a conflict....even though column G appears to arrive at the right conclusion.

Thanks for you patience and help.....
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top