Forum Discussion

Flow2's avatar
Flow2
Copper Contributor
Oct 23, 2021

Use a cell value for the row number in Vlookup.

On sheet 1 in row 5 and column h for example 

 the formula, =IFERROR(-VLOOKUP('Sheet 3'!E13,Sheet2!A:K,6,FALSE),0)

 

However I would like to replace the number in E13, with a value derived from cell D of the same row as the formula, so the E13 becomes E "value of cell D5"

 

Ideally I can then drag the formula into other rows so that the value of the row used in the look up changes according to the value in column D of the row where the formula sits.

If anyone knows of a tidy way of making that happen it would save me a lot of typing.

Unfortunately the values in column D are not sequential.

9 Replies

    • Flow2's avatar
      Flow2
      Copper Contributor
      Hi Hans,

      Thank you for posting a potential answer, unfortunately that does not work, although I can see your logic.

Resources