+ Reply to Thread
Results 1 to 7 of 7

Ignore zeros and negative numers

  1. #1
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Ignore zeros and negative numers

    Hello,

    I am using the following =IF(F25=MIN(First:Last!C29),"somthing","")
    How can i amend it to ignore zeros and negative numbers in the MIN part of the formula

    Thanks
    Kevin

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Ignore zeros and negative numers

    I don't understand your formula.

    MIN(First:Last!C29) will always be whatever value is in C29.

    That being said, you can use the MIN IF array formula to include the criteria.

    Something along the lines of =IF(F25=MIN(IF(data_range>0,First:Last!C29)),"somthing","") Ctrl Shift Enter

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Ignore zeros and negative numers

    Not sure I follow either!!

    Pleas post a sample sheet,
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Re: Ignore zeros and negative numers

    Hope this helps
    Attached Files Attached Files

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Ignore zeros and negative numers

    I'm afraid it's not quite that simple.

    1. Create a list of the sheets from which you want to search the values of C9. If you have lots of sheets, you can do this automatically (macro-enabled...).

    2. Create a Named Range to encompass that list (CTRL-F3 to view/edit). I called the range "Sheets". Imaginative, huh?

    3. Use the following array formula to return your result:

    =IF(F25=MIN(IF(N(OFFSET(INDIRECT("'"&Sheets&"'!C9"),,,))>0,N(OFFSET(INDIRECT("'"&Sheets&"'!C9"),,,)))),"Something","")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Re: Ignore zeros and negative numers

    Thank you Glenn!

    I did have the =IF(F25=MIN part

    Thanks
    Kevin

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Ignore zeros and negative numers

    Huge credit for that bit. Respect!!

    You're welcome and 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. Ignore Blanks and Zeros
    By Alan_Bernardo in forum Excel General
    Replies: 3
    Last Post: 01-02-2017, 01:05 PM
  2. Small - Ignore zeros
    By pauldaddyadams in forum Excel General
    Replies: 6
    Last Post: 07-05-2015, 05:02 PM
  3. [SOLVED] How can I use min function with ignore zeros
    By migdad in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-20-2013, 06:17 AM
  4. Minimum value, ignore zeros
    By anmck in forum Excel General
    Replies: 1
    Last Post: 03-31-2009, 04:25 PM
  5. Ignore zeros in charting
    By Tom_Fernley in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-23-2008, 04:01 AM
  6. Get Excel to ignore the first 4 zeros
    By Badvgood in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2007, 06:39 PM
  7. Ignore blanks or zeros
    By gil0730 in forum Excel General
    Replies: 1
    Last Post: 02-03-2005, 12:12 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