+ Reply to Thread
Results 1 to 3 of 3

Check if input cells change

  1. #1
    Registered User
    Join Date
    08-08-2016
    Location
    Oslo
    MS-Off Ver
    2013
    Posts
    7

    Check if input cells change

    Hi,

    I use iterative calculations in an excel-workbook I have made. For some of the calculations I need a counter. It should start at 0,95 and decrease by 0.01 for each iterative calculation. This I've managed. But I need it to restart at 0,95 when someone changes an input cell in the workbook (one of 3 possible input cells). My plan was to make another cell contain 1 if something is changed and 0 if something is not changed. Then restart at 0,95 if that cell shows 1.

    Then it should work like this: If someone changes the input cell the check cell changes to 1, then the counter changes to 0,95. For the next iteration nothing has changed so the check cell changes to 0 and the counter changes to 0,94 etc.

    I thought you could just make another cell equal the input cell and then put the check cell in between because excel starts calculations at A1 and then move to the right and down. This didn't work. Does anyone know how to fix this? Or another solution? Would prefer to solve it without VBA, but if that isn't possible I can do that aswell.

    Thank you for any answers!

  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,813

    Re: Check if input cells change

    I think you WILL need VBA. And you would use a Worksheet Change Event handler to monitor the three Input cells. If any of them change, reset the starting value.
    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
    Registered User
    Join Date
    08-08-2016
    Location
    Oslo
    MS-Off Ver
    2013
    Posts
    7

    Re: Check if input cells change

    Okay.

    How can I reset the value with VBA? If I set D5554 = 0,95 in the VBA code, will it not overwrite the equation that was there already?

    The cell looks like this now:
    =IF(ISERROR(D554);D553;IF(OR(D554<0,65;D548=1);D553;IF(D583=1;D554-0,01;D554)))

    D548 = Check if input is changed (doesn't work)
    D553 = The start value (0,95)
    D554 = The counter
    D583 = The main check, as long as this is 1 the counter will decrease

+ 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. to check value in cells change in a specific time, i.e. 30 second
    By anassagora in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-29-2016, 01:55 PM
  2. Replies: 2
    Last Post: 11-27-2014, 02:48 PM
  3. Check particular blank cells in a row based on input in D column
    By weareallstardust in forum Excel General
    Replies: 1
    Last Post: 09-24-2014, 09:51 AM
  4. How to change data input in cells automatically?
    By Frank121977 in forum Excel General
    Replies: 3
    Last Post: 10-08-2013, 12:06 AM
  5. Change the Formatting of Cells Based on Input?
    By RDog08 in forum Excel General
    Replies: 2
    Last Post: 07-25-2011, 09:48 PM
  6. Check if cells have input
    By Aquila in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2010, 05:01 PM
  7. [SOLVED] check input in cells
    By Pierre via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2005, 07:10 AM

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