excel - How to apply functions on a cell after fetching data from VLOOKUP -
i have following data map
channel value transformation coefficient 10 ln(log) 0.1 b 20 ^(squared) 0.2
i'm using vlookup generate data need apply these transformations value of 1 cell e.g.
channel metric transformedval 100 =ln(100) 200 =ln(200) b 200 =200^2
not sure if can directly vlookup. pointers?
when read link antidrondert posted answer seem clearer :-) states excel has evaluate formula designed take text string , evaluate if formula, there because of compatibility purposes cant use normal formula. however, can still use in named ranges. need create named range text string of want have calculated. in case need have ln(...) , (...)^2 added formula. know need add before after cell reference (the metric). split needed formula 2 parts - 1 goes before cell reference, second goes after cell reference. "ln(...)" "ln(" , ")" , store these values in columns next first table. squared used "(" , ")^2" although brackets not necessary guess. create named range concatenate vlookup of first part of formula based on channel, cell reference , vlookup of second part of formula. inside evaluate function. (make sure dont fix rows cell reference , vlookup value). see pic below. can see on picture same results using method have in example , without vba.
=evaluate(vlookup(sheet1!$j2;sheet1!$a:$f;5;false)&sheet1!$k2&vlookup(sheet1!$j2;sheet1!$a:$f;6;false))
wiki
Comments
Post a Comment