+ Reply to Thread
Results 1 to 4 of 4

unsure how to wite IF formula

  1. #1
    Registered User
    Join Date
    01-13-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    14

    Question unsure how to wite IF formula

    This question is similar to my last one. How do I write the formuanother IF formulala for d21 to add all cells from d5 thru d20, but not show a zero in d21 prior to entering values to be added. My last question was for a product formula and this board gave me an "if" formula. I'm guessing this is basically the same idea, but I don't know how to form it.
    Last edited by oceanside; 01-15-2013 at 12:09 PM.

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

    Re: unsure how to wite IF formula

    you can do it like

    =if(sum(d5:d20)=0,"",sum(d5:d20))

    or

    if(countblank(d5:d20)=16,"",sum(d5:d20))
    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

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

    Re: unsure how to wite IF formula

    Do you mean you want all the values in D5:D20 to be entered before the sum is made visible? If so, you can use this formula:

    =IF(COUNT(D5:D20)=16,SUM(D5:D20),"")

    If not, then perhaps you want the sum to show only after at least two numbers have been entered in your range, like this:

    =IF(COUNTIF(D5:D20,"<>")>=2,SUM(D5:D20),"")

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    01-13-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: unsure how to wite IF formula

    You people are amazing! How do you figure these things out?

+ 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