Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Help in finding Value in Index Array

I am trying to search a column (C5:C400) to find out when it runs to a null
value, then search down a different column (G) starting from that same row
and return the first positive number found.

Can anyone help? I've been using the following as a starting point, but I'm
stuck on how to complete it.

=INDEX(MATCH(TRUE,G5:G4000),MATCH(TRUE,C5:C400=0, 0))

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Help in finding Value in Index Array

One way

=INDEX(C5:C400,MATCH(TRUE,INDEX(INDEX(C5:C400,MATC H(1,(G5:G400=0)*(G5:G400<""),0)):C400,0)0,0)+MAT CH(1,(G5:G400=0)*(G5:G400<""),0)-1)

entered with ctrl + shift & enter


--


Regards,


Peo Sjoblom



"George" wrote in message
...
I am trying to search a column (C5:C400) to find out when it runs to a null
value, then search down a different column (G) starting from that same row
and return the first positive number found.

Can anyone help? I've been using the following as a starting point, but
I'm
stuck on how to complete it.

=INDEX(MATCH(TRUE,G5:G4000),MATCH(TRUE,C5:C400=0, 0))

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Help in finding Value in Index Array

Hi Peo,
Thanks, but the formula below returns the first value in column C (after row
5), but I am actually looking for the first positive value in column G after
column C declines to an empty cell.



"Peo Sjoblom" wrote:

One way

=INDEX(C5:C400,MATCH(TRUE,INDEX(INDEX(C5:C400,MATC H(1,(G5:G400=0)*(G5:G400<""),0)):C400,0)0,0)+MAT CH(1,(G5:G400=0)*(G5:G400<""),0)-1)

entered with ctrl + shift & enter


--


Regards,


Peo Sjoblom



"George" wrote in message
...
I am trying to search a column (C5:C400) to find out when it runs to a null
value, then search down a different column (G) starting from that same row
and return the first positive number found.

Can anyone help? I've been using the following as a starting point, but
I'm
stuck on how to complete it.

=INDEX(MATCH(TRUE,G5:G4000),MATCH(TRUE,C5:C400=0, 0))

Thanks!




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Help in finding Value in Index Array

I misunderstood, I thought you were looking for zero in column G, this will
work

=INDEX(C5:C400,MATCH(TRUE,INDEX(INDEX(C5:C400,MATC H(TRUE,G5:G400="",0)):C400,0)0,0)+MATCH(TRUE,G5:G 400="",0)-1)



--


Regards,


Peo Sjoblom



"George" wrote in message
...
Hi Peo,
Thanks, but the formula below returns the first value in column C (after
row
5), but I am actually looking for the first positive value in column G
after
column C declines to an empty cell.



"Peo Sjoblom" wrote:

One way

=INDEX(C5:C400,MATCH(TRUE,INDEX(INDEX(C5:C400,MATC H(1,(G5:G400=0)*(G5:G400<""),0)):C400,0)0,0)+MAT CH(1,(G5:G400=0)*(G5:G400<""),0)-1)

entered with ctrl + shift & enter


--


Regards,


Peo Sjoblom



"George" wrote in message
...
I am trying to search a column (C5:C400) to find out when it runs to a
null
value, then search down a different column (G) starting from that same
row
and return the first positive number found.

Can anyone help? I've been using the following as a starting point, but
I'm
stuck on how to complete it.

=INDEX(MATCH(TRUE,G5:G4000),MATCH(TRUE,C5:C400=0, 0))

Thanks!






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Help in finding Value in Index Array

Hi Peo,
Sorry but that returns the C5 value (column G is zero at that point, if it
helps). I need the first positive number in column G after column C is empty.

Thanks,


"Peo Sjoblom" wrote:

I misunderstood, I thought you were looking for zero in column G, this will
work

=INDEX(C5:C400,MATCH(TRUE,INDEX(INDEX(C5:C400,MATC H(TRUE,G5:G400="",0)):C400,0)0,0)+MATCH(TRUE,G5:G 400="",0)-1)



--


Regards,


Peo Sjoblom



"George" wrote in message
...
Hi Peo,
Thanks, but the formula below returns the first value in column C (after
row
5), but I am actually looking for the first positive value in column G
after
column C declines to an empty cell.



"Peo Sjoblom" wrote:

One way

=INDEX(C5:C400,MATCH(TRUE,INDEX(INDEX(C5:C400,MATC H(1,(G5:G400=0)*(G5:G400<""),0)):C400,0)0,0)+MAT CH(1,(G5:G400=0)*(G5:G400<""),0)-1)

entered with ctrl + shift & enter


--


Regards,


Peo Sjoblom



"George" wrote in message
...
I am trying to search a column (C5:C400) to find out when it runs to a
null
value, then search down a different column (G) starting from that same
row
and return the first positive number found.

Can anyone help? I've been using the following as a starting point, but
I'm
stuck on how to complete it.

=INDEX(MATCH(TRUE,G5:G4000),MATCH(TRUE,C5:C400=0, 0))

Thanks!








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Help in finding Value in Index Array

Either I totally misunderstood what you wanted or you are not using the same
cell references/formula as posted because it does return the first value in
C5:C400 greater than zero starting from the first blank cell in G5:G500.
This is what I have starting in G5

0
8
7
6
5
4
3
2
1
0
-1
-2
-3
-4
-5
-6
-7

8

9


so the first blank is below -7 in C22, this is what I have starting in C5

0
-17
-16
-15
1
-13
-12
16
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
0
0
0
0
0
5
6
7
8
9
10


the first value greater than 0 starting in row C22 is 5 in cell C28 and
that is what my formula returns


--


Regards,


Peo Sjoblom




"George" wrote in message
...
Hi Peo,
Sorry but that returns the C5 value (column G is zero at that point, if it
helps). I need the first positive number in column G after column C is
empty.

Thanks,


"Peo Sjoblom" wrote:

I misunderstood, I thought you were looking for zero in column G, this
will
work

=INDEX(C5:C400,MATCH(TRUE,INDEX(INDEX(C5:C400,MATC H(TRUE,G5:G400="",0)):C400,0)0,0)+MATCH(TRUE,G5:G 400="",0)-1)



--


Regards,


Peo Sjoblom



"George" wrote in message
...
Hi Peo,
Thanks, but the formula below returns the first value in column C
(after
row
5), but I am actually looking for the first positive value in column G
after
column C declines to an empty cell.



"Peo Sjoblom" wrote:

One way

=INDEX(C5:C400,MATCH(TRUE,INDEX(INDEX(C5:C400,MATC H(1,(G5:G400=0)*(G5:G400<""),0)):C400,0)0,0)+MAT CH(1,(G5:G400=0)*(G5:G400<""),0)-1)

entered with ctrl + shift & enter


--


Regards,


Peo Sjoblom



"George" wrote in message
...
I am trying to search a column (C5:C400) to find out when it runs to
a
null
value, then search down a different column (G) starting from that
same
row
and return the first positive number found.

Can anyone help? I've been using the following as a starting point,
but
I'm
stuck on how to complete it.

=INDEX(MATCH(TRUE,G5:G4000),MATCH(TRUE,C5:C400=0, 0))

Thanks!








  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Help in finding Value in Index Array

You have to be *very* precise in your terminology!

What *exactly* do you mean by "null value"?
Empty (blank, unused) cell
Zero length string ( "" )
0 in cell
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"George" wrote in message
...
I am trying to search a column (C5:C400) to find out when it runs to a null
value, then search down a different column (G) starting from that same row
and return the first positive number found.

Can anyone help? I've been using the following as a starting point, but
I'm
stuck on how to complete it.

=INDEX(MATCH(TRUE,G5:G4000),MATCH(TRUE,C5:C400=0, 0))

Thanks!



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Help in finding Value in Index Array

By null value, I mean the cell will be Empty (blank, unused).
Thanks,

"RagDyer" wrote:

You have to be *very* precise in your terminology!

What *exactly* do you mean by "null value"?
Empty (blank, unused) cell
Zero length string ( "" )
0 in cell
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"George" wrote in message
...
I am trying to search a column (C5:C400) to find out when it runs to a null
value, then search down a different column (G) starting from that same row
and return the first positive number found.

Can anyone help? I've been using the following as a starting point, but
I'm
stuck on how to complete it.

=INDEX(MATCH(TRUE,G5:G4000),MATCH(TRUE,C5:C400=0, 0))

Thanks!




  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Help in finding Value in Index Array

Then this should work

=INDEX(C5:C400,MATCH(TRUE,INDEX(INDEX(C5:C400,MATC H(TRUE,G5:G400="",0)):C400,0)0,0)+MATCH(TRUE,G5:G 400="",0)-1)


array entered


--


Regards,


Peo Sjoblom



"George" wrote in message
...
By null value, I mean the cell will be Empty (blank, unused).
Thanks,

"RagDyer" wrote:

You have to be *very* precise in your terminology!

What *exactly* do you mean by "null value"?
Empty (blank, unused) cell
Zero length string ( "" )
0 in cell
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"George" wrote in message
...
I am trying to search a column (C5:C400) to find out when it runs to a
null
value, then search down a different column (G) starting from that same
row
and return the first positive number found.

Can anyone help? I've been using the following as a starting point, but
I'm
stuck on how to complete it.

=INDEX(MATCH(TRUE,G5:G4000),MATCH(TRUE,C5:C400=0, 0))

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
defining an array for INDEX Dave F[_2_] Excel Discussion (Misc queries) 1 October 2nd 07 07:51 PM
Index array question LJoe Excel Worksheet Functions 2 August 27th 07 02:14 PM
Help with an Index Match Array petes_girl via OfficeKB.com Excel Worksheet Functions 3 January 31st 07 09:44 PM
Vlookup with col index no. array Edward Excel Discussion (Misc queries) 1 September 18th 06 08:23 PM
finding the row index for the last value > than some value z.entropic Excel Worksheet Functions 3 April 18th 05 11:32 PM


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