Hi,
I need assitance with a SUMIF in vba based on a condition.
This is an example of what the data is like. I have multiple of account numbers that is split up into types (apple, pear) with values.
In the end, I want to get something like this. I hope to split the result into two that is separated by the Type. The problem i have is that there are similar account numbers that is both an apple type and pear type.
I need assitance with a SUMIF in vba based on a condition.
This is an example of what the data is like. I have multiple of account numbers that is split up into types (apple, pear) with values.
Account Number | Type | Value |
123 | Apple | 12 |
456 | Apple | 13 |
234 | Apple | 45 |
123 | Apple | 6 |
123 | Apple | 22 |
456 | Apple | 45 |
123 | Apple | 78 |
123 | Pear | 4 |
123 | Pear | 45 |
456 | Pear | 7 |
234 | Pear | 9 |
987 | Pear | 3 |
In the end, I want to get something like this. I hope to split the result into two that is separated by the Type. The problem i have is that there are similar account numbers that is both an apple type and pear type.
Account Number (Apple) | Total Value | Account Number (Pear) | Total Value | |
123 | 109 | 123 | 49 | |
456 | 58 | 456 | 7 | |
234 | 45 | 234 | 9 | |
987 | 3 |