+ Reply to Thread
Results 1 to 3 of 3

Change sign of number based on validation drop down in another column

  1. #1
    Registered User
    Join Date
    02-20-2014
    Location
    Tegucigalpa, Honduras
    MS-Off Ver
    Excel for Mac 2011
    Posts
    3

    Change sign of number based on validation drop down in another column

    This spreadsheet will be tracking sales and purchases. I want to be able to have any purchases formatted as an expenditure (negative sign or brackets) to show it is money out. Column C "Action" has a drop down with either Buy (infrequent) or Sell. I want to be able to have column I "Unit Price" be a negative number if the corresponding cell in the same row in Column C = "Buy". I do not have these prices formatted as currency as their are 2 different currency used and I don't know how to make the correct currency format appear automatically, though I do have a drop down validation column for which currency the transaction was in, so maybe that is possible. I know this is probably simple, but I don't spend that much time using Excel. I have some sample data in their for the moment.
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Change sign of number based on validation drop down in another column

    I don't think a formula can do this but I'm not an Excel guru. I think a macro would do this easily.
    But a quick question, why don't you enter it as a negative number upfront?
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  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: Change sign of number based on validation drop down in another column

    well when you set up your unit price you could enter it as
    =IF(C4="buy",-1,1)*15
    "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

+ 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 all matching Value based on number change in Column Excel 2007
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 02-20-2014, 11:40 AM
  2. Match Column A's Project number to change based on greater number in new row
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-02-2013, 10:18 AM
  3. Change column in formula based on drop down list
    By tantcu in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-07-2013, 09:17 PM
  4. Replies: 3
    Last Post: 01-31-2013, 09:38 PM
  5. [SOLVED] Change negative sign from end of number to the beginning of the number.
    By GORDON SCALES via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-30-2005, 04:07 AM

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