+ Reply to Thread
Results 1 to 4 of 4

Don't formulate if blank. How?

Hybrid View

  1. #1
    Registered User
    Join Date
    08-20-2009
    Location
    New Franklin, MO
    MS-Off Ver
    Excel 2007
    Posts
    10

    Don't formulate if blank. How?

    ok here is what I got:

    I have a cell that adds up the money brought in ("Income") from several locations each entered in different cells in the column and added at the bottom with this formula:
    =SUM(E22,E19,E18,E16,E14,E13,E11,E10,E8,E4) There is one of these for 3 days each week.

    I also have a column that shows the amount of product taken to these locations and a column showing the amount of product returned to me from these locations, added at the bottom with a similar formula.

    On another page I have a "weekly projected income" that adds the amounts taken for 1 week and subtracts it from the total returned for that same week then multiplies it by the price of the product, with this formula:
    =IMSUB('DAILY TRACKER'!$F$23+'DAILY TRACKER'!$I$23+'DAILY TRACKER'!$L$23+'DAILY TRACKER'!$O$23,'DAILY TRACKER'!$G$23+'DAILY TRACKER'!$J$23+'DAILY TRACKER'!$M$23+'DAILY TRACKER'!$P$23)*0.75

    then I have a "money lost to theft" tracker that subtracts the "income" from the "weekly projected income" with this formula:
    =B5-C5

    then I have a "number stolen" that takes the "money lost to theft" and divides it by the price of the product with this formula:
    =E5/0.75

    My Issue is:
    Untill I get the returned product those cells remain blank. The blanks go into the formulas as zeros and causing the cells to report false theft numbers. They are very high. The more I think about this the more stressed it makes me. The only solution I can come up with (If it's even possible) is to stop the formulas when the blanks are in them.
    Any way to do that? I am also open to any sugestions anyone might have.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Don't formulate if blank. How?

    you can wrap the formula up in isblank()
    if(isblank(some cell ),"do nothing",do this formula)
    "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

  3. #3
    Registered User
    Join Date
    08-20-2009
    Location
    New Franklin, MO
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Don't formulate if blank. How?

    I like that formula. It works great on my first page. But now, what if I want the "blank" to be $0.00? like this:
    =if(is$0.00(C4),"$0.00",B4-C4)
    I know this does not work. How do I get it to work?

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Don't formulate if blank. How?

    if(isblank(c4 ),0,b4-c4)
    if(c4=0,0,b4-c4)
    if (c4="",0,b4-c4)

+ 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