+ Reply to Thread
Results 1 to 11 of 11

Cell to return 0 when referencing a cell that contains a formula but has no answer in it

  1. #1
    Registered User
    Join Date
    10-03-2015
    Location
    Jacksonville, FL
    MS-Off Ver
    Microsoft 2013
    Posts
    37

    Cell to return 0 when referencing a cell that contains a formula but has no answer in it

    I have attempted several ways to have column T return a zero if column U does not have a # in the cell. {=IF(U4>0,1,0)} Once the calculation in Column U has executed I want the cell in Column T to change to a 1 in order to count the "1" in a lower cell.
    Column U has this formula {=IFERROR(INDEX(I:I,SMALL(IF($B$3:$B$80=$S$4,ROW($B$3:$B$80)),ROWS($1:1))),"")}


    Capture.PNG

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,811

    Re: Cell to return 0 when referencing a cell that contains a formula but has no answer in

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  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
    79,369

    Re: Cell to return 0 when referencing a cell that contains a formula but has no answer in

    Try this:

    =IFERROR(IF(U4>0,1,0),0)
    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
    Registered User
    Join Date
    10-03-2015
    Location
    Jacksonville, FL
    MS-Off Ver
    Microsoft 2013
    Posts
    37

    Re: Cell to return 0 when referencing a cell that contains a formula but has no answer in

    I have attached the actual document. Thank you.

  5. #5
    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
    79,369

    Re: Cell to return 0 when referencing a cell that contains a formula but has no answer in

    See post #3.

  6. #6
    Registered User
    Join Date
    10-03-2015
    Location
    Jacksonville, FL
    MS-Off Ver
    Microsoft 2013
    Posts
    37

    Re: Cell to return 0 when referencing a cell that contains a formula but has no answer in

    Hello, thank you for the assistance. It is providing me a count of 1 in the cells that have weights and cube but it is also providing a 1 in the cells that don't have corresponding data. I hope that makes since.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Cell to return 0 when referencing a cell that contains a formula but has no answer in

    ...or perhaps

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  8. #8
    Registered User
    Join Date
    10-03-2015
    Location
    Jacksonville, FL
    MS-Off Ver
    Microsoft 2013
    Posts
    37

    Re: Cell to return 0 when referencing a cell that contains a formula but has no answer in

    That worked, thank you again. Thank you both for your assistance.

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,396

    Re: Cell to return 0 when referencing a cell that contains a formula but has no answer in

    Also you have array entered the formula in U5 and down (correctly) but not in U4.

    That doesn't relate to your question, but it may cause issues somewhere else.
    Dave

  10. #10
    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
    79,369

    Re: Cell to return 0 when referencing a cell that contains a formula but has no answer in

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  11. #11
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Cell to return 0 when referencing a cell that contains a formula but has no answer in

    My pleasure, thanks for the rep.

+ 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] if cell equals value then return answer
    By swfarm in forum Excel General
    Replies: 4
    Last Post: 07-02-2018, 06:56 AM
  2. [SOLVED] Referencing the cell's answer in another formula
    By ophelius in forum Excel General
    Replies: 8
    Last Post: 06-27-2016, 04:35 PM
  3. Replies: 1
    Last Post: 02-24-2015, 12:14 PM
  4. Replies: 2
    Last Post: 09-18-2014, 05:41 PM
  5. [SOLVED] Return a specified answer dependent on a cell value
    By major88 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-10-2014, 12:08 PM
  6. [SOLVED] IF formula variables to return more than one answer depending on another cell input
    By teenyjem in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-03-2012, 04:22 PM
  7. return answer based on cell value
    By excellentexcel in forum Excel General
    Replies: 2
    Last Post: 08-29-2009, 04:55 AM

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