View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
sycsummit sycsummit is offline
external usenet poster
 
Posts: 21
Default How to return a column number?

I have a large database that continues to grow on a weekly basis. Within
this database, I have formula references using vlookup, but I keep having to
adjust the col_index_num for these cells because the database keeps
expanding. Is there a function I can use to specify the right-most column in
the database instead of using a fixed column for vlookup? Ie,
"farthest-right" instead of "M", so if the database extends through columns
AK or LAA or beyond it always returns the column label of that right-most
data column?