00:00When using a VLOOKUP, entering the column number manually on the third argument can be quite
00:04laborious. Let me demonstrate how you can automatically increase it using a simple
00:07addition to the VLOOKUP formula. We will be using a match function, lookup value will be the header,
00:12lookup array will be the header for the dataset, and match type will be exact. After that, you can
00:17drag the formula right across the column like this. This issue is only limited to older version
00:21of Excel. For newer version like Excel 2021 and Microsoft 365 and above, I suggest using
00:26XLOOKUP function as the return column is identified as a range. Let me demonstrate. XLOOKUP, the first
00:32argument, lookup value will be A7, lookup array will be A11 to A65, and on the third argument, this is
00:38where I start to tangent away. For return array, we can log the row while allowing the column to change.
00:43After that, set the if not found argument to blank and set match mode to exact with a zero, and
00:48after
00:49that, apply the same formula right across. Can I put a community poll out there? Do you think I should
00:53develop an XLOOKUP add-on for older version of Excel? If there's enough interest, I'll develop an Excel
00:58add-on. Let me know in the comment section.
Comments