Hi, AI can't help me so I turned to humans.
In the table below is as follows:
Column A is list of random names (last name, first name),
Column D is a list of specific codes
Columns F-AJ (columns I-Aj are hidden for sake of brevity) are days in a month 1-31 (in this case only days 1-3 show)
Column AK total of values of rows F-AJ (in this case only values total for columns F-H)
Column AL2:AL9 is where I want only unique names from column A. In this example, AL2 should result in Buck, Jim and AL3 should result in Smith, John.
Then in AM2 and down under the Days column, I need a formula that counts the cells in each row with the most values for F1:H9 but only for the unique name in AL2 and AL3. In this example, AM2 should result in 3 days for AL2 Buck, Jim and AM3 should result in 2 days for AL3 Smith, John.
The formula in column AM should look at F1:H9 and only count the most values in each row associated with Buck, Jim (AL2) and Smith, John (AL3). In this case, AM2 should see that F2-H2 and F3-H3 have 3 values total in each row and F4-H4 and F5-H5 only have 2. For AM3, rows F6-H6 and F7-H7 have 2 values total and rows F8-H8 and F9-H9 only have 1 value total.
Then in column AN under the RT94668 column I need a formula that sums the values F1:H9 that match column D "RT94668" for the Unique name in column AL. In this case, AN2 the formula should sum the row with CPT code RT94668 in column D under Buck, Jim which would be 24. In AN3, the formula would sum the row with CPT code RT94668 in column D under Smith, John which would be 16.
I hope this makes sense and I am open to other ways of configuring this table to make it easier to get my desired results.
Thank you in advance, humans.
Terence
In the table below is as follows:
Column A is list of random names (last name, first name),
Column D is a list of specific codes
Columns F-AJ (columns I-Aj are hidden for sake of brevity) are days in a month 1-31 (in this case only days 1-3 show)
Column AK total of values of rows F-AJ (in this case only values total for columns F-H)
Column AL2:AL9 is where I want only unique names from column A. In this example, AL2 should result in Buck, Jim and AL3 should result in Smith, John.
A | B | C | D | E | F | G | H | AK | AL | AM | AN | |
Name | MRN | ICD | CPT | Desc | 1 | 2 | 3 | Total | Unique Name | Days | RT94668 | |
2 | Buck, Jim | RT94668 | 8 | 8 | 8 | 24 | ||||||
3 | Buck, Jim | RT94761 | 8 | 8 | 8 | 24 | ||||||
4 | Buck, Jim | RT94010 | 4 | 4 | 8 | |||||||
5 | Buck, Jim | RT94060 | 4 | 4 | 8 | |||||||
6 | Smith, John | RT94668 | 8 | 8 | 16 | |||||||
7 | Smith, John | RT94761 | 8 | 8 | 16 | |||||||
8 | Smith, John | RT94010 | 4 | 4 | ||||||||
9 | Smith, John | RT94060 | 4 | 4 |
Then in AM2 and down under the Days column, I need a formula that counts the cells in each row with the most values for F1:H9 but only for the unique name in AL2 and AL3. In this example, AM2 should result in 3 days for AL2 Buck, Jim and AM3 should result in 2 days for AL3 Smith, John.
The formula in column AM should look at F1:H9 and only count the most values in each row associated with Buck, Jim (AL2) and Smith, John (AL3). In this case, AM2 should see that F2-H2 and F3-H3 have 3 values total in each row and F4-H4 and F5-H5 only have 2. For AM3, rows F6-H6 and F7-H7 have 2 values total and rows F8-H8 and F9-H9 only have 1 value total.
Then in column AN under the RT94668 column I need a formula that sums the values F1:H9 that match column D "RT94668" for the Unique name in column AL. In this case, AN2 the formula should sum the row with CPT code RT94668 in column D under Buck, Jim which would be 24. In AN3, the formula would sum the row with CPT code RT94668 in column D under Smith, John which would be 16.
I hope this makes sense and I am open to other ways of configuring this table to make it easier to get my desired results.
Thank you in advance, humans.
Terence