+ Reply to Thread
Results 1 to 9 of 9

Help with formula - if function

  1. #1
    Registered User
    Join Date
    09-24-2015
    Location
    London
    MS-Off Ver
    2011
    Posts
    3

    Help with formula - if function

    Sorry - i am not great with formula and I am using a sheet already set up by someone who has left and i need this formula to look at two cells and add them together but return nothing if it is blank - but i have a #VALUE! returned - the cells contain minus numbers - i can;t figure out what is wrong - can someone assist me please? It does the sum ok when i put the info in but has the VALUE while it is blank......

    =IF(OR(ISBLANK(K19),ISBLANK(M17)),"",SUM(K19+M17))

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help with formula - if function

    Do the 2 cells contain formulas, and the 'blank' is actually a "" result from that formula?
    "" is NOT blank, it's a zero length text string. So ISBLANK will return FALSE.
    Text+Number = #VALUE! error.

    Try
    =IF(COUNT(K19,M17)=2,SUM(K19,M17),"")
    Last edited by Jonmo1; 07-05-2016 at 08:58 AM.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,969

    Re: Help with formula - if function

    Try this:

    =IF(AND(ISBLANK(K19),ISBLANK(M17)),"",SUM(K19+M17))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with formula - if function

    Maybe this...

    =IF(COUNT(K19,M17)<2,"",K19+M17)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Valued Forum Contributor Kamboj's Avatar
    Join Date
    09-25-2014
    Location
    India
    MS-Off Ver
    2003 - 2010
    Posts
    430

    Re: Help with formula - if function

    Try this
    Please Login or Register  to view this content.
    Kamboj
    _________________________________________________________________________________
    Mark the thread as SOLVED if my answer satisfy you.

  6. #6
    Registered User
    Join Date
    09-24-2015
    Location
    London
    MS-Off Ver
    2011
    Posts
    3

    Re: Help with formula - if function

    This worked perfectly - thank you so much

  7. #7
    Registered User
    Join Date
    09-24-2015
    Location
    London
    MS-Off Ver
    2011
    Posts
    3

    Re: Help with formula - if function

    all working perfectly now - thank you all for your help

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,969

    Re: Help with formula - if function

    You're welcome!

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with formula - if function

    You're welcome. We appreciate the feedback!

+ 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. Attempting to construction a function or formula where the formula returns the row value o
    By PivotTablePSHomage in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-13-2016, 06:37 PM
  2. [SOLVED] Quintile Formula - Function Wise - Help need for formula calculation
    By Yadavgiri in forum Excel Formulas & Functions
    Replies: 38
    Last Post: 12-21-2015, 03:09 PM
  3. Multiple Vlookup Normal Formula (not array formula) or VBA Function Required
    By BoopathiK in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-17-2015, 03:06 AM
  4. Formula Creation: Using List Function + Subtraction Function
    By HelpMe! in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-09-2013, 04:52 PM
  5. Replies: 0
    Last Post: 01-19-2013, 01:35 PM
  6. Need Excel formula in Macro using Subtotal formula with If function
    By mbnewton1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-16-2013, 03:00 PM
  7. [SOLVED] I want to create a formula in one sheet, that will function as a formula in other sheets
    By johnw993 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2013, 07:07 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