+ Reply to Thread
Results 1 to 4 of 4

Saving a continuously changing cell value to another cell, once only.

  1. #1
    Registered User
    Join Date
    09-17-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Saving a continuously changing cell value to another cell, once only.

    Hi, I'm hoping someone can help with my problem.

    Say I'm working with Columns A, B and C and Rows 1-10.

    Each cell in Column A is linked to continuously changing numbers in another part of the sheet (usually all different numbers).

    I have a formula in the corresponding cell in Column B looking for certain requirements to match, one of which is the number in its corresponding cell in Column A. If all requirements match then the cell in Column B says "yes".

    The cell in Column B will keep changing from "yes" to "no" depending on whether I have a match. All I want is for the corresponding cell in Column C to record the value from the corresponding cell in Column A when the corresponding cell in Column B says "yes". But I only want it to do this on the very FIRST time that the corresponding cell in Column B says "yes". So if it goes "yes", "no", "yes" with different values in A, I only want it to keep the value from the first "yes".

    So when I have that value saved in C for whichever cell it is (1-10) then that's it, job done for that cell. But I then still need it to carry on looking for "yes" in the other cells in B and doing the same thing.

    My VBA is very limited and I've only succeeded in having the number appear and change or not appear at all. I've also managed to make the sheet crash numerous times.

    Any help would be greatly appreciated.

    Thank you.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Saving a continuously changing cell value to another cell, once only.

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.


    Please confirm your version of Excel and update your profile if necessary.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Saving a continuously changing cell value to another cell, once only.

    Are you required to use VBA? If not, I started with this time stamp tutorial (https://chandoo.org/wp/timestamps-excel-formula-help/ ) and adapted the formula so that it changes when "yes" appears in column B, with an added "reset" condition so that I can reset all of the values 0. Note that you must "enable iteration" in your Excel options. If you are not allowed to enable iteration, then this won't work for you.

    See what you think.
    Attached Files Attached Files
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    09-17-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Saving a continuously changing cell value to another cell, once only.

    Thank you so so much MrShorty not only for taking the time to read and understand my description perfectly, but also for coming up with the perfect solution. It works exactly as I wanted and not having to use VBA is a bonus. Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 09-24-2021, 11:09 AM
  2. [SOLVED] Changing Cell Value format as desired while saving the file in the current directory
    By Ravana in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-24-2017, 04:25 PM
  3. [SOLVED] Formula for a continuously changing array
    By gururajendrak in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 03-01-2013, 12:05 PM
  4. Copy and paste cell range continuously
    By macquhele in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-28-2012, 12:48 PM
  5. Continuously adding to one cell
    By mijomac in forum Excel General
    Replies: 5
    Last Post: 03-27-2011, 03:15 PM
  6. recording continuously changing data in excel.
    By ffffrrrreeeeaaaakkkk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2010, 02:07 PM

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