HIGHLIGHT SAME VALUE OF COLUMN B IN COLUMN D
Closed
KANSARA
-
Sep 24, 2009 at 04:32 AM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Jun 2, 2010 at 01:14 AM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Jun 2, 2010 at 01:14 AM
Related:
- HIGHLIGHT SAME VALUE OF COLUMN B IN COLUMN D
- Display two columns in data validation list but return only one - Guide
- How to delete column in word - Guide
- Folder highlight - Download - Customization
- Tweetdeck remove column - Guide
- Excel count occurrences of string in column - Guide
4 responses
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Sep 24, 2009 at 06:56 AM
Sep 24, 2009 at 06:56 AM
run this macro
confirm whether you get what you want
confirm whether you get what you want
Sub test() Dim rng As Range, c As Range, cfind As Range, rng1 As Range Worksheets("room list").Activate Set rng = Range(Range("D2"), Range("D2").End(xlDown)) Set rng1 = Range(Range("B2"), Range("B2").End(xlDown)) For Each c In rng Set cfind = rng1.Cells.Find(what:=c.Value, lookat:=xlWhole) If Not cfind Is Nothing Then c.Interior.ColorIndex = 3 Next c End Sub
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Sep 25, 2009 at 05:40 AM
Sep 25, 2009 at 05:40 AM
did you try the macro?
do you where to park the macro?
do you know how to run the macro
what exactly did you get and what exactly do you want ?
then the macro can also be modifed.
or you can post a small extract of your sheet.
do you where to park the macro?
do you know how to run the macro
what exactly did you get and what exactly do you want ?
then the macro can also be modifed.
or you can post a small extract of your sheet.
kansara
Posts
2
Registration date
Thursday September 24, 2009
Status
Member
Last seen
September 25, 2009
Sep 25, 2009 at 02:11 AM
Sep 25, 2009 at 02:11 AM
Actually, I am not that much good in excel. So, I think I cant do this properly.
Can you guide me more please?
I will give you the perfect names of my sheet and column.
Sheet name is Room List. In that sheet, I have 4 columns.
Column A = name, column B= occupied room numbers, C= stay status (In house or vacant room), D= Total room numbers.
If I write room number in column B, which is already existing in column D somewhere, find out that cell in column D and change the color of that column D cell, which contains same number which I wrote in column B.
I appreciate your response sir......Thank a millions.
Can you guide me more please?
I will give you the perfect names of my sheet and column.
Sheet name is Room List. In that sheet, I have 4 columns.
Column A = name, column B= occupied room numbers, C= stay status (In house or vacant room), D= Total room numbers.
If I write room number in column B, which is already existing in column D somewhere, find out that cell in column D and change the color of that column D cell, which contains same number which I wrote in column B.
I appreciate your response sir......Thank a millions.
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Jun 2, 2010 at 01:14 AM
Jun 2, 2010 at 01:14 AM
quote
chompgator - Jun 2, 2010 4:57am BST Hey, I got this working in Excel 2007, once, but now every time I enter it on the spreadsheet and run the Macro, it freezes my Excel, do you know why that might be? You didnt write it for Excel 2003, instead of 2007, did ya?
Thanks for the help
unquote
I must have written the macro in excel 2002. that does not mean it should not work in ecel 2007
please post the macro you are using
chompgator - Jun 2, 2010 4:57am BST Hey, I got this working in Excel 2007, once, but now every time I enter it on the spreadsheet and run the Macro, it freezes my Excel, do you know why that might be? You didnt write it for Excel 2003, instead of 2007, did ya?
Thanks for the help
unquote
I must have written the macro in excel 2002. that does not mean it should not work in ecel 2007
please post the macro you are using
Jan 4, 2010 at 01:30 AM
this is a great macro ..saved a lot of my time
Jan 20, 2010 at 01:14 AM
For those who can't use it...try changing these:
"room list" <name of you work sheet>
"B2" <column&line FROM which you want to highlight (until the end) >
"D2" <collumn&line IN which you want to highlight the values from B2 (until the end) >
whith the ones in your workbook.
Jun 1, 2010 at 11:57 PM
Thanks for the help