+ Reply to Thread
Results 1 to 3 of 3

Need formula to recognize blank cells as zero

  1. #1
    Registered User
    Join Date
    05-09-2012
    Location
    Thunder Bay, Ontario
    MS-Off Ver
    Excel 2016
    Posts
    24

    Need formula to recognize blank cells as zero

    Hi all,
    I got some help on here before for a forumla and I thought it was working great for a while then I realized that when certain cells are left blank it doesnt calculate it properly.
    The forumla is perfect except for this one issue, I have attached my spreadsheet which shows the error in cell AJ-172.

    I want it to come back with a "0" (Zero) when there is no date range to calculate in a certain quarter.

    Any help would be greatly appreciated!!
    Attached Files Attached Files

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Need formula to recognize blank cells as zero

    Does this work for you for cell AJ172?

    =MAX(0,MIN(J172,AI172)-MAX(I172,AH172)+1)*(COUNT(I172:J172,AH172:AI172)=4)

  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Need formula to recognize blank cells as zero

    or maybe????

    =IF(J172="",0,MAX(0,MIN(J172,AI172)-MAX(I172,AH172)+1)*(COUNT(AH172,AI172)=2))

    i just refered to cell J172 if blank???
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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