Home > Software engineering >  Google Sheets Vlookup with dynamic result i.e. keep blank rows and show result in next matching valu
Google Sheets Vlookup with dynamic result i.e. keep blank rows and show result in next matching valu

Time:09-07

Column A in the below image is user input and result is expected in column B and C. Result is to be derived from the data available in Column F and G by matching column A with Column E.

enter image description here Any help on above will be greatly appreciated.

CodePudding user response:

Try this formula then drag down and across.

=IFERROR(INDEX(FILTER($F$3:$G$8,$E$3:$E$8=$A3),COUNTIF($A$3:$A3,$A3),COLUMN(A$1)),"")

enter image description here

CodePudding user response:

use in B3:

=ARRAYFORMULA(IFNA(VLOOKUP(A3:A&"×"&COUNTIFS(A3:A, A3:A, ROW(A3:A), "<="&ROW(A3:A)), 
 {E3:E&"×"&COUNTIFS(E3:E, E3:E, ROW(E3:E), "<="&ROW(E3:E)), F3:G}, {2, 3}, 0)))

enter image description here

  • Related