+ Reply to Thread
Results 1 to 8 of 8

Formula Required to Extract data from Column A based on Non -zero values in Column B

  1. #1
    Registered User
    Join Date
    06-02-2017
    Location
    Lahore
    MS-Off Ver
    2010
    Posts
    22

    Question Formula Required to Extract data from Column A based on Non -zero values in Column B

    Hey guys.
    I need to know the formula to Extract data from Column A based on Non -zero values in Column B.
    I have successfully done this task in past to extract the data from same column using the combination of different excel functions e.g. Index, Aggregate, Row, CountA etc.
    But unable to do it when criteria is in another column.
    Please look the attachment.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Formula Required to Extract data from Column A based on Non -zero values in Column B

    You could put this formula in C2:

    =IF(OR(B2="",B2=0),"-",MAX(C$1:C1)+1)

    then copy down to the bottom of your data. Then you can use this formula in E2:

    =IFERROR(INDEX(A:A,MATCH(ROWS($1:1),C:C,0)),"")

    and copy this down as far as you need to.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Formula Required to Extract data from Column A based on Non -zero values in Column B

    In E2 then copy down
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Registered User
    Join Date
    06-02-2017
    Location
    Lahore
    MS-Off Ver
    2010
    Posts
    22

    Cool Re: Formula Required to Extract data from Column A based on Non -zero values in Column B

    Awesome
    That is working.
    Thanks very very very much.

  5. #5
    Registered User
    Join Date
    06-02-2017
    Location
    Lahore
    MS-Off Ver
    2010
    Posts
    22

    Cool Re: Formula Required to Extract data from Column A based on Non -zero values in Column B

    Quote Originally Posted by Pete_UK View Post
    You could put this formula in C2:

    =IF(OR(B2="",B2=0),"-",MAX(C$1:C1)+1)

    then copy down to the bottom of your data. Then you can use this formula in E2:

    =IFERROR(INDEX(A:A,MATCH(ROWS($1:1),C:C,0)),"")

    and copy this down as far as you need to.

    Hope this helps.

    Pete
    Awesome
    That is working.
    Thanks very very very much.

  6. #6
    Registered User
    Join Date
    06-02-2017
    Location
    Lahore
    MS-Off Ver
    2010
    Posts
    22

    Cool Re: Formula Required to Extract data from Column A based on Non -zero values in Column B

    Quote Originally Posted by kvsrinivasamurthy View Post
    In E2 then copy down
    Please Login or Register  to view this content.
    Awesome
    That is working.
    Thanks very very very much.
    It is even better than the solution told by Pete_UK.

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Formula Required to Extract data from Column A based on Non -zero values in Column B

    Thanks for feed back.

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Formula Required to Extract data from Column A based on Non -zero values in Column B

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    You might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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 list of values from one column based on values in another column
    By The Speculator in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-21-2019, 11:22 PM
  2. [SOLVED] Formula to extract values based on merged column header
    By sekharks in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2019, 02:40 AM
  3. [SOLVED] How to extract values in one column based on criteria in another column
    By TimLarson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-27-2019, 07:06 PM
  4. [SOLVED] Extract selected column data based on column header info
    By ajay6985 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-09-2017, 02:07 AM
  5. Replies: 12
    Last Post: 03-07-2014, 08:55 AM
  6. Complex Excel Formula Required for Obtaining Values based on Column & Row
    By adeel726 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2013, 04:36 PM
  7. Replies: 3
    Last Post: 02-14-2013, 10: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