+ Reply to Thread
Results 1 to 4 of 4

Change one cell based on the values of two cells

  1. #1
    Registered User
    Join Date
    09-22-2011
    Location
    Denver, CO
    MS-Off Ver
    Excel 2007
    Posts
    1

    Change one cell based on the values of two cells

    Hello, I am trying to make one cell post a dollar amount based on the information from two cells. the code I am using now is =IF(D17="Dependent",AND(H9="1AY")) in the cell I have that code it gives me a value of TRUE, but I want it to give me the value of $3,500.00. Then I need to be able to change that $3,500.00 to $4,500.00 if H9="2AY", any help is greatly appreciated. This has been giving me a headache for a while now.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Change one cell based on the values of two cells

    The syntax is
    =IF(AND(D17="Dependent",H9="1AY"),3500,"")

    Use the built in help to understand formula.
    Put the cursor in the formula bar within the formula you wish to use then click the fx button to the left.
    Then click Help on this function
    Last edited by Marcol; 09-22-2011 at 01:33 PM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Contributor
    Join Date
    04-21-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: Change one cell based on the values of two cells

    Hi,

    Thanks, I have a similar requirement with more combinations.

    Like, if two cell values are 'x' and 'y' the target cell value should become "john", in case of other combinations, the same target cell value should become as "peter".

    I would like to know how do we embed these as codes in the worksheet? or in a module? because I don't need these to be in formula tab as is it is not protected.I require this as an automatic update without using any button or userform.

    Hope my requirement is clear. Can anyone help me on this?

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Change one cell based on the values of two cells

    Sivdin

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

+ 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