+ Reply to Thread
Results 1 to 6 of 6

Skip zero values on one tab and populate second tab with values

  1. #1
    Registered User
    Join Date
    12-17-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Skip zero values on one tab and populate second tab with values

    Alright, this seems pretty simple, but I've been struggling all day.

    I need to pull the products with values (aka skip the zero's) from the first tab and only show the products with values on the second tab. Also, I need to have the corresponding values under the qty column in the second tab.

    Thanks for any help!

    Example.xlsx

  2. #2
    Forum Contributor
    Join Date
    11-15-2012
    Location
    Buffalo, NY
    MS-Off Ver
    Office 365
    Posts
    282

    Re: Skip zero values on one tab and populate second tab with values

    How about having a UserFunction that copies the data, and (while it is at it) if the value is 0, hides the row (and reveals it if the value changes to >0)?

    Tony

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Skip zero values on one tab and populate second tab with values

    Hi and welcome to the forum

    1st, your profile says 2003, but your upload suggests 2007 or later - please update your profile. Members often tailor suggestions based on the version.

    The way I would do this is to add a helper on sheet in C2, copied down...
    =IF(A2<1,C1,C1+1)

    Then on sheet2, A2, copied down and across...
    =IFERROR(INDEX(Indexing!$A:$B,MATCH(ROWS($A$1:A1),Indexing!$C:$C,0),MATCH(Mapping!A$1,Indexing!$A$1:$B$1,0)),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Skip zero values on one tab and populate second tab with values

    Another option would be to use filters.

    Apply filters on sheet1
    Uncheck 0 in the filter

    This will show you a list of all stock > 0
    You can then copy what shows and paste onto sheet2 if you want

  5. #5
    Registered User
    Join Date
    12-17-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Skip zero values on one tab and populate second tab with values

    Awesome guys thanks for the help!

    FDibbins - I looked at the filter option, but I didn't want to copy each time. So I checked out the IF statements that they worked like a charm.

    Thanks again.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Skip zero values on one tab and populate second tab with values

    Happy to help

+ 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. Skip Rows when returning values
    By Jonathan9 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2013, 01:23 PM
  2. [SOLVED] copy only values skip n/a
    By werko in forum Excel General
    Replies: 1
    Last Post: 08-30-2010, 03:13 AM
  3. populate values in col C based on values contains in B
    By aravindhan_31 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2009, 04:30 PM
  4. Macro - auto populate the values based on previous cell values
    By Avinash Kumar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-05-2009, 02:02 AM
  5. Need Chart's Line to Skip Zero Values
    By ComcoDG in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 10-14-2008, 11:27 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