lopiteaux
Board Regular
- Joined
- Jun 8, 2011
- Messages
- 77
I need to find the maximum value present in column AC against multiple instances of variable X in column D, and populate the value in column F.
For example (apologies, I cannot share a true dataset due to the confidential nature of the data):
<tbody>
</tbody>
I've got a solution which uses nested CountIfs, but it takes around 45s on a dataset of 10k rows and is, well, inelegant to say the least.
Any suggestions from the community?
For example (apologies, I cannot share a true dataset due to the confidential nature of the data):
Column D | ... | Column F | ... | Column AC | |
1 | ID | ... | MaxSeverity | ... | Severity |
2 | A | ... | 50 | ... | 10 |
3 | A | ... | 50 | ... | 50 |
4 | B | ... | 30 | ... | 20 |
5 | C | ... | 30 | ... | 30 |
6 | A | ... | 50 | ... | 40 |
7 | B | ... | 30 | ... | 30 |
8 | B | ... | 30 | ... | 30 |
9 | C | ... | 30 | ... | 30 |
10 | D | ... | 50 | ... | 50 |
<tbody>
</tbody>
I've got a solution which uses nested CountIfs, but it takes around 45s on a dataset of 10k rows and is, well, inelegant to say the least.
Any suggestions from the community?