TheSubject
New Member
- Joined
- Feb 16, 2016
- Messages
- 23
Hi! As the name suggests, looking for help dynamically sorting data from a filter formula.
See below attached mini sheet.
Data is just an example, but in this example, column J (3pm) my venue is fullest, but the list provided is in order of when it was entered as per the source list. I need to rearrange dynamically according to the headcount of the booking (column AA) vs the number of seats at each table written in column A in the last number
I don't even know where to start! Google has provided non-dynamic approaches!
Thank you so much!
See below attached mini sheet.
Data is just an example, but in this example, column J (3pm) my venue is fullest, but the list provided is in order of when it was entered as per the source list. I need to rearrange dynamically according to the headcount of the booking (column AA) vs the number of seats at each table written in column A in the last number
I don't even know where to start! Google has provided non-dynamic approaches!
bookings.xlsx | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | |||
1 | |||||||||||||||||||||||||||||||
2 | CAPACITY | Date | 20/04/2021 | ||||||||||||||||||||||||||||
3 | Times | 11:00 | 11:30 | 12:00 | 12:30 | 13:00 | 13:30 | 14:00 | 14:30 | 15:00 | 15:30 | 16:00 | 16:30 | 17:00 | 17:30 | 18:00 | 18:30 | 19:00 | 19:30 | 20:00 | 20:30 | 21:00 | 21:30 | Shortlist | |||||||
4 | T1 - 6 | dave | Empty | Empty | Empty | Empty | Empty | Jane | Empty | Tom | Empty | Empty | Empty | Empty | Empty | David | Empty | Lazarus | Empty | Empty | Empty | Empty | Empty | Name | Headcount | Arrival | Departure | ||||
5 | T2 - 4 | **** | Tom | 6 | 15:00 | 17:00 | |||||||||||||||||||||||||
6 | T3 - 2 | DARREN | **** | 6 | 15:00 | 21:00 | |||||||||||||||||||||||||
7 | T4 - 6 | JAMES | Lazarus | 6 | 19:00 | 21:00 | |||||||||||||||||||||||||
8 | T5 - 4 | Tony | Danny | 6 | 20:00 | 22:00 | |||||||||||||||||||||||||
9 | T6 - 6 | Eliza | Jane | 4 | 14:00 | 18:00 | |||||||||||||||||||||||||
10 | T7 - 6 | Jim | David | 1 | 18:00 | 20:00 | |||||||||||||||||||||||||
11 | T8 - 4 | sarah | DARREN | 1 | 15:00 | 17:00 | |||||||||||||||||||||||||
12 | T9 - 4 | liz | JAMES | 1 | 15:00 | 17:00 | |||||||||||||||||||||||||
13 | T10 - 4 | gerard | Tony | 5 | 15:00 | 17:00 | |||||||||||||||||||||||||
14 | T11 - 4 | hubert | Eliza | 6 | 15:00 | 17:00 | |||||||||||||||||||||||||
15 | T12 - 4 | james | 1 | 15:00 | 17:00 | ||||||||||||||||||||||||||
16 | T13 - 4 | Jim | 6 | 15:00 | 17:00 | ||||||||||||||||||||||||||
17 | sarah | 2 | 15:00 | 17:00 | |||||||||||||||||||||||||||
18 | liz | 1 | 15:00 | 17:00 | |||||||||||||||||||||||||||
19 | gerard | 3 | 15:00 | 17:00 | |||||||||||||||||||||||||||
20 | hubert | 3 | 15:00 | 17:00 | |||||||||||||||||||||||||||
21 | dave | 3 | 11:00 | 13:00 | |||||||||||||||||||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B4:I4,K4:W4,J4:J14 | B4 | =UNIQUE(IFERROR(FILTER($Z:$Z,$AB:$AB=B$3,"Empty"),"")) |
Z5:Z21 | Z5 | =FILTER(AG:AG,AH:AH=$AA$2) |
AA5:AA21 | AA5 | =IF(Z5="","",INDEX(AI:AI,MATCH(Z5,AG:AG,0))) |
AB5:AB21 | AB5 | =IF(Z5="","",INDEX(AJ:AJ,MATCH(Z5,AG:AG,0))) |
AC5:AC21 | AC5 | =IF(Z5="","",INDEX(AL:AL,MATCH(Z5,AG:AG,0))) |
Dynamic array formulas. |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
A2:W16 | Cell Value | contains "Empty" | text | NO |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
AA1:AA21 | Custom | =COUNTIF(AS2:BO501,">58")=0 |
Thank you so much!