+ Reply to Thread
Results 1 to 8 of 8

Edit code to get negative amounts

  1. #1
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Edit code to get negative amounts

    Hello Experts
    With John Topley's code, I have created a simiilar new code. I need help to get the amounts which are positive I need them in negative. Still I am not aware how to edit this code. The headings of the Returns sheet are colored yellow for amounts which are needed in negative. (columns H, K, L M N and O)
    Thank you in advance.
    Attached Files Attached Files
    Last edited by RAJESH SHAH; 03-31-2023 at 02:41 AM. Reason: #Solved by John Topley

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Edit code to get negative amounts


    Hello,

    if these columns were created via a VBA procedure so obviously just update its code to make them negative …
    And if it's not the case so just using an Excel beginner formula !

  3. #3
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Edit code to get negative amounts

    As far as I understand, this line needs to be edited but how I am not aware.
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Edit code to get negative amounts

    An Excel VBA beginner (me!) solution


    Please Login or Register  to view this content.
    You can use the commented lines if you need to check for blank/non-numeric cells

    P.S Are you still using Excel 2007? If not, please update your profile with your Excel version.
    Last edited by JohnTopley; 03-31-2023 at 02:19 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Edit code to get negative amounts

    Thanks John Topley. It gave me the correct expected result.

  6. #6
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Edit code to get negative amounts

    Sorry. Once again I am not able to add Rep to your post. Looks like you have exceed the total limit of Rep..

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Edit code to get negative amounts

    other option:

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,147

    Re: Edit code to get negative amounts

    Much needed option. The earlier code was taking forever to display the result. Testing it now.. It will take some time. Will revert back.

+ 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. Prevent from entering negative amounts
    By oteixeira in forum Excel General
    Replies: 1
    Last Post: 12-23-2008, 05:47 PM
  2. Adding just the negative amounts possible?
    By dm13m4 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-28-2007, 10:04 AM
  3. [SOLVED] I cannot get Excel to put negative amounts in brackets. Help !
    By edrobbie in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 07:05 AM
  4. [SOLVED] I cannot get Excel to put negative amounts in brackets. Help !
    By edrobbie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 07:05 AM
  5. [SOLVED] I cannot get Excel to put negative amounts in brackets. Help !
    By Frustrated of Great Yarmouth in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-06-2005, 06:05 AM
  6. [SOLVED] I cannot get Excel to put negative amounts in brackets. Help !
    By Frustrated of Great Yarmouth in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 04:05 AM
  7. [SOLVED] I cannot get Excel to put negative amounts in brackets. Help !
    By Frustrated of Great Yarmouth in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-26-2005, 01:05 PM
  8. [SOLVED] allocating between positive and negative amounts
    By THosier in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-07-2005, 10:06 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