Hi Mark, As you have the query to just highlight the cells in column B, which are there in Column E, so I hv done accordingly. Now if you want to count the matching entries as well, please look at the attached file which I have enhanced as per this new requirement.
Best Regards, -- DILIP KUMAR PANDEY MBA-HR,B COM(Hons.),BCA Mobile: +91 9810929744 dilipan...@gmail.com dilipan...@yahoo.com New Delhi - 110062 On Thu, Oct 15, 2009 at 8:47 PM, Mark Livingstone <namematters...@msn.com>wrote: > > Dilip, thank you! Works great but since it is conditional formatting > that uses "formula is", I can't count the # of colored cells. > > http://www.cpearson.com/excel/CFColors.htm << his code doesn't work > with the "formula is" statement. > > On Oct 15, 9:23 am, Dilip Pandey <dilipan...@gmail.com> wrote: > > Hi Mark, > > > > I have given a try on this and attached a workbook with the scenario > along > > with the desired results. I have used conditional formatting logic to > > achieve the task. > > > > Best Regards, > > -- > > DILIP KUMAR PANDEY > > MBA-HR,B COM(Hons.),BCA > > Mobile: +91 9810929744 > > dilipan...@gmail.com > > dilipan...@yahoo.com > > New Delhi - 110062 > > > > On Wed, Oct 14, 2009 at 10:14 PM, Mark Livingstone > > <namematters...@msn.com>wrote: > > > > > > > > > > > > > Hi. > > > > > I've been trying to put together VBA code that will allow me to match > > > 2 columns with minimal Excel formulas. > > > > > There are 2 columns. 1st column (B3 to B20) has a set of numbers. 2nd > > > column (C3 to C99) has another set of numbers. I need to highlight > > > cells in the 1st column IF the cell's content matches any of the > > > numbers in the 2nd column. > > > > > Ideally, I would like to use VBA code only. Could anyone please cook > > > something up or provide a code that already exists? > > > > > Thanks!!! > > > > > > > > Number matching - by DILipandey.xls > > 27KViewDownload- Hide quoted text - > > > > - Show quoted text - > > > > --~--~---------~--~----~------------~-------~--~----~ ---------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com or Ashish Jain @ 26may.1...@gmail.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 6,500 subscribers worldwide and receive many nice notes about the learning and support from the group. Our goal is to have 10,000 subscribers by the end of 2009. Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe -~----------~----~----~----~------~----~------~--~---
Number matching - rev-by DILipandey.xls
Description: MS-Excel spreadsheet