+ Reply to Thread
Results 1 to 5 of 5

Matching cells with equal values

Hybrid View

LukeBhatia Matching cells with equal... 09-14-2011, 10:49 AM
Domski Re: Matching cells with equal... 09-14-2011, 10:52 AM
LukeBhatia Re: Matching cells with equal... 09-14-2011, 11:09 AM
scottylad2 Re: Matching cells with equal... 09-14-2011, 11:14 AM
Domski Re: Matching cells with equal... 09-14-2011, 11:19 AM
  1. #1
    Registered User
    Join Date
    09-14-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2003
    Posts
    2

    Matching cells with equal values

    Hi,

    Sorry if this is a newbie question! I have tried to use the countif function but as there is not set condition I am having trouble. I think it should be simple enough.

    I have two columns of dates - all I want to do is flag any instances when the date in column 1 = the date in column 2

    thanks in advance!

    L

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Matching cells with equal values

    Can you post a small sample workbook showing what you are trying to achieve?

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    09-14-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Matching cells with equal values

    06/05/2010 06/09/2010
    06/05/2010 06/09/2010
    06/05/2010 06/09/2010
    06/05/2010 06/09/2010
    06/05/2010 06/09/2010
    06/05/2010 06/09/2010
    06/05/2010 06/09/2010
    06/05/2010 06/09/2010
    06/05/2010 13/09/2010
    06/05/2010 06/09/2010
    06/05/2010 06/09/2010
    06/05/2010 06/09/2010


    I have two really long lists of dates as above - and just want to flag up where the date in Column A = the date in Column B

  4. #4
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: Matching cells with equal values

    Quote Originally Posted by LukeBhatia View Post
    06/05/2010 06/09/2010
    06/05/2010 06/09/2010
    06/05/2010 06/09/2010
    06/05/2010 06/09/2010
    06/05/2010 06/09/2010
    06/05/2010 06/05/2010
    06/05/2010 06/05/2010
    06/05/2010 06/09/2010
    06/05/2010 13/09/2010
    06/05/2010 06/09/2010
    06/05/2010 06/09/2010
    06/05/2010 06/09/2010

    Assuming your Data is A1:B10 and you had dates matching as above, what are you looking for? All the dates in Column A would match the two cells i've altered, how would you like that to show or do you wish only the cells that match in Column B to be highlighted?

    If you would just like the column B data thats matching highlightes, Highlight the cells B1:B10, open Conditional Formatting, go to new rule, and paste this in =COUNTIF($A$1:$A$12,B1)>1 and format with a colour, then click ok
    Last edited by scottylad2; 09-14-2011 at 11:20 AM.
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  5. #5
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Matching cells with equal values

    =A1=B1 copied down will return TRUE if the corresponding dates match although I suspect that is not what you really want.

    It's preferable to attach a real workbook showing the desired result.

    Dom

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1