Excel help - Rearranging Columns -


so need excel.

what have in black , need in red.

enter image description here

i have been able rearrange column b match column , have output in e need take values in column c , d it. have been using in column e:

=if(isna(vlookup(a1,$b:$b,1,false)), "missing", a1)

can please me figure out how bring columns c , d column b , populate them in f , g.

any appreciated! thanks!!

you pretty close - since dynamic range, suggest using offset() function specific location in spreadsheet.

so, here's formula paste cell e1 , drag across / down result want:

=iferror(offset($a$1,match($a1,$b:$b,0)-1,column(a1)),"missing") 

basically, you're saying is:

  • if error in matching value want, print missing: =iferror(match($a1,$b:$b,0),"missing")
  • move set number of rows cell a1 based on numbers match column a: offset($a$1,match($a1,$b:$b,0)-1 ...
  • as drag right, keep referencing next column: offset($a$1,..., column(a1))

hope helps explain it.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -