Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2006

Tip: Looking for answers? Try searching our database.

Work around Conditional Formatting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy Chan - 01 Jan 2006 13:55 GMT
Dear all,

   There are 2 worksheets (Sheet1, Sheet2) containing similar data in my
workbook. I want to underline the text in a cell in Sheet2 if the text in
that cell is the same as the cell in the same place in Sheet1. (For example,
if Sheet1!A1 = Sheet2!A1, then Sheet2!A1 is underlined.) Can I write a
user-defined function to check whether the contents in two cells are equal?
Thanks in advance.

Best Regards,
Andy
Bernard Liengme - 01 Jan 2006 14:06 GMT
Chips has lots of stuff on duplicates, see www.cpearson.com

Signature

Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

> Dear all,
>
[quoted text clipped - 7 lines]
> Best Regards,
> Andy
Bernard Liengme - 01 Jan 2006 14:12 GMT
Oops - his name is Chip (singular)!
Goodbye Mr Chips!
Signature

Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

> Chips has lots of stuff on duplicates, see www.cpearson.com
>
[quoted text clipped - 9 lines]
>> Best Regards,
>> Andy
David McRitchie - 02 Jan 2006 17:18 GMT
Hi Andy,
Please include the complete question in the text body,  one should
not be expected to look at the subject to understand the question
once the question is actually being viewed.

Conditional Formatting unfortunately cannot refer to another sheet,
but you can use a defined name for a reference and use that.
Select  Cell A1 on Sheet2  then place   sht2 into the name box.
as a shortcut to using    Insert, Name, Define, ...

Then select the area of interest on Sheet1  with cell A1 as the active cell.
Format, Conditional Formatting,
   Condition 1 Formula is:    =A1=OFFSET(sht2,ROW()-1,COLUMN()-1)

You might want to use a pattern color instead of using  Font, underscore
to try to underscore a empty cell.

---
HTH,
David McRitchie, Microsoft MVP - Excel    [site changed  Nov. 2001]
My Excel Pages:  http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page:        http://www.mvps.org/dmcritchie/excel/search.htm

> Dear all,
>
[quoted text clipped - 7 lines]
> Best Regards,
> Andy
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.