Consulting

Results 1 to 4 of 4

Thread: Formula with no error message?

  1. #1

    Formula with no error message?

    How would I write this formula to round without it displaying an error message if the cell is left blank?

    =IF(ISERROR(F17*H17),"",IF(F17=-1,H17,F17*H17))

    I tried:

    =ROUND(IF(ISERROR(F17*H17),"",IF(F17=-1,H17,F17*H17)),2)

    it returns #VALUE! if left blank.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    =IF(ISERROR(F17*H17),"",ROUND(IF(F17=-1,H17,F17*H17)),2)

  3. #3
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    I don't get an error with a blank cell, but I do if I enter text. Anyway, try

    =IF(ISERROR(F17*H17),"",IF(F17=-1,ROUND(H17,2),ROUND(F17*H17,2)))
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  4. #4

    THANK YOU!!!

    THANK YOU! THANK YOU!

    I love this site already!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •