+ Reply to Thread
Results 1 to 5 of 5

Put an "x" in adjacent cell when other cell's value changes

  1. #1
    Registered User
    Join Date
    03-17-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    8

    Put an "x" in adjacent cell when other cell's value changes

    Hello All

    What I'm trying to achieve here is pretty simple but it has me stumped as to which formula/macro to use.

    I have thousands of lines of data in Column F. Column F contains a combination of blank cells as well as cells with alphanumeric values. What I want to do is to is to mark the corresponding adjacent cell in column G with an "x" for every cell value I change in column F.

    e.g. I make a value change in F4, then mark G4 with an "x" to show that F4's original value has changed.
    Last edited by hreal34; 03-17-2012 at 05:51 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Put an "x" in adjacent cell when other cell's value changes

    Hi,

    You'll need to use a WorkSheet_Change() event macro. i.e.

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Put an "x" in adjacent cell when other cell's value changes

    1 quic way to do that is add a helper column (next to F?) and copy all the data from F to the new column. then in H (was G) add =if(F2=G2,"","X"). adjust references as needed and cxopy down
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    03-14-2012
    Location
    Philadelphia, PA, USA
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Put an "x" in adjacent cell when other cell's value changes

    I would think that you would need some way to do the comparison. Perhaps keeping a "original" copy of the data on another sheet and then comparing to that sheet. Something like:
    Please Login or Register  to view this content.
    Where you keep the "working" data on Sheet1 and an "original" copy of the data in Sheet2. You just need to remember to copy the data from Sheet1 to Sheet2 at the appropriate time.

  5. #5
    Registered User
    Join Date
    03-17-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Put an "x" in adjacent cell when other cell's value changes

    Cool. Multiple ways to crack an egg on this one. I'll give them all a try.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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