#1   Report Post  
Posted to microsoft.public.excel.misc
FIRSTROUNDKO via OfficeKB.com
 
Posts: n/a
Default FIND POSITIVE VALUE

Hi,

how do I select the first positive value in collumn K from row 1 downwards?

Thanks in advance

Darren

--
Message posted via http://www.officekb.com
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default FIND POSITIVE VALUE

Try this:

=INDEX(K1:K100,MATCH(TRUE,(K1:K1000),0))

Note: Commit that array formula by holding down the [Ctrl][Shift] keys and
press [Enter].

Adjust range references to suit your situation.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"FIRSTROUNDKO via OfficeKB.com" wrote:

Hi,

how do I select the first positive value in collumn K from row 1 downwards?

Thanks in advance

Darren

--
Message posted via http://www.officekb.com

  #3   Report Post  
Posted to microsoft.public.excel.misc
Jim May
 
Posts: n/a
Default FIND POSITIVE VALUE

one way (in a standard module) paste in:

Sub FindPositiveVal()
Dim lrow As Long
Dim MyRng As Range
Sheets("Sheet1").Range("K1").Select ' CHANGE Sheet Name
lrow = Cells(Rows.Count, 11).End(xlUp).Row
Set MyRng = Range("K1:K" & lrow)
For Each cell In MyRng
If ActiveCell.Offset(1, 0) = 1 Then
ActiveCell.Offset(1, 0).Select
Exit Sub
Else: ActiveCell.Offset(1, 0).Select
End If
Next cell
End Sub

HTH
Jim May


"FIRSTROUNDKO via OfficeKB.com" <u15639@uwe wrote in message
news:5da860e3ce380@uwe...
Hi,

how do I select the first positive value in collumn K from row 1
downwards?

Thanks in advance

Darren

--
Message posted via http://www.officekb.com



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
Find and Replace blakrapter Excel Worksheet Functions 3 December 15th 05 12:25 AM
Code needed to find records from bottom up Andy Excel Discussion (Misc queries) 4 December 5th 05 03:27 AM
find a cells from a range of cell kelvintaycc Excel Worksheet Functions 2 April 2nd 05 07:20 PM
add only positive numbers and avg in a column rich Excel Worksheet Functions 6 March 10th 05 09:19 AM
Excel has a "Find Next" command but no "Find Previous" command. Michael Fitzpatrick Excel Discussion (Misc queries) 2 January 10th 05 11:45 PM


All times are GMT +1. The time now is 06:03 PM.

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"