+ Reply to Thread
Results 1 to 3 of 3

Whats wrong with my formula?

  1. #1
    Registered User
    Join Date
    08-13-2004
    Posts
    66

    Whats wrong with my formula?

    =IF($A$230=0,IF($A$230>1,IF($A$230,ISERROR,"ERROR ON SPREADSHEET"),"EMPTY SPREADSHEET"),"NO ERROR ON SPREADSHEET")

    Formula is placed in A1
    Currently when A230 is 0, A1 displays EMPTY SPREADSHEET,
    Currently when A230 is greater than 1, A1 displays NO ERROR ON SPREADSHEET,
    but when
    A230 is an error, A1 shows #N/A instead of showing ERROR ON SPREADSHEET

    How do I remedy this?

  2. #2
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    It would be helpful if you told us what you want to achieve and then we could change the formula

    =IF($A$230=0,IF($A$230>1,IF($A$230,ISERROR,"ERROR ON SPREADSHEET"),"EMPTY SPREADSHEET"),"NO ERROR ON SPREADSHEET")

    Formula is placed in A1
    Currently when A230 is 0, A1 displays EMPTY SPREADSHEET,
    It will do as a230=0 is true a230>1 ia false so you end up at the false value "ERROR on SPREADSHEET"

    Currently when A230 is greater than 1, A1 displays NO ERROR ON SPREADSHEET,
    A230=0 is false so goes straight to no error on spreedsheet at the end

    but when
    A230 is an error, A1 shows #N/A instead of showing ERROR ON SPREADSHEET


    Perhaps if(iserror(a230),"error on spreadsheet",if(a230=0,"Empty Spreadsheet","No error on spreadsheet"))

    but i do not know what is returned in a230, so this may need ammending
    can A230 be negative is so what happens
    can A230 be text if so what happens

    Regards

    Dav

  3. #3
    Registered User
    Join Date
    08-13-2004
    Posts
    66
    Thanks, the alternative you gave works perfectly.

+ 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