Forum Discussion
Multiple nested IF formula in a table with calculations
- Aug 03, 2019
Hi gminii ,
I would not recommend using nested IFs, as they make formula complex. Instead, I suggest using SUMPRODUCT. If the names of the columns 5 to 9 were 'BR', 'SS', 'PG', 'RG' and 'WG' respectively, and, assuming that the name of the table is 'MyTable', your formula would be =SUMPRODUCT((MyTable[[#Headers],[BR]:[WG]]=[@Column1])*MyTable[@[BR]:[WG]]*[@Column2])
This should also solve your issue with formatting
Thanks
Yury
Hi gminii ,
I would not recommend using nested IFs, as they make formula complex. Instead, I suggest using SUMPRODUCT. If the names of the columns 5 to 9 were 'BR', 'SS', 'PG', 'RG' and 'WG' respectively, and, assuming that the name of the table is 'MyTable', your formula would be =SUMPRODUCT((MyTable[[#Headers],[BR]:[WG]]=[@Column1])*MyTable[@[BR]:[WG]]*[@Column2])
This should also solve your issue with formatting
Thanks
Yury
- gminiiAug 03, 2019Copper Contributor
Thank you for your quick respone Yury Tokarev
I tried your solution but it results in #VALUE!
Any idea what could be the cause of this?
- Yury TokarevAug 03, 2019Iron Contributor
- gminiiAug 03, 2019Copper Contributor
Got it! Thanks for your help Yury Tokarev You are gold!