![]() |
PROBLEM FINDING MINIMUM
Minval = Application.WorksheetFunction.Min(Range(Cells(1, 6), Cells(1, 8)))
CHEAPCOL% = Rows(1).Find(Minval, Cells(1, 5), LookIn:=xlFormulas).Column column 6 7 8 where row 1 reads 12.35 12.30 12.53 code returns 12.3 as the minimum value (correct) But CHEAPCOL% is returned as column 6 (wrong) How can this be resolved? Thanks Sunil |
PROBLEM FINDING MINIMUM
If you change your code to
CHEAPCOL% = Rows(1).Find(Minval, Cells(1, 6), LookIn:=xlFormulas).Column it will return column 7 -----Original Message----- Minval = Application.WorksheetFunction.Min(Range(Cells(1, 6), Cells(1, 8))) CHEAPCOL% = Rows(1).Find(Minval, Cells(1, 5), LookIn:=xlFormulas).Column column 6 7 8 where row 1 reads 12.35 12.30 12.53 code returns 12.3 as the minimum value (correct) But CHEAPCOL% is returned as column 6 (wrong) How can this be resolved? Thanks Sunil . |
All times are GMT +1. The time now is 12:09 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com