Hi,
I have a formula that's working perfectly for me, which is this...
"=IF($C4=0,"",MIN(IF('Main Log'!$D$4:$D$2000=$B4,IF('Main Log'!$O$4:$O$2000,"",'Main Log'!$E$4:$E$2000))))
It finds the minimum value (earliest date) in my 'Main Log' sheet where the criteria are met.
However, in the next column, I want to show the contents of the cell 2 columns to the right of the earliest date as identified by that formula.
In other words, if I use the formula above in D5, it will correctly return the oldest Clinic Date matching the criteria I set up. Now I want D6 to show me the NHS. No for that clinic date (which is located 2 cells to the right of the Clinic Date).
I can't get this to work. Can anyone advise please?
Thanks in advance.
I have a formula that's working perfectly for me, which is this...
"=IF($C4=0,"",MIN(IF('Main Log'!$D$4:$D$2000=$B4,IF('Main Log'!$O$4:$O$2000,"",'Main Log'!$E$4:$E$2000))))
It finds the minimum value (earliest date) in my 'Main Log' sheet where the criteria are met.
However, in the next column, I want to show the contents of the cell 2 columns to the right of the earliest date as identified by that formula.
In other words, if I use the formula above in D5, it will correctly return the oldest Clinic Date matching the criteria I set up. Now I want D6 to show me the NHS. No for that clinic date (which is located 2 cells to the right of the Clinic Date).
Clinic Type | Clinic Date | Clinician | NHS No. |
SACC | 02/08/2022 | 765433 | |
SACC | 01/01/2022 | 1234567 | |
Neuromotor | 10/08/2022 | 12334234 |
I can't get this to work. Can anyone advise please?
Thanks in advance.