+ Reply to Thread
Results 1 to 6 of 6

If Function - Return value 0 when referenced cell is also 0

  1. #1
    Registered User
    Join Date
    07-14-2015
    Location
    lisbon
    MS-Off Ver
    2016
    Posts
    68

    If Function - Return value 0 when referenced cell is also 0

    Hi,

    I have the following formula:

    =IF(AND(T7>0,T7<=1),($J$2+0,05),IF(T7>1, $J$2,IF(T7=0,"0")))

    But i need that when T7=0 , the result of the formula be 0 (zero). Currently the result is value of cell $J$2 (0,08).

    I add the information that cell T7 is a reference from another sheet in the same document, not sure is this changes things...


    Can you help me in a way that the result of the formula be 0 when t7 is also 0 ?

    Thanks

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: If Function - Return value 0 when referenced cell is also 0

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    07-14-2015
    Location
    lisbon
    MS-Off Ver
    2016
    Posts
    68

    Re: If Function - Return value 0 when referenced cell is also 0

    Thanks, but it doesnt work... the problem is that cell t7 is not really 0, its a referenced cell... the issue is that...

    i send an example file https://dl.dropboxusercontent.com/u/...0question.xlsx

    can you help with another solution?

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: If Function - Return value 0 when referenced cell is also 0

    Answer to your first problem:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If T7 results in an error, or if T7 is equal to 0 the result will be 0.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: If Function - Return value 0 when referenced cell is also 0

    fleyd, please upload your file to the forum, not all members are able - or willing - to access file hosting sites
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    07-14-2015
    Location
    lisbon
    MS-Off Ver
    2016
    Posts
    68

    Re: If Function - Return value 0 when referenced cell is also 0

    Hi,

    Sorry for the late reply and many thanks for the solutions, it worked!!


    1 - Just a little detail, i use Portuguese version of Excel and for the formula really work, i had to slighlty change it to this:

    =IFERROR(IF(T7="0",0,IF(AND(T7>0,T7<=1),$J$2+0,05,$J$2)),0)

    But is working just fine, many thanks for the Help!

    2 - Regarding adding the file here in the thread, i didnt do it because i didnt understand how to do it, just now i realize i had to go advanced options, sorry about that. But i think its all correct now.

    Thanks.
    Attached Files Attached Files

+ 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. [SOLVED] function CELL() to return the formula in the referenced cell
    By Streep in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  2. function CELL() to return the formula in the referenced cell
    By Streep in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  3. function CELL() to return the formula in the referenced cell
    By Streep in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  4. function CELL() to return the formula in the referenced cell
    By RagDyer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 06:05 AM
  5. [SOLVED] function CELL() to return the formula in the referenced cell
    By Streep in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. function CELL() to return the formula in the referenced cell
    By Streep in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. [SOLVED] function CELL() to return the formula in the referenced cell
    By Streep in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. [SOLVED] function CELL() to return the formula in the referenced cell
    By Streep in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2005, 06:05 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