+ Reply to Thread
Results 1 to 6 of 6

Extract non zero value data

  1. #1
    Registered User
    Join Date
    09-11-2008
    Location
    malta
    Posts
    34

    Extract non zero value data

    Hi All,
    I have a worksheet which contains a very long list of part numbers with various columns for models which use the parts.

    I would like that when I enter a model name in a cell, excel will extract a list of product codes which are used in that particular model. Is there a way to solve this problem without any VBA. I have tried with sumif and sumproduct but I am still getting the zero value cells.

    To make it simple I have attached a sample copy Xl workbook.
    I use Excel 2003.

    Thanks guys
    paraxis
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Extract non zero value data

    Is the attached what you are looking for?
    Change the model in cell I4 and the list of products changes accordingly.
    Attached Files Attached Files
    Please click the * icon below if I have helped.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Extract non zero value data

    hi paraxis, it would be good if you can update your profile's Excel version. i'm avoiding IFERROR because i don't know your version. so maybe this array formula in "MODEL MARY" or other sub worksheets B6:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ...confirmed by pressing CTRL-SHIFT-ENTER to activate the array. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL-SHIFT-ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    then in C6:
    =VLOOKUP(B6,Sheet1!$B$6:$F$26,MATCH($C$4,Sheet1!$B$4:$F$4,0),0)

    copy down

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Extract non zero value data

    Because you need to have a tab for each model, that solution will not work. A pivot table should give you what you want though.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-11-2008
    Location
    malta
    Posts
    34

    Re: Extract non zero value data

    Dear Melvinrobb,
    It works even for tab for each model. I cut from master sheet and pasted it on a model sheet tab and it worked.

    Thanks a lot everyone. I knew it was not that complicated but somehow I could not figure it out.

    Regards to all
    Paraxis

  6. #6
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Extract non zero value data

    When I mentioned "that solution", I meant my previous attached file.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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