Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
aldsv
 
Posts: n/a
Default Lookup Array Formula


A dozen google searches didn't solve this problem, but I know you
can...

I have a row of data (I actually have a lot of rows, and a lot of
columns):

[0,0,0,5,2,0,3]

I need a formula to find the column# of the first cell with <0 data.

I tried various combinations of match, min, max and array formulas to
no success

Thanks in advance.

aldsv


--
aldsv
------------------------------------------------------------------------
aldsv's Profile: http://www.excelforum.com/member.php...o&userid=20494
View this thread: http://www.excelforum.com/showthread...hreadid=479037

  #2   Report Post  
Bruno Campanini
 
Posts: n/a
Default Lookup Array Formula

"aldsv" wrote in
message ...

A dozen google searches didn't solve this problem, but I know you
can...

I have a row of data (I actually have a lot of rows, and a lot of
columns):

[0,0,0,5,2,0,3]

I need a formula to find the column# of the first cell with <0 data.


Given $K$71:$Q$71 the row containing your data, the following
returns 14 (column N containing 5):

{=MIN(IF(IF($K$71:$Q$71<0,COLUMN($K$71:$Q$71),0) 0,
IF($K$71:$Q$71<0,COLUMN($K$71:$Q$71),0)))}
FormulaArray

Ciao
Bruno


  #3   Report Post  
Bruno Campanini
 
Posts: n/a
Default Lookup Array Formula

"Bruno Campanini" wrote in message
...

Better:
Given $K$71:$Q$71 the row containing your data, the following
returns 14 (column N containing 5):

{=MIN(IF($K$71:$Q$71<0,COLUMN($K$71:$Q$71),257))}
FormulaArray

Ciao
Bruno


  #4   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default Lookup Array Formula

On Tue, 25 Oct 2005 03:33:36 -0500, aldsv
wrote:


A dozen google searches didn't solve this problem, but I know you
can...

I have a row of data (I actually have a lot of rows, and a lot of
columns):

[0,0,0,5,2,0,3]

I need a formula to find the column# of the first cell with <0 data.

I tried various combinations of match, min, max and array formulas to
no success

Thanks in advance.

aldsv


This **array** formula should do what you requi

=MATCH(TRUE,Range<0,0)+COLUMN(Range)-1

To enter an **array** formula, hold down <ctrl<shift while hitting <enter.
Excel will place braces {...} around the formula.

It also excludes <blank's from the test, so that

0,0,,5,2,0,3 is equivalent to 0,0,0,5,2,0,3

If this is not what you want, please clarify.


--ron
  #5   Report Post  
aldsv
 
Posts: n/a
Default Lookup Array Formula


Bingo. Thank you.


--
aldsv
------------------------------------------------------------------------
aldsv's Profile: http://www.excelforum.com/member.php...o&userid=20494
View this thread: http://www.excelforum.com/showthread...hreadid=479037



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
customise array formula output TUNGANA KURMA RAJU Excel Discussion (Misc queries) 0 October 25th 05 05:15 AM
Editing Array Formula [email protected] Excel Worksheet Functions 7 August 28th 05 06:46 AM
Array Formula - using LEFT("text",4) in formula Andrew L via OfficeKB.com Excel Worksheet Functions 2 August 1st 05 02:36 PM
Array Formula, noncontigous range Werner Rohrmoser Excel Worksheet Functions 1 June 22nd 05 12:11 PM
Propagate Array Formula Down Column [email protected] Excel Discussion (Misc queries) 1 February 20th 05 07:42 AM


All times are GMT +1. The time now is 11:21 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"