+ Reply to Thread
Results 1 to 3 of 3

Changing one cell based on the value of another cell

  1. #1
    Registered User
    Join Date
    09-12-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    1

    Changing one cell based on the value of another cell

    Hello,

    I am trying to make one cell automatically change to a negative number based on the text in another cell.

    For example:

    If Cell B4 contains "W" for withdrawal, then I would like C4 to automatically be a negative number.
    So B4 = "W" then C4 ="-$100.00"

    Thank you!

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Changing one cell based on the value of another cell

    There are various options but try this example:

    A1 =100 A2=W A4 = =if(A2="W", a1*-1,a1)


    click on the * Add Reputation if this was useful or entertaining.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Changing one cell based on the value of another cell

    Maybe:

    Please Login or Register  to view this content.

+ 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] Changing fill color of shapes based on changing cell value
    By Stefan1983 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2012, 10:33 AM
  2. Replies: 2
    Last Post: 01-27-2012, 09:40 PM
  3. Changing cell fill colour based on date in cell - Multiple rows
    By ExcelNewb2010 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2010, 07:30 AM
  4. Find Last Cell In range, and changing another Cell based on offset text
    By radar_jynx in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-05-2009, 04:52 AM
  5. macro: changing cell color based on date in cell
    By CindyG in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-13-2009, 12:10 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