+ Reply to Thread
Results 1 to 2 of 2

How to display specific cells ranges with values greater than 0 on a separate worksheet

  1. #1
    Registered User
    Join Date
    10-08-2012
    Location
    Lansing, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question How to display specific cells ranges with values greater than 0 on a separate worksheet

    Good Afternoon,

    I'm currently building a workbook with the following on Sheet1: a table with social security numbers and usernames, a list of items, and quantities of each item per username.
    I'm trying to build a second sheet that, when a specific social security number is entered, the rows below will pull just the item names and quantities greater than 0 for that user.

    The original data includes 200+ users, 130+ items, and quantities ranging from 1-3. I have attached a workbook with generic sample data. All data has been assigned named ranges listed below:
    LU_IMRQTY
    RNG_NAME
    RNG_ITEM

    Note: I'm familiar with cut-and-paste of vba code, but I'm intent on learning / writing my own code and KNOWING what it all means. Any assistance or suggestions would be greatly appreciated.

    Thanks!

    -Brenton Coderre
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,885

    Re: How to display specific cells ranges with values greater than 0 on a separate workshee

    Well I think the best assistance is to write the code in this case. That way we have something that works and you can ask questions about it. It wasn't a superhard macro to write but it did keep me occupied for a while. A simpler one would be much better to start with if you want to write your own code from scratch. I put some comments in the code.

    If you want to learn VBA, just mess around with it a lot. Write lots of small macros to test things. You'll get there, it just takes time.

    I messed around with your named ranges but they are all in use now and you have to expand them to suit your needs. I like using named ranges in VBA, makes referencing so much easier.
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

+ 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