Hi,
I am trying to recreate a nested IF SUMIF statement in Alteryx. The issue is, that the criteria and the range for the criteria to be found in and the sum range are found in multiple different sheets (and therefore, multiple inputs) and the statement I am working with is quite long and has multiple criteria and different sumifs for each criteria.
I thought that I could create my sumif column on sheet 2 by using a summarize tool, then join sheet 1 and 2, and finally use an if then statement in the formula tool to return the value from the sumif column if the criteria is met. However, I am unsure of the best way to join my two data sets together.
The specific statement I am trying to recreate is this:
"=IF(E2=""Bond Accrual"",SUMIF(Bonds!AA:AA,G2,Bonds!AD:AD)," & _
"IF(E2=""Bond MTM"",SUMIF(Bonds!E:E,G2,Bonds!O:O)," & _
"IF(E2=""Bonds Unsettled"",SUMIF(BondUnsettled!BT:BT,G2,BondUnsettled!BJ:BJ)," & _
"IF(E2=""Repo Interest"",SUMIF(Repo!AB:AB,G2,Repo!AC:AC)," & _
"IF(E2=""Repo Principal"",SUMIF(Repo!F:F,G2,Repo!P:P)," & _
"IF(E2=""Fees BBL"",SUMIF(Repo!AB:AB,G2,Repo!AC:AC)," & _
"IF(E2=""Cash Margin Principal"",-SUMIF(Funding!BJ:BJ,G2,Funding!P:P)," & _
"IF(E2=""Cash Margin Interest"",SUMIF(Funding!BK:BK,G2,Funding!AW:AW)," & _
"IF(E2=""Funding Principal"",-SUMIF(Funding!BJ:BJ,G2,Funding!P:P)," & _
"IF(E2=""Funding Interest"",SUMIF(Funding!BK:BK,G2,Funding!AW:AW),""NA""))))))))))")
Unfortuneatly, cannot share my data, but I have attached a small sample workflow to better show what I am trying to do.
Any help is appreciated! Thank You!!