+ Reply to Thread
Results 1 to 6 of 6

if true then change the value of a different cell

  1. #1
    Registered User
    Join Date
    02-12-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    if true then change the value of a different cell

    Dear All,

    This has been driving me crazy. I am trying to put an if command on cell C6, which will check to see whether cell A1's value is greater than six. if so, it should add to its value 100, otherwise it should deduct 23.

    I really appreciate your help guys!

    Jon Deavuila

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: if true then change the value of a different cell

    Not quite sure I understand....

    you mean?

    =if(A1>6,A1+100,A1-23)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-12-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: if true then change the value of a different cell

    NBVC,

    Thanks for the quick reply.

    In your example, cell c3 will change and I wanted the original cell to change. It is possible, right?

    Thanks again

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: if true then change the value of a different cell

    For the original cell to change, you need to use VBA code (in the form of a change event macro)... but I am not sure why then you are using C6 to check A1 and then change A1...?

  5. #5
    Registered User
    Join Date
    02-12-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Smile Re: if true then change the value of a different cell

    MMM... so I guess there isn't any way of doing it directly through the excel. I am not very acquainted with VBA.

    Nevertheless, many thanks for your help!

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: if true then change the value of a different cell

    I am just not understanding why you say you want to put a command in C6 to check cell A1 and then change A1? Doesn't seem to make sense to me....

    Can you describe with example what you really want to do?

+ 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