Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron
 
Posts: n/a
Default Search array and return element No

I want to seach an array and return the element no of the first cell
that is empty. Vlookup does not work as it returns the value as opposed
to the element no.

I want to do something like Find except accross an array rather than
within a string.

Any ideas

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Search array and return element No

Hi!

Try this:

Array entered using the key combination of CTRL,SHIFT,ENTER:

=MATCH(TRUE,A1:A15="",0)

Returns #N/A if no blank cell is found.

Biff

"Ron" wrote in message
oups.com...
I want to seach an array and return the element no of the first cell
that is empty. Vlookup does not work as it returns the value as opposed
to the element no.

I want to do something like Find except accross an array rather than
within a string.

Any ideas

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron
 
Posts: n/a
Default Search array and return element No

This worked....sort of. When I look at the values by pressing the
function button on the tool bar it has the correct value (3,5 etc) but
once I click out of the cell the cell display #VALUE. My exact formula
is

=MATCH(TRUE,Sheet1!$R8:$AD8=0,0). The formula is in a Cell in sheet 2.

Thanks for you help

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Search array and return element No

=MATCH(TRUE,Sheet1!$R8:$AD8=0,0)

A couple of things, you didn't say what type of data you have in this array.
So, you can use 0 to mean an empty cell but if there is a literal 0 in the
range before an empty cell you'll get an incorrect result.

The reason you're getting #VALUE! is because this is an array formula:

Array entered using the key combination of CTRL,SHIFT,ENTER:


Try this:

Select the cell where this formula is entered.
Press function key F2
Now, hold down both the CTRL key and the SHIFT key then hit ENTER.

If done properly Excel will place squiggly braces { } around the formula.
You cannot just type these braces in. You MUST use the key combination.

Biff

"Ron" wrote in message
ups.com...
This worked....sort of. When I look at the values by pressing the
function button on the tool bar it has the correct value (3,5 etc) but
once I click out of the cell the cell display #VALUE. My exact formula
is

=MATCH(TRUE,Sheet1!$R8:$AD8=0,0). The formula is in a Cell in sheet 2.

Thanks for you help



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron
 
Posts: n/a
Default Search array and return element No

Thanks Biff this worked great. Can you just explain what an array
formula means



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Search array and return element No


"Ron" wrote in message
ups.com...
Thanks Biff this worked great. Can you just explain what an array
formula means


An array formula is a formula that operates or performs tests on more than a
single element. In this case the array test is:

Sheet1!$R8:$AD8=0

Each cell in the range R8:AD8 is being tested to be equal to 0.

See this for more info:

http://cpearson.com/excel/array.htm

Biff


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron
 
Posts: n/a
Default Search array and return element No

Powerful stuff... Thanks.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Search array and return element No

You're welcome. Thanks for the feedback!

Biff

"Ron" wrote in message
ups.com...
Powerful stuff... Thanks.



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
Array Formula to find Average Return Paul987 Excel Discussion (Misc queries) 1 May 9th 06 06:20 PM
Search a random array of cells and return a value of "X" EKB Excel Worksheet Functions 1 April 17th 06 03:57 AM
Use array to return array of values Brad Excel Worksheet Functions 2 March 30th 06 05:58 PM
Return Array with Array Brad Excel Worksheet Functions 10 November 17th 05 06:45 PM
Return a cell value based on specific combinations of cells in an array rmcnam05 Excel Worksheet Functions 2 October 11th 05 03:28 AM


All times are GMT +1. The time now is 08:52 PM.

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"