+ Reply to Thread
Results 1 to 7 of 7

Change Cell value from 0.01 to 1, until condition met

  1. #1
    Registered User
    Join Date
    10-13-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010
    Posts
    20

    Change Cell value from 0.01 to 1, until condition met

    Hello guys,

    i have 1 noob question.

    i want to change A1 value from 0.01 to 1, until A2 > A3. Both A2 and A3 values are dependent on A1.


    thanks in advance

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: Change Cell value from 0.01 to 1, until condition met

    Think you need to expand on this.

    "I want to change the value from 0.01 to 1"
    What do you mean by that? If you change it to 1 it will be 1 from then on. There's no "until". Once it is "changed" to 1 it will stay as 1.
    It has no reflection on A2 being greater than A3.

    So do you mean you want to add 0.01 to A1 until it A2 > A3 (in which case that's what you should say) or do you mean something else?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    10-13-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Change Cell value from 0.01 to 1, until condition met

    for example:

    A1 = 1, in this case A2 = 10 and A3 = 15
    A1 = 2, in this case A2 = 12 and A3 = 13
    A1 = 9, in this case A2 = 16 and A3 = 9

    i want to continue changing A1 values (min 1 - max 20) and stop when A2 > A3.

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: Change Cell value from 0.01 to 1, until condition met

    In those examples there's no pattern to A2 and A3 even though they are dependent on A1.

    So what should A2 and A3 be when A1 is 3 ?

  5. #5
    Registered User
    Join Date
    10-13-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Change Cell value from 0.01 to 1, until condition met

    why does that patter matter?

    i just want to change A1 value from 1 to 20, for every value compare A2 to A3 and stop if A2 > A3.

  6. #6
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Change Cell value from 0.01 to 1, until condition met

    Why does the pattern matter? Because there is a good chance that one can derive the value between .01 and 1 which will return the desired result, rather than iterating for it. (Its also possible that no value in that range will give the desired result)


    Have you looked a Goal Seek.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  7. #7
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: Change Cell value from 0.01 to 1, until condition met

    @lugburz:

    YOU SAY A1 WILL HAVE VALUES FROM 1 TO 20.
    YOU'VE SUPPLIED RESULTS FOR A2 AND A3 WHEN A1 IS 1, 2 AND 9.

    HOW ARE WE SUPPOSED TO KNOW WHAT THE VALUES IN A2 AND A3 ARE WHEN YOU DON'T TELL US????
    IF THERE WAS A PATTERN WE COULD PERHAPS WORK OUT A FORMULA.
    AS IT STANDS AT THE MOMENT WE'LL HAVE TO GUESS.

    OF COURSE, IT DOESN'T MATTER TO ME ONE IOTA WHETHER YOU SOLVE THIS OR NOT.
    BUT I EXPECT IT DOES TO YOU...

    SO THE ONUS IS ON YOU TO SUPPLY AS MUCH INFORMATION AS POSSIBLE IF YOU WANT IT SOLVED RATHER THAN QUESTION THE METHODS TAKEN TO ACHIEVE THIS.

+ 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. [SOLVED] Change cell formula (C4) when a if condition is met
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-22-2013, 03:52 AM
  2. [SOLVED] Change cell color once condition is met
    By miss_chloe in forum Excel General
    Replies: 10
    Last Post: 10-08-2013, 10:17 AM
  3. [SOLVED] Change cell colour if condition not met
    By robrobet in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-04-2013, 04:45 PM
  4. [SOLVED] Loop to change a cell until a condition is met
    By stephen11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2012, 07:34 AM
  5. auto change cell formula on condition of worksheet change in other cells
    By futurejock in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-01-2009, 12:11 AM
  6. Change the Row Colour, using a cell condition
    By belgarth58 in forum Excel General
    Replies: 1
    Last Post: 02-07-2006, 03:42 PM
  7. Replies: 0
    Last Post: 01-11-2006, 07:31 AM
  8. change image from cell condition
    By swieduwi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2005, 02:47 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