+ Reply to Thread
Results 1 to 7 of 7

Thread: Dectecting Changes in Excel

  1. #1
    Registered User
    Join Date
    03-09-2010
    Location
    Sydney
    MS-Off Ver
    Excel 2003
    Posts
    10

    Dectecting Changes in Excel

    Hi guys, I'm quite new to excel so please forgive me if this question seems too straightforward.

    Basically what I want to do is to scan through column X and detect changes.For rows that has no change, nothing happens. For rows that has changes, a value will appear in column Y. Here's an example:


    X Y
    A
    A
    A
    B J
    B
    B
    B
    C J
    C
    C
    D J
    D

    So basically I want all the first of each value marked. Can anyone help? I'm desperate. I'm dealing with 25,000 rows and have to do this manually.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,351

    Re: Dectecting Changes in Excel

    Assumes your data is in column A and the X and Y are column headers in row 1.

    B2: =IF(A2<>A1,"J","")
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    03-09-2010
    Location
    Sydney
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Dectecting Changes in Excel

    Thanks a lot Andy! You just saved me HOURS.... a DAY!

    But your formula currently displays "J" for the last row a particular variable, not the first row of a new variable. This can easily be fixed by adding a cell but do you think there's anyway to correct this?

    Thanks again.

  4. #4
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,588

    Re: Dectecting Changes in Excel

    Hi valandil

    B2: =IF(A2=A1,"","J")
    Last edited by Marcol; 03-09-2010 at 08:57 PM.

  5. #5
    Registered User
    Join Date
    03-09-2010
    Location
    Sydney
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Dectecting Changes in Excel

    Thank you very much, Marcol. That works perfectly.

  6. #6
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,588

    Re: Dectecting Changes in Excel

    No problem

    Andy has to sleep sometime!

    If this resolves your problem. Please mark your post [Solved]

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,351

    Re: Dectecting Changes in Excel

    If it displays for the last item then the assumptions I specified are not true for your data layout. Or you enter the formula in the wrong cell.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

+ 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.2.0