+ Reply to Thread
Results 1 to 4 of 4

populate a cell based on conditions in other cells

  1. #1
    Forum Contributor
    Join Date
    10-03-2005
    Posts
    185

    populate a cell based on conditions in other cells

    Hello,

    I have values being updated automatically in a cell, lets say cell A1.

    I would like to put a formula in another cell, lets say cell B1, which checks for a value in A1 and if true, puts some text in another cell, lets say cell C1, D1, E1.


    So, B1 will look something like, =IF(A1<20, C1="Buy":D1="0.91":E1="LMT","Do Nothing")

    I know above is not a valid formula / format but I put it like that with my intent.

    I have been looking online and can't seem to find anything that will do this through a formula. While I would like to do it with a formula, I am open to macros if absolutely needed (the reason I am trying to avoid a formula is because I have few other macros running constantly and updating values, so if I have another macro it might be too much for excel / my computer).

    Thank you in advance. This forum is yet to disappoint me!!

    Jay

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: populate a cell based on conditions in other cells

    ..I would like to put a formula in another cell, lets say cell B1, which checks for a value in A1 and if true, puts some text in another cell, lets say cell C1, D1, E1.
    I can tell you for sure that you can not do this, using formulas. Why don't you use formulas "straight" to the cells(C1,D1,E1)?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: populate a cell based on conditions in other cells

    you'll need a separate formula in each cell
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Contributor
    Join Date
    10-03-2005
    Posts
    185

    Re: populate a cell based on conditions in other cells

    The reason I can't use separate formula in each cell is because its a sheet with complicated macros set up already (totalling 1000 - 2000 lines of macro codes) which I didn't write. So the cells where I need these values, as soon as the condition is met values are erased from those cells. So as soon as condition is fulfilled, I need to get these values on the cells so that an order can be submitted and as soon as that order is submitted those values are erased.

    Well if there is no way to do it using formula then I will try macros to copy but is there a way for me to monitor a cell and as soon as a condition is met copy paste values. The part that I am not sure about is, how to constantly monitor the value in a cell as opposed to do it one time. Is it possible to call a macro from a formula as soon as a condition is true (in a if function for example)?

    Jay

+ 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.6.0 RC 1