excel - nested ifs with multiple sumifs based on changing criteria -
i having trouble formula , know if building in correct order or how can change desired result. getting formula missing opening or closing parenthesis error:
=if(bh2="ppd fsc",sumifs('all bids'!r:r,'all bids'!d:d,bv2,'all bids'!e:e,i2,'all bids'!w:w,'dc tool'!u2,'all bids'!g:g,'dc tool'!v2,'all bids'!h:h,'dc tool'!m2),sumifs(freight!z:z,freight!q:q,'dc tool'!f2,freight!m:m,h2,freight!o:o,"ppd",freight!aa:aa,grids!$u$3),if(bh2="ppd gdc",sumifs('all bids'!r:r,'all bids'!d:d,f2,'all bids'!e:e,i2,'all bids'!w:w,'dc tool'!u2,'all bids'!g:g,'dc tool'!v2,'all bids'!h:h,'dc tool'!m2),sumifs(freight!z:z,freight!q:q,'dc tool'!f2,freight!m:m,h2,freight!o:o,"ppd",freight!aa:aa,grids!$u$3))
looks want 3 different possible sumifs, logic being follows:
if bh2 = "x" sumifs1
, if bh2 = "y" sumifs2
else sumifs3
need write this:
=if(bh2="ppd fsc",sumifs('all bids'!r:r,'all bids'!d:d,bv2,'all bids'!e:e,i2,'all bids'!w:w,'dc tool'!u2,'all bids'!g:g,'dc tool'!v2,'all bids'!h:h,'dc tool'!m2),if(bh2="ppd gdc",sumifs('all bids'!r:r,'all bids'!d:d,f2,'all bids'!e:e,i2,'all bids'!w:w,'dc tool'!u2,'all bids'!g:g,'dc tool'!v2,'all bids'!h:h,'dc tool'!m2),sumifs(freight!z:z,freight!q:q,'dc tool'!f2,freight!m:m,h2,freight!o:o,"ppd",freight!aa:aa,grids!$u$3)))
Comments
Post a Comment