Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 383
Default VLOOKUP, columns question / different way?

have an example of formula, as an array that finally works, but wonder if
there is a more dynamic way of find the column I am looking for? thanks

where AP is the compared / start column in the old file, looking for data
in column CI (had to count the columns by hand). Is there a more dynamic
way to calculate the number of columns over, within the formula.

would be will willing to calculate it outside the formula with referenced /
worker cells, entering column letters in: From & To cells.

sample working with is:

=IF(ISNA(VLOOKUP(AQ327,[file.xls]sheet!$AP$1:$CI$3355,46,FALSE)),"",VLOOKUP(AQ327,[file.xls]sheet!$AP$1:$CI$3355,46,FALSE))
  #2   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default VLOOKUP, columns question / different way?

try
=Column(CI1)-Column(AO1)

"nastech" wrote:

have an example of formula, as an array that finally works, but wonder if
there is a more dynamic way of find the column I am looking for? thanks

where AP is the compared / start column in the old file, looking for data
in column CI (had to count the columns by hand). Is there a more dynamic
way to calculate the number of columns over, within the formula.

would be will willing to calculate it outside the formula with referenced /
worker cells, entering column letters in: From & To cells.

sample working with is:

=IF(ISNA(VLOOKUP(AQ327,[file.xls]sheet!$AP$1:$CI$3355,46,FALSE)),"",VLOOKUP(AQ327,[file.xls]sheet!$AP$1:$CI$3355,46,FALSE))

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default VLOOKUP, columns question / different way?

Maybe you can use =index(match()) if you can match on unique headers.

Take a look at Debra Dalgleish's notes:
http://www.contextures.com/xlFunctions03.html

nastech wrote:

have an example of formula, as an array that finally works, but wonder if
there is a more dynamic way of find the column I am looking for? thanks

where AP is the compared / start column in the old file, looking for data
in column CI (had to count the columns by hand). Is there a more dynamic
way to calculate the number of columns over, within the formula.

would be will willing to calculate it outside the formula with referenced /
worker cells, entering column letters in: From & To cells.

sample working with is:

=IF(ISNA(VLOOKUP(AQ327,[file.xls]sheet!$AP$1:$CI$3355,46,FALSE)),"",VLOOKUP(AQ327,[file.xls]sheet!$AP$1:$CI$3355,46,FALSE))


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP Question... Leonhardtk Excel Worksheet Functions 3 July 10th 07 09:05 PM
VLOOKUP question Cacoe Excel Worksheet Functions 2 August 1st 06 10:12 PM
VLookUp Question carl Excel Discussion (Misc queries) 1 December 29th 05 06:08 PM
VLOOKUP Question. StephenAccountant Excel Discussion (Misc queries) 3 July 6th 05 10:28 PM
Vlookup against multiple columns/worksheets question JCarter Excel Discussion (Misc queries) 8 March 9th 05 04:59 PM


All times are GMT +1. The time now is 08:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"