ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Identifying single column within named range (https://www.excelbanter.com/excel-discussion-misc-queries/19131-identifying-single-column-within-named-range.html)

ESAEO

Identifying single column within named range
 
How do I specify a single column of a multi-column named range within an
argument in an IF statement? This multi-column named range works perfectly
in a VLOOKUP but IFs need only a single column. I'd like to NOT have to
define yet another range nor use longhand cell reference.

Alan Beban

ESAEO wrote:
How do I specify a single column of a multi-column named range within an
argument in an IF statement? This multi-column named range works perfectly
in a VLOOKUP but IFs need only a single column. I'd like to NOT have to
define yet another range nor use longhand cell reference.


E.g., Range("range_name").Columns(3)

Alan Beban

AlfD

Hi!

I would think, like it or not, you are best off defining the column as
a named range.

Alf



All times are GMT +1. The time now is 10:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com