Conditional formatting for cells depending on other cells ranges
Solved/Closed
Derrall
Posts
6
Registration date
Thursday April 10, 2014
Status
Member
Last seen
July 1, 2014
-
Apr 10, 2014 at 02:31 PM
Derrall Posts 6 Registration date Thursday April 10, 2014 Status Member Last seen July 1, 2014 - Apr 16, 2014 at 03:03 PM
Derrall Posts 6 Registration date Thursday April 10, 2014 Status Member Last seen July 1, 2014 - Apr 16, 2014 at 03:03 PM
Related:
- Conditional formatting for cells depending on other cells ranges
- Clear only the formatting from the selected cell (leaving the content) - Guide
- How would you change all cells containing the word pass to green - Excel Forum
- "Publish your article in rss format for other websites to syndicate" ✓ - Internet & Social Networks Forum
- Problem connecting certain websites ✓ - Internet & Social Networks Forum
- Suggest me free plagiarism checker websites! - Software Forum
3 responses
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Apr 15, 2014 at 11:31 AM
Apr 15, 2014 at 11:31 AM
Hi Derrall,
Or use this formula in conditional formatting in cell B4:
=MAX($H$4:$H$7)=H4
Now drag the formula down applying format only.
Best regards,
Trowa
Or use this formula in conditional formatting in cell B4:
=MAX($H$4:$H$7)=H4
Now drag the formula down applying format only.
Best regards,
Trowa
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Apr 11, 2014 at 01:39 AM
Apr 11, 2014 at 01:39 AM
I am rephrasing sit see whether it tells what you want
i have some entries (numbers) in B4 to BV7
I have some number H4 to H7 also
if any cells in B4 to B7 has got the maximum of H4:H7 it shd be colored green
if so try this macro
i have some entries (numbers) in B4 to BV7
I have some number H4 to H7 also
if any cells in B4 to B7 has got the maximum of H4:H7 it shd be colored green
if so try this macro
Sub test()
Dim r As Range, c As Range, mmax As Double
Set r = Range("B4:B7")
mmax = WorksheetFunction.Max(Range("H4:H7"))
r.Cells.Interior.ColorIndex = xlNone
For Each c In r
If c = mmax Then c.Interior.ColorIndex = 4
Next c
End Sub
Derrall
Posts
6
Registration date
Thursday April 10, 2014
Status
Member
Last seen
July 1, 2014
Apr 16, 2014 at 03:03 PM
Apr 16, 2014 at 03:03 PM
This is 100% what i needed thank you TrowaD ^_^
And venkat1926 thank you for your assistance too!
Again sorry if my question was asked incorrectly, in the end i got exactly what i needed!
And venkat1926 thank you for your assistance too!
Again sorry if my question was asked incorrectly, in the end i got exactly what i needed!