+ Reply to Thread
Results 1 to 6 of 6

Grocery list

  1. #1
    Registered User
    Join Date
    05-29-2010
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    22

    Grocery list

    I have a workbook that my company uses for ordering, different materials on different sheets. When we order, we fill in quantities on each sheet, often with quantities on more then one sheet. What I want to be able to do is have a "summary" sheet that has the whole order on it. So I need a way for excel to look in each sheet and if there is a value in the quantity column will copy the row over to the summary sheet.

    My original thread in the functions forum is here:

    http://www.excelforum.com/excel-form...mmary-tab.html

    I have attached a simple sample of what I am trying to do.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Grocery list

    Try this code
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Grocery list

    If each sheet has a heading in row 1, filter is the fastest code. Try the attached.
    Attached Files Attached Files

  4. #4
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Grocery list

    .. Hi Jammy Cunlture
    . here’s another one, using VBA Arrays...

    ...The code can be greatly simplified, i just prefer to “open” it out a bit to help remind me and understand what is going on...
    ....Also sections –
    3a) can be done away with if you have an idea what the maximum possible number of rows in the grocery list could ever be.
    3c) can be done away altogether with unless you may have anything further down in grocery list (This bit just trims an Array for the Outputted grocery list to the maximum needed before pasting out to the Grocery list. )

    . Code does the same consolidating as all codes given.
    ....
    ( The Before...)..Takes.these

    Using Excel 2007
    Row\Col
    A
    B
    1
    Quantity Item
    2
    apples
    3
    3
    oranges
    4
    1
    bannana
    Fruit

    Using Excel 2007
    Row\Col
    A
    B
    1
    Quantity Item
    2
    carrot
    3
    celery
    4
    3
    tomato
    Vegetables

    Using Excel 2007
    Row\Col
    A
    B
    1
    Quantity Item
    2
    chicken
    3
    1
    steak
    4
    pork chop
    Meat

    .........

    ( The After...)..Returns this

    Using Excel 2007
    Row\Col
    A
    B
    1
    Quantity Item
    2
    3
    oranges
    3
    1
    bannana
    4
    3
    tomato
    5
    1
    steak
    Grocery List

    ............................

    Code

    Please Login or Register  to view this content.
    ....
    Let us all know please how you get on
    Alan
    Last edited by Doc.AElstein; 08-19-2015 at 04:26 PM. Reason: Just wanking about
    '_- Google first, like this _ site:ExcelForum.com Gamut
    Use Code Tags: Highlight code; click on the # icon above,
    Post screenshots COPYABLE to a Spredsheet; NOT IMAGES PLEASE
    http://www.excelforum.com/the-water-...ml#post4109080
    https://app.box.com/s/gjpa8mk8ko4vkwcke3ig2w8z2wkfvrtv
    http://excelmatters.com/excel-forums/ ( Scrolll down to bottom )

  5. #5
    Registered User
    Join Date
    05-29-2010
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Grocery list

    Thanks for getting back to me everyone. To be honest this stuff is WAAAYYYY over my head, so I am going to need a bit of time to take a look at it all. I definitely appreciate the help. If I have some questions I'll message you.

    Thanks again

  6. #6
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Grocery list

    Quote Originally Posted by jammerculture View Post
    ......
    Thanks again
    . Your welcome
    Let us know please how you get on
    Alan

+ 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. only print lines of grocery list with check mark
    By rhamblin in forum Excel General
    Replies: 2
    Last Post: 02-09-2013, 01:07 AM
  2. [SOLVED] Creating a grocery list in a new worksheet based on selected items in a master list
    By jacolli4 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2012, 07:53 AM
  3. [SOLVED] Grocery List with Price comparison
    By mrJack808 in forum Excel General
    Replies: 8
    Last Post: 04-04-2012, 10:57 AM
  4. Help with grocery 'who owes who' spreadsheet
    By Robotic in forum Excel General
    Replies: 5
    Last Post: 05-18-2011, 03:37 AM
  5. Vba code for grocery checklist help needed ?
    By ROBH4U in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-11-2010, 01:10 PM
  6. First Time Poster - Questions about Grocery List
    By Pastor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-20-2006, 03:38 PM
  7. a weekly grocery list and costs, available coupons and value
    By Excellente12 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-24-2006, 12:20 AM
  8. I need a running total of monthly grocery expense
    By Joe McCart in forum Excel General
    Replies: 2
    Last Post: 01-26-2006, 08:10 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