Excel Sheet Pro
New Member
- Joined
- Jun 10, 2015
- Messages
- 5
Preface: Based on a list of names and task numbers associated with them, I'd like to create a (non-VBA) formula to find and return the task number MISSING from a task list for each name, as defined in the following steps. I have color-coded the ranges to make it simple to identify.
The range in YELLOW is the main list. It comprises of names and tasks assigned to those names.
In range in GREEN contains the unique task number list.
The first column in the BLUE range is the unique name list associated with the main list.
The second column in the BLUE range is where the formula will go in each cell, using the name in the first column as the relative reference.
What I would like to see is a formula that returns the MISSING task number associated with a name in the left column in the BLUE range. For instance, Jim is assigned to tasks 1, 2, and 3 in the Main list, but is not assigned 4. Therefore, 4 is the return I'm looking for. Each other name is associated with each of their missing task number.
There are several pre-conditions that should make the solution easier:
1. There could be at least 3 or more names.
2. There could be any number of tasks.
3. However, the tasks always start with 1 and increment by 1 until the last task. No text, and no skipped sequencing of numbers.
4. Each name will be associated with all task numbers EXCEPT for one missing task number. In other words, for every task listed in the Green Task_No range, each name will be assigned to every one of those tasks exactly one time, EXCEPT for the missing task no. There will never be a situaiton where a name is associated with every task number, nor a situation where a name has more than one missing task number. This process is verified already.
I have tried a whole slew of index, match, vlookup, and other formulas, and combinations of such formulas, both straight and array, but couldn't get it right. Currently, the formula is dependent on a grid located on a "helper sheet" but it seems to me that I can simplify this; I just can't get the right formula in place. In addition, no VBA can be used as it is a macro-free workbook. I have the latest version of Excel (Office 365 subscription) if that helps. Many thanks.
The range in YELLOW is the main list. It comprises of names and tasks assigned to those names.
In range in GREEN contains the unique task number list.
The first column in the BLUE range is the unique name list associated with the main list.
The second column in the BLUE range is where the formula will go in each cell, using the name in the first column as the relative reference.
bbbb.xlsx | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | Name_List | Task_No_List | Task_No | Name | Missing Task No. | ||||
2 | Jim | 1 | 1 | Jim | 4 | ||||
3 | Susan | 1 | 2 | Susan | 3 | ||||
4 | Bart | 1 | 3 | Bart | 2 | ||||
5 | Jim | 2 | 4 | Steve | 1 | ||||
6 | Susan | 2 | |||||||
7 | Steve | 2 | |||||||
8 | Jim | 3 | |||||||
9 | Bart | 3 | |||||||
10 | Steve | 3 | |||||||
11 | Susan | 4 | |||||||
12 | Bart | 4 | |||||||
13 | Jim | 4 | |||||||
Sheet1 |
What I would like to see is a formula that returns the MISSING task number associated with a name in the left column in the BLUE range. For instance, Jim is assigned to tasks 1, 2, and 3 in the Main list, but is not assigned 4. Therefore, 4 is the return I'm looking for. Each other name is associated with each of their missing task number.
There are several pre-conditions that should make the solution easier:
1. There could be at least 3 or more names.
2. There could be any number of tasks.
3. However, the tasks always start with 1 and increment by 1 until the last task. No text, and no skipped sequencing of numbers.
4. Each name will be associated with all task numbers EXCEPT for one missing task number. In other words, for every task listed in the Green Task_No range, each name will be assigned to every one of those tasks exactly one time, EXCEPT for the missing task no. There will never be a situaiton where a name is associated with every task number, nor a situation where a name has more than one missing task number. This process is verified already.
I have tried a whole slew of index, match, vlookup, and other formulas, and combinations of such formulas, both straight and array, but couldn't get it right. Currently, the formula is dependent on a grid located on a "helper sheet" but it seems to me that I can simplify this; I just can't get the right formula in place. In addition, no VBA can be used as it is a macro-free workbook. I have the latest version of Excel (Office 365 subscription) if that helps. Many thanks.