Excel part II: Take nth value within a sub set -


let me make second part stupid question can't sort. imagine have list like

week value accept? first 1 true 1 b true 1 c false 2 d false 2 e false 2 f true f 3 g false 3 h false 3 false 4 j false 4 k true k 4 l true 

how make formula outputs first value within subset satisfies condition. in rows 2 4, b2 in rows 5 7, it's b6 in rows 8 10 there no answer: false. in rows 11 13, b12, ignoring b13 true. appreciate recommendation, thanks.

assuming titles starts in a1

write in d2 : {=if(a1<>a2,index($b$1:$b$100,match(a2&true,$a$1:$a$100&$c$1:$c$100,0))}

the {} shall inserted pressing ctrl+shift+enter (array formula)

then extend formula way down. should give want.

what :

if(a1<>a2, 

will display result if cell in lefthand column new week number

index($b$1:$b$100, 

will return n-th value of column b, n :

match(a2&true,$a$1:$a$100&$c$1:$c$100,0) 

will return first line columns , c concatenated has value a2&true. reason why need use array formula


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -