+ Reply to Thread
Results 1 to 8 of 8

Remove 0 results from formula

Hybrid View

  1. #1
    Registered User
    Join Date
    08-06-2024
    Location
    USA
    MS-Off Ver
    365
    Posts
    3

    Remove 0 results from formula

    We're trying to display the bottom 10 results out of a data set. We don't want 0's to be part of the results. The goal is to not display any results with a "0", but to skip them and go to the next lowest number.



    Here is the formula we're trying to correct:



    =INDEX(DashboardDataSheet!$B$1:$AZ$1, MATCH(1, (DashboardDataSheet!$B$5:$AZ$5 = SMALL(IF(DashboardDataSheet!$B$5:$AZ$5<>0, DashboardDataSheet!$B$5:$AZ$5), G23)) * (COUNTIF($B$22:H22, DashboardDataSheet!$B$1:$AZ$1) = 0), 0))

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,187

    Re: Remove 0 results from formula

    Hi
    what excel version do you use?

  3. #3
    Registered User
    Join Date
    08-06-2024
    Location
    USA
    MS-Off Ver
    365
    Posts
    3

    Re: Remove 0 results from formula

    It's Microsoft 365, Excel version build 2308

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,979

    Re: Remove 0 results from formula

    Welcome to the forum

    Please update your profile to reflect the version of Excel this needs to work with. "Latest" could be 365 or 2021. There is a big difference.

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,676

    Re: Remove 0 results from formula

    Works for any excel version (2007+)

    If YourFormula always return numeric value, drap it inside an IFERROR, like this:

    =IFERROR(1/(1/YourFormula),"")

    or a bit longer

    =IF(YourFormula=0,"",YourFormula)
    Quang PT

  6. #6
    Registered User
    Join Date
    08-06-2024
    Location
    USA
    MS-Off Ver
    365
    Posts
    3

    Re: Remove 0 results from formula

    Quote Originally Posted by bebo021999 View Post
    Works for any excel version (2007+)

    If YourFormula always return numeric value, drap it inside an IFERROR, like this:

    =IFERROR(1/(1/YourFormula),"")

    or a bit longer

    =IF(YourFormula=0,"",YourFormula)
    Will try!! Thank you so much

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,841

    Re: Remove 0 results from formula

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,979

    Re: Remove 0 results from formula

    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] formula brings column names as results, need to remove last 2 letters from result
    By jilaba in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-27-2023, 06:13 AM
  2. Need Help w/ Formula to Remove "00s" at End of Results String
    By jasonb9 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-14-2018, 04:04 PM
  3. Replies: 9
    Last Post: 11-23-2016, 12:22 PM
  4. Sort Query Results to remove duplicate entries and put results on one line.
    By Panther70 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-01-2015, 03:03 PM
  5. [SOLVED] Sort results of INDEX/MATCH array formula remove blanks. . .
    By PeteABC123 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-14-2014, 01:53 PM
  6. Excel Formula To Remove 0 from results. HELP PLEASE
    By caramelf23 in forum Excel General
    Replies: 1
    Last Post: 07-02-2013, 03:23 PM
  7. Replies: 4
    Last Post: 02-07-2011, 02:12 PM

Tags for this Thread

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