Index-match or lookup, or? extract multiple data from array

NaverNiels

New Member
Joined
Apr 16, 2023
Messages
3
Office Version
  1. 365
Platform
  1. MacOS
Hi there,

I am trying to automate a meeting planner.
I have meetings down the rows, employee participants and time of meetings along the columns and market with "x" in the cells.

I would now like excel to automatically populate a new "calendar overview"-table with the times down the rows and each employee along the columns, and the have excel (based on the "x"'es in above table) to populate "free", "booked" or "conflict" under each person for each time.
See attached picture.

I have tried various forms of index match, lookup, if, countifs, etc. but nothing has worked.. I am sure someone can do the magic.
 

Attachments

  • Screenshot_test.png
    Screenshot_test.png
    170.7 KB · Views: 27

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Based on the description provided, you can achieve this using a combination of COUNTIFS and IF formulas. Here's how you can create the "calendar overview" table:

  1. Create a new table with times down the rows and employee names along the columns.
  2. In the first cell of the new table (under the first employee and next to the first time), enter the following formula:

=IF(COUNTIFS(Sheet1!$B$2:$B$10, ">=" & $A2, Sheet1!$C$2:$C$10, "<=" & $A2, Sheet1!$D$2:$G$10, "x") = 0, "free", IF(COUNTIFS(Sheet1!$B$2:$B$10, ">=" & $A2, Sheet1!$C$2:$C$10, "<=" & $A2, Sheet1!$D$2:$G$10, "x") = 1, "booked", "conflict"))

Replace Sheet1 with the name of your sheet that contains the meeting information. Adjust the ranges $B$2:$B$10 and $C$2:$C$10 to match your meeting time ranges, and $D$2:$G$10 to match your employee columns.

  1. Drag this formula across the employee columns and down the time rows in the new table.
This formula checks the number of "x" marks for each employee at each time in the original table. If there are no "x" marks, it returns "free." If there is one "x" mark, it returns "booked." If there are more than one "x" marks, it returns "conflict."

Please ensure that your meeting times are formatted consistently across both tables for the formulas to work correctly.
 
Upvote 0

Forum statistics

Threads
1,223,883
Messages
6,175,167
Members
452,615
Latest member
bogeys2birdies

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