ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   RefersTo command uses double quotes (https://www.excelbanter.com/excel-programming/437458-re-refersto-command-uses-double-quotes.html)

OssieMac

RefersTo command uses double quotes
 
Hi again Brad,

I have had another look at your question and now I am wondering if what you
really want is to be able to use the named range in a formula on the
worksheet not in VBA code as per my example. If this is correct, then you
just use the name in lieu of the column reference.

Following example of a VLOOKUP formula with column reference and replacing
column reference with the named range.

=VLOOKUP(A1,$C:$C,1,FALSE)

Replace $C:$C in the formula as follows.

=VLOOKUP(A1,MyDate,1,FALSE)

or if using xl2007 with scoping of named range and referencing from another
worksheet.

=VLOOKUP(A1,TABLES!MyDate,1,FALSE)


--
Regards,

OssieMac




All times are GMT +1. The time now is 11:12 AM.

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