+ Reply to Thread
Results 1 to 2 of 2

Need formula to generate a list of items, based on entries on a scratch pad from prior tab

  1. #1
    Registered User
    Join Date
    Chicago, IL
    MS-Off Ver
    Office 2013

    Need formula to generate a list of items, based on entries on a scratch pad from prior tab

    I have a tab set up with a set of short tables as a scratch pad to take an inventory of stuff.
    My second tab needs to then summarize the totals for each table where there a tally exists. So I want to skip any of the scratch pad tables if it is blank (so my second tab doesnt have a bunch of zeroes)

    For example, I want to take an inventory of my fridge, and end up with a second tab that just lists and counts the contents of my fridge.
    On the first tab I have 20 short tables (say 10 rows long) and the tables are listed, eg, Apples, Cucumbers, Peaches, Pears, Potatoes, etc.
    When i tally up my fridge, I count 6 apples, and I name them (lets just say I am insane and itemize them on the Apples table. At the top right of the Apples table is now a COUNT of "6" because I made 6 entries.
    I skip the Cucumbers table because I am out of cucumbers
    I go on the same way to list and count 5 Peaches, no Pears, and 4 Potatoes, etc.

    On my Inventory Tab, I end up with just a list of items and counts, when there are entries on the previous tables.
    e.g. I end up with:
    A1 = "Apples" B1 = 6
    A2 = "Peaches" B2 = 5
    A3 = "Potatoes" B3= 4

    The formula I am looking for on the second tab is something like:
    "If Apples table total = 0 then skip it and go to the next table, else, A1= "Apples" and B1= the Apples table tally"

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16/365

    Re: Need formula to generate a list of items, based on entries on a scratch pad from prior

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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


+ 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. [SOLVED] How to generate a list of all possible combinations of items
    By StuCram in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-29-2015, 02:11 PM
  2. [SOLVED] Generate List Of Items in a range
    By plans in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2014, 09:49 PM
  3. Excel Function to Generate list of unique entries from multiple columns
    By ronnycool in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2014, 06:15 PM
  4. Replies: 0
    Last Post: 11-13-2012, 12:53 PM
  5. Replies: 1
    Last Post: 09-13-2012, 03:46 PM
  6. Auto-generate pivot tables based on number of entries
    By booo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-23-2010, 06:25 PM
  7. formula to get list of items from 1 col based on a criteria in another col
    By aravindhan_31 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-31-2009, 08:25 AM

Tags for this Thread


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