excel - Excell - array, offset-associated cell -
i have challenge seems should have easy answer, cannot solve it. have list of rates need find smallest value in large list if criteria matches 3 other cells (one cell equals, next cell greater than, next cell less than) , formula is:
=if(c7="f",if(min(if($c$4:$c$43="m",if($d$4:$d$43>e7,if($d$4:$d$43<f7,$g$4:$g$43,""),""),""))>0,min(if($c$4:$c$43="m",if($d$4:$d$43>e7,if($d$4:$d$43<f7,$g$4:$g$43,""),""),"")),"no match"),"") it has in not if not meet "f" criteria , returns "no match" if criteria no met in array.
this part works, want display cell name same rate associated rate found (name of rate), beside rate found in formula above, hence similar formula using index , match or offset. challenge data has rates same, hence array can return multiple correct answers, again okay, when try match rate name, finds first rate in array matches rate without criteria , can not figure out how incorporate criteria again.
in others words - criteria finds correct match, match looks value , chooses first match in array- not correct always. below sample of data. sorry image- no easy way show data in so
this array formula return correct name , not rely on other formula's return:
=if(c4="f",iferror(index($b$4:$b$43,match(min(if(($c$4:$c$43="m")*($d$4:$d$43<=e4)*($d$4:$d$43>=f4),$g$4:$g$43)),if(($c$4:$c$43="m")*($d$4:$d$43<=e4)*($d$4:$d$43>=f4),$g$4:$g$43),0)),"no match"),"") being array formula must confirmed ctrl-shift-enter instead of enter when exiting edit mode. if done correctly excel put {} around formula.

Comments
Post a Comment