+ Reply to Thread
Results 1 to 9 of 9

Returning a zero value in a simple excel formulae

  1. #1
    Registered User
    Join Date
    06-26-2015
    Location
    tn23ey
    MS-Off Ver
    2010
    Posts
    11

    Returning a zero value in a simple excel formulae

    Hi all,

    I'm new to this site....and hoping you might be able to help me solve the below. I'm trying to set up a simple quote sheet for my boss as follows:

    =SUM(B6*C6)+(D6*$E$3/1000)

    Cell E6 = the quantity
    Cell B6 = This is a manual import and can be either zero, or 1, 2, 3, 4 etch
    Cell C6 = This is a static set up cost
    Cell D6 = This is a cost per thousand

    So for example:
    (1*£250)+(£1*100,000/1,000) returns a correct cost of £350.00 (in cell E6)

    The problem I'm trying to solve is that when I put in a zero in cell B6 - I want the total in E6 to also return a value of £0.00....however it still picks up static set up cost of £250.00

    Any ideas please?

    thanks very much

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Returning a zero value in a simple excel formulae

    Add =iferror((your formula),0)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    06-26-2015
    Location
    tn23ey
    MS-Off Ver
    2010
    Posts
    11

    Re: Returning a zero value in a simple excel formulae

    Hi, thanks for that....but sorry, this is now the formulae, but it's now returning £100.00 (so picking up the £1*100,000/1,000)

    =IFERROR(((B6*C6)+(D6*$E$3/1000)),0)

    (1*£250)+(£1*100,000/1,000)

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Returning a zero value in a simple excel formulae

    Sorry I misunderstood your issue ( typing from iPad so give me a couple seconds to work out the details)

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Returning a zero value in a simple excel formulae

    So would this work for you? =if(b6<>0,(your formula),0)

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Returning a zero value in a simple excel formulae

    or... same end result, but other way round!!

    =IF(B6=0,0,SUM(B6*C6)+(D6*$E$3/1000))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Returning a zero value in a simple excel formulae

    =IF(B6=0,0,B6*C6+D6*$E$3/1000)
    I think no need of sum here
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Returning a zero value in a simple excel formulae

    or... same end result, but other way round!!

    =IF(B6=0,0,SUM(B6*C6)+(D6*$E$3/1000))
    Ah, choices, it's good to have many!

  9. #9
    Registered User
    Join Date
    06-26-2015
    Location
    tn23ey
    MS-Off Ver
    2010
    Posts
    11

    Re: Returning a zero value in a simple excel formulae

    Hi all, thanks so much for the quick response - got the problem solved now!

    Thank you.

+ 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. Expert please help this simple excel 2007 formulae
    By magic_ma in forum Excel General
    Replies: 2
    Last Post: 05-10-2010, 07:46 AM
  2. Excel 2007 miscalculating simple formulae
    By CaptCoog in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 08-05-2009, 11:02 AM
  3. IRR Formulae returning #num
    By ernestgoh in forum Excel General
    Replies: 8
    Last Post: 05-06-2009, 11:04 AM
  4. Stuck with a Simple Formulae
    By bengaluru in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-06-2006, 05:00 PM
  5. why does Excel see my simple formulae as macros now?
    By Chris in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-21-2006, 03:00 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