Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 54
Default Having trouble getting MATCH to work with a variable lookup array

Hi -- I'm trying to use MATCH to return the column # of the first non-blank
cell in a row. It works great until I try to use a variable lookup array.

=MATCH(TRUE,Budget!A85:E85<"",0) works great.

I have a variable for the row # in A1. When I try this:

=MATCH(TRUE,"Budget!A" & A1 & ":E" & A1<"",0) it returns #N/A

Is what I am trying to do possible or do I just have a silly syntax error
somewhere?

--
TIA
Chuck M.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Having trouble getting MATCH to work with a variable lookup array

Try with INDIRECT, viz, array-entered:
=MATCH(TRUE,INDIRECT("Budget!A" & A1 & ":E" & A1)<"",0)
where A1 contains the row#
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,400 Files:358 Subscribers:55
xdemechanik
---
"Chuck M" wrote:
Hi -- I'm trying to use MATCH to return the column # of the first non-blank
cell in a row. It works great until I try to use a variable lookup array.

=MATCH(TRUE,Budget!A85:E85<"",0) works great.

I have a variable for the row # in A1. When I try this:

=MATCH(TRUE,"Budget!A" & A1 & ":E" & A1<"",0) it returns #N/A

Is what I am trying to do possible or do I just have a silly syntax error
somewhere?

--
TIA
Chuck M.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 54
Default Having trouble getting MATCH to work with a variable lookup ar

Just what I needed!

Thanks Max.
--

Chuck M.


"Max" wrote:

Try with INDIRECT, viz, array-entered:
=MATCH(TRUE,INDIRECT("Budget!A" & A1 & ":E" & A1)<"",0)
where A1 contains the row#
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,400 Files:358 Subscribers:55
xdemechanik
---
"Chuck M" wrote:
Hi -- I'm trying to use MATCH to return the column # of the first non-blank
cell in a row. It works great until I try to use a variable lookup array.

=MATCH(TRUE,Budget!A85:E85<"",0) works great.

I have a variable for the row # in A1. When I try this:

=MATCH(TRUE,"Budget!A" & A1 & ":E" & A1<"",0) it returns #N/A

Is what I am trying to do possible or do I just have a silly syntax error
somewhere?

--
TIA
Chuck M.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Having trouble getting MATCH to work with a variable lookup ar

Welcome, Chuck
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,400 Files:358 Subscribers:55
xdemechanik
---
"Chuck M" wrote in message
...
Just what I needed!

Thanks Max.
--

Chuck M.



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
Can't get array formula to work in MATCH function Chas Grad Excel Worksheet Functions 5 May 12th 08 09:19 PM
Text lookup array and match specific data Fiona Excel Worksheet Functions 3 January 23rd 08 12:26 AM
match, lookup or array? edluver Excel Worksheet Functions 0 October 21st 06 07:46 PM
table, index, array, match, lookup? spxer Excel Worksheet Functions 2 August 8th 06 09:34 PM
Variable Table Array in Lookup Function matt_the_brum Excel Worksheet Functions 6 August 4th 06 05:07 PM


All times are GMT +1. The time now is 02:15 AM.

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

About Us

"It's about Microsoft Excel"