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: 1
Default MaxVal InCol "or" Compare Cells InCol Highlight Max

Hello all

I want to hold in memory the highest value in the column. Then I want to
compare that value with every cell in that column. I would like to be able to
flag those lower values or highlight them. Any help would be much
appreciated. Thank You.


'Dims

Set rng3 = Range(Range("H17"), Range("H77").End(xlUp))
Dim ifirst As Integer
ifirst = 0

For Each c3 In rng3
If ifirst = 0 Then
Masterc3 = c3
ifirst = 1
Else
varMasterc3 = Split(Masterc3, ".")
varComParec3 = Split(c3, ".")

''Get highest value in each split

If varMasterc3(1) varComParec3(1) Then
c3.Interior.ColorIndex = 24
Else
Masterc3 = c3
End If

Next
'If InStr(1, c3.Text, "1.3.0.0", vbTextCompare) = 0 And c3.Text <
"" Then
'c3.Interior.ColorIndex = 24
'End If

If CheckBox2.Value = False Then Call CLRColourRange2
 
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
Compare two worksheets with "contains" and not "exact" values Fuzzy Excel Worksheet Functions 1 October 4th 09 07:27 AM
in Excel: How do I change "selected cells" highlight color? flameretired New Users to Excel 5 June 24th 09 08:39 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Compare cells in column A ("ID") to column A ("ID)in two differen. Gssjp6423 Excel Worksheet Functions 0 December 5th 06 04:19 PM
How do I set "tab" or "arrow" key to automatically highlight a cel Rhonda Excel Discussion (Misc queries) 1 October 2nd 06 05:58 PM


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