LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default smallest

Hi, in ranges f8:f15 i have
3.98
1463
3.98
1567
3.98
1572
4
2
What id like to do is look for the smallest value in every other cells.
So the first cell = 3.98, next = 3.98 etc. At the moment I do,
odds(1) = Range("f8")
odds(2) = Range("f10")
odds(3) = Range("f12")
odds(4) = Range("f14")
Count = 1000
For i = 1 To 4
If odds(i) < 0 Then
If odds(i) < Count Then
Count = odds(i)
hand = i
Range("a40") = hand
Range("b40") = Count
End If
End If


the hand value is which one of the odds() holds the value, to be used
later. This works ok, but I was wondering if there a more efficient
way. I though maybe a formula in the worksheet itself. Any ideas?
Regards Robert

 
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
Smallest positive value danpt Excel Discussion (Misc queries) 2 April 29th 09 02:22 AM
1st smallest, 2nd smallest,3rd smallest checkQ Excel Discussion (Misc queries) 8 May 19th 08 02:16 AM
Finding Smallest Value Phil Excel Discussion (Misc queries) 5 May 29th 06 01:27 AM
next smallest Chickalett Excel Discussion (Misc queries) 0 March 15th 06 06:51 PM
smallest jan jan Excel Worksheet Functions 1 January 14th 05 01:41 PM


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