+ Reply to Thread
Results 1 to 6 of 6

ignoring £0 total in cell

  1. #1
    Registered User
    Join Date
    12-03-2008
    Location
    UK
    Posts
    22

    Question ignoring £0 total in cell

    Hi

    I am a excel novice and can't seem to find a solution to this problem, there's most likely a simple solution.

    I want to calculate the total of N - M in L only if N is > £0,
    If I have not got a selling price in N how can I make cell L show blank?
    I have attached a sample of the sheet.

    Thanks for any help you can offer
    Last edited by ace2302; 12-04-2008 at 06:23 AM.
    Peter
    onwards and upwards

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    If your formula is =N1-M1, you can make that stay blank by changing it to this:

    =if(N2<=0,"",N2-M2)
    Last edited by JBeaucaire; 12-04-2008 at 06:02 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    12-03-2008
    Location
    UK
    Posts
    22
    Hi
    Thanks for your reply,
    This is the code I have got at the moment
    Please Login or Register  to view this content.
    I cant seem to attach my sample excel sheet
    Here is what it looks like
    M -------- N --------- R
    £1.13 --- £5.46 ------ £6.59
    -£17.23--- £17.23----- £-

    I dont want the -£17.23 amount to show
    Thanks

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Quote Originally Posted by ace2302 View Post
    Hi
    Thanks for your reply,
    This is the code I have got at the moment
    Please Login or Register  to view this content.
    I cant seem to attach my sample excel sheet
    Here is what it looks like
    M -------- N --------- R
    £1.13 --- £5.46 ------ £6.59
    -£17.23--- £17.23----- £-

    I dont want the -£17.23 amount to show
    Thanks
    The Code sample above, what cell is that in?

    You don't want -17.23 to appear? Is that your cell M3? What is the formula in that cell? Is it the R cell you're wanting to keep blank until M & N are filled in?

    What are these columns? N= Price? M=Tax? R=Price+Tax? What is it?

  5. #5
    Registered User
    Join Date
    12-03-2008
    Location
    UK
    Posts
    22
    Hi again
    Sorry if I'm being dense, how do I attach my excel file so you can see what I amtrying to do? I am getting a error message when I try upload


  6. #6
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    Already suggested.

    Read the Forum rules to learn how to upload and what size you can upload.
    Last edited by ratcat; 12-04-2008 at 06:02 AM. Reason: Change of mind. Sorry
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

+ 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