+ Reply to Thread
Results 1 to 5 of 5

Returning Blank fields

  1. #1
    Registered User
    Join Date
    07-28-2011
    Location
    London,England
    MS-Off Ver
    Excel 2010
    Posts
    22

    Returning Blank fields

    Hi, I've created a very simple description template of what I'm trying achieve. The number sold looks up from the sales team Total for a quarter & then column F works out the stock sold as a % of the total stock held. What I need to work out is how do I get fields that have no data in them Q3 & Q4 to return a blank field so that the total % F9 isn't calculating the result by dividing the toal by 4 when there is only 2 quarters of data. (I hope that makes sense)
    Attached Files Attached Files
    Last edited by mgmerv; 06-24-2015 at 11:41 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Returning Blank fields

    One way
    In M13 copied down
    =IF(COUNT(J13:L13)>0,SUM(J13:L13),"-")

    In F5 copied down
    =IF(ISNUMBER(E5),(E5/D5),"-")
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: Returning Blank fields

    Put this formula in F5:

    =IF(E5=0,"",E5/D5)

    then copy down to F8.

    Hope this helps.

    Pete

  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
    31,172

    Re: Returning Blank fields

    =averageif(f5:f8,">0")

  5. #5
    Registered User
    Join Date
    07-28-2011
    Location
    London,England
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Returning Blank fields

    Thanks very much they are all very useful

+ 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. Replies: 5
    Last Post: 11-21-2014, 10:00 PM
  2. [SOLVED] Blank cells not returning a blank value...
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-10-2014, 11:01 AM
  3. [SOLVED] Returning most recent dates with conditions where some fields are blank
    By connmtc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-27-2013, 06:06 PM
  4. Replies: 2
    Last Post: 06-21-2012, 04:51 PM
  5. vlookup returning blank for blank instead of 0
    By krayziez in forum Excel General
    Replies: 4
    Last Post: 07-31-2008, 11:58 AM

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