+ Reply to Thread
Results 1 to 6 of 6

Addition to formula for blank cell when figure equals 6

  1. #1
    Registered User
    Join Date
    03-15-2013
    Location
    southampton
    MS-Off Ver
    Excel 2007
    Posts
    11

    Addition to formula for blank cell when figure equals 6

    Hi, I have a formula which is =IFERROR(IF(F9*1>5,"",6-(F9*1)),""). I have recently spotted that there is one situation which doesn't works in that when a cell value is 0 in F9, this needs to return a blank cell.

    I can see that the latter part of the formula shows a calculation thus : 6-(0*1) which returns a 6 but the formula needs modifying slightly to facilitate this condition to return a blank cell when 6 and above are the cell values.


    NB the formula works fine for cells values from 1,2,3,4 and 5 showing values of 5,4,3,2 and 1 respectively, and a blank cell for all other figures/letters apart from the one problem above so its really an addition to this formula which I need help with please to finish this spreadsheet.


    Many thanks for a solution


    Andy

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Addition to formula for blank cell when figure equals 6

    =IFERROR(IF(OR(F9*1>5, F9=0),"",6-(F9*1)),"")
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    03-15-2013
    Location
    southampton
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Addition to formula for blank cell when figure equals 6

    Hi, thanks but unfortunately this still gives a result of 6 based on a value of 0 whereas it needs to return a blank cell

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Addition to formula for blank cell when figure equals 6

    Ahhh, I'm guessing from your formulas that the numbers in F9 are really text. Try this

    =IFERROR(IF(OR(F9*1>5, (F9*1)=0),"",6-(F9*1)),"")
    Does that work?

  5. #5
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Addition to formula for blank cell when figure equals 6

    Try again, that should work. Or try 'Evaluate Formula' to find the issue.

    Pauley

  6. #6
    Registered User
    Join Date
    03-15-2013
    Location
    southampton
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Addition to formula for blank cell when figure equals 6

    Quote Originally Posted by ChemistB View Post
    Ahhh, I'm guessing from your formulas that the numbers in F9 are really text. Try this

    =IFERROR(IF(OR(F9*1>5, (F9*1)=0),"",6-(F9*1)),"")
    Does that work?
    Great, it WORKS !. I knew there should have been an "or" somewhere but I was trying to add to the formula i.e. +OR... instead of bracketing it. I will hopefully learn where to add functions and brackets etc to automate my formula but for now i am thankful to the forum members for their help.

    Thank you

    Andy

+ 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