+ Reply to Thread
Results 1 to 4 of 4

change minis figure to zero

  1. #1
    Registered User
    Join Date
    10-18-2013
    Location
    aldershot
    MS-Off Ver
    excel 2007
    Posts
    2

    change minis figure to zero

    Hi
    I am using MS query to extract data from a database
    in column E I have the order qty in column F the delivered qty in column I formula E2-F2 to give outstanding
    in column L I have a formula that multiply column I by the price to give an outstanding value

    if we over deliver columns F and I have a minus figure which means to total sum of L is incorrect

    I am looking for a formula that will leave column L at 0 if column F is greater than E or VBA code that would change column F to 0 if greater than column E

    thanks for your time
    Steve

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: change minis figure to zero

    Welcome to the forum!

    Why does it need to be VBA? Can you not build something into the formula that generates the number?

    Something like:

    =MAX(0,your_formula)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-18-2013
    Location
    aldershot
    MS-Off Ver
    excel 2007
    Posts
    2

    Re: change minis figure to zero

    thanks Ali that work a treat

    steve

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: change minis figure to zero

    No problem!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Spreadsheet working on PCs and Macbooks but not on iPads or iPad minis
    By Wendy Cavanagh in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 5
    Last Post: 11-18-2014, 11:05 PM
  2. amount in figure to change in words
    By Shihab in forum Excel General
    Replies: 1
    Last Post: 02-25-2014, 04:35 AM
  3. Replies: 4
    Last Post: 02-03-2014, 08:05 AM
  4. Date change to value figure
    By Shermaine2010 in forum Excel General
    Replies: 4
    Last Post: 07-14-2011, 02:28 AM
  5. Replies: 7
    Last Post: 06-13-2006, 07:49 PM
  6. [SOLVED] how to change figure to words
    By rajeev kejriwal in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-07-2006, 08:05 AM
  7. change figure to text
    By randall1000 in forum Excel General
    Replies: 3
    Last Post: 01-28-2005, 02: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