+ Reply to Thread
Results 1 to 5 of 5

Extract non-zero list of values containing formula.

  1. #1
    Forum Contributor
    Join Date
    03-06-2020
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    113

    Extract non-zero list of values containing formula.

    I have used sumif function to calculate consolidated sum. I want to extract a list with non-zero values.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Extract non-zero list of values containing formula.

    in J2 enter this formula and press Ctrl + Shift + Enter and drag down.

    =IFERROR(INDEX($A$2:$A$10, MATCH(SMALL(IF(COUNTIF($J$1:J1, $A$2:$A$10)=0, COUNTIF($A$2:$A$10, "<"&$A$2:$A$10), ""), 1), COUNTIF($A$2:$A$10, "<"&$A$2:$A$10), 0)),"")
    Enter K2 and press simply Enter and copy down

    =SUMIF($A$2:$A$10,J2,$B$2:$B$10)
    Teach me Excel VBA

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Extract non-zero list of values containing formula.

    Please try at J2

    =IFERROR(INDEX($A$2:$A$10,MATCH(1,INDEX(ISERROR(MATCH($A$2:$A$10,J$1:J1,))*(SUMIFS($B$2:$B$10,$A$2:$A$10,$A$2:$A$10)>0),),)),"")
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    03-06-2020
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    113

    Re: Extract non-zero list of values containing formula.

    Formula works but what if i add more entries in row 11 and so on then that should also be taken into consderation

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Extract non-zero list of values containing formula.

    Try
    =IFERROR(INDEX($A$2:$A$9999,MATCH(1,INDEX(ISERROR(MATCH($A$2:$A$9999,J$1:J1,))*(SUMIFS($B$2:$B$9999,$A$2:$A$9999,$A$2:$A$9999)>0),),)),"")

+ 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. Extract Unique Values from List using VBA
    By musicman1985 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-03-2018, 05:24 AM
  2. Replies: 4
    Last Post: 01-04-2017, 07:29 PM
  3. [SOLVED] Match values from an Invoice list with bank extract values
    By fleyd in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-14-2016, 12:52 PM
  4. Formula to extract a list from an existing list ignoring 0 values
    By weso2k in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-16-2014, 10:18 AM
  5. [SOLVED] Extract values from a list and copy to new list!
    By dulan07 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-30-2013, 08:30 AM
  6. extract specific values from list
    By mcm1009 in forum Excel General
    Replies: 5
    Last Post: 10-15-2010, 04:50 PM
  7. [SOLVED] Can you extract URL values from a list of cells?
    By BigIan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-23-2005, 01:25 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