Hi,
I am using SUMIF with 3 criteria to solve a problem. The formula works well 95% of the time. The issue occurs when two criteria repeat. I will try to illustrate:
Source Table:
<colgroup><col span="2"><col><col><col></colgroup><tbody>
</tbody>
I need to know the number of shares(column D) held by a fund (column A) of a specific security (column B) on a specific date (column C). The formula works well, in this case for fund B because there was only one distribution for each security. The issue occurs on fund AAAA, security CC, which had two distribution on the same date. Therefore, the formula returns 200 shares rather than 100. In summary, I would need to create a formula that returns only the first quantity rather than the sum of all. I have tried index/match, but it did not work as I have three criteria.
Any help is much appreciated.
Cris
I am using SUMIF with 3 criteria to solve a problem. The formula works well 95% of the time. The issue occurs when two criteria repeat. I will try to illustrate:
Source Table:
Fund | Ticker | Ex-Div Pay | Quantity | Dollar |
AAAA | CC | 12/20/2016 | 100 | $1.00 |
AAAA | CC | 12/20/2016 | 100 | $0.50 |
AAAA | DD | 12/24/2016 | 250 | $2.00 |
AAAA | DD | 12/24/2016 | 250 | $0.75 |
BBBB | CC | 12/20/2016 | 50 | $1.00 |
BBBB | DD | 12/24/2016 | 75 | $2.00 |
<colgroup><col span="2"><col><col><col></colgroup><tbody>
</tbody>
I need to know the number of shares(column D) held by a fund (column A) of a specific security (column B) on a specific date (column C). The formula works well, in this case for fund B because there was only one distribution for each security. The issue occurs on fund AAAA, security CC, which had two distribution on the same date. Therefore, the formula returns 200 shares rather than 100. In summary, I would need to create a formula that returns only the first quantity rather than the sum of all. I have tried index/match, but it did not work as I have three criteria.
Any help is much appreciated.
Cris