+ Reply to Thread
Results 1 to 3 of 3

Conditional Min, Max and average - ignore "0" in non-adjacent cells

  1. #1
    Registered User
    Join Date
    08-31-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    24

    Conditional Min, Max and average - ignore "0" in non-adjacent cells

    Hey,

    I am trying to design several spreadsheets that display the minimum, maximum and average values of non adjacent cells. My google searches have led to some several clunky solutions that I am not sure that will work for me. I use excel to create tables created from raw data I enter. It is very difficult to make the data contiguous.

    For example, this is the formula I use in on of them

    =MIN(G4,G9,G14,G19,G24,G29)

    Sometimes data gets entered as "0" in the cells, but its not pertinent, and I want excel to ignore it. I also would use the same cells for MAX and AVERAGE.

    Is there any simple way to do this? I use a formula of this type for SEVERAL different spreadsheets and different data sets.

    Thanks in advance.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: Conditional Min, Max and average - ignore "0" in non-adjacent cells

    Try this ...

    =MIN(IF((MOD(ROW($G$4:$G$29),5)=4)*($G$4:$G$29<>0),$G$4:$G$29))

    Enter with Ctrl+Shift+Enter

    Change MIN to MAX or AVERAGE

  3. #3
    Registered User
    Join Date
    08-31-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Conditional Min, Max and average - ignore "0" in non-adjacent cells

    Hey - that worked! Thanks! I will try and see if I can get this to work in the several other areas of the workbook under similar applications/conditions.

    Thanks a TON. I cannot explain how much this is going revolutionize my workflow!

+ 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 contains "No", adjacent cells auto-populate "NA"
    By chaijing in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-05-2016, 04:41 AM
  2. [SOLVED] How to get VBA to ignore "blank" cells or cells with "text"
    By mss90 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-02-2016, 10:32 AM
  3. Data Validation - how to ignore cells with "0" or "-"
    By dgibney in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-29-2015, 08:16 PM
  4. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  5. [SOLVED] Adjacent cells - setting criteria for "A" while averaging "B"
    By ilovemonkeys in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2013, 11:57 AM
  6. [SOLVED] Conditional Formatting if an adjacent cell contains a "N"
    By TheCroatianSensation in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-31-2012, 04:40 PM
  7. Conditional Format Ignore "0" and blank
    By allgeef in forum Excel General
    Replies: 6
    Last Post: 06-18-2010, 11:01 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