+ Reply to Thread
Results 1 to 7 of 7

Get product code and quantity based on date

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811

    Get product code and quantity based on date

    I am trying to get all the products and their quantities sold on a given date from a table. The attached file explains it a bit better.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811

    Re: Get product code and quantity based on date

    It would be useful to know if the products and the quantities that were sold during a period i.e. 1/1 to 5/1 could be extracted, too

  3. #3
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811

    Re: Get product code and quantity based on date

    I can do it using a helper column but I am trying to avoid that.

  4. #4
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Get product code and quantity based on date

    Hello BRISBANEBOB,

    Well, technically, the easiest way to do this without VBA is to copy paste the entire unique name list on the J column and use a formula like this:
    Please Login or Register  to view this content.
    Which will simply return the value on the corresponding column, and afterward you can copy paste value, filter / sort it I guess.

    If you want to sorten it even further in the steps you need to do, you can probably make use of Array Formula, but it will take a toll on the performance if you have a large amount of data.

    Also, are you fine with an VBA approach? It will be a neater approach in my opinion.

    Here is your sample with the formula, just change the date in E21 and you will see it change.
    Attached Files Attached Files
    (copy pasta from Ford)
    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

    Regards,
    Lem

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: Get product code and quantity based on date

    Another way using array formula in E23 and filling down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    Then this formula in F23 and filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    It does not have to be array entered.
    Dave

  6. #6
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811

    Re: Get product code and quantity based on date

    Thank you both - I am avoiding the VBA solution due to IT policy. I am studying the array formula (which I am slowly getting to grips with). I will revert tomorrow. Thanks again

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: Get product code and quantity based on date

    You're welcome. Thanks for the feedback.

+ 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. Replies: 0
    Last Post: 01-28-2014, 07:37 AM
  2. Check a value based on product code and date
    By DirectGardenBuilding in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-27-2013, 05:33 AM
  3. How to add up quantity automatically by scanning product code?
    By sheiling in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 08-01-2013, 06:21 AM
  4. Itemize Product based on quantity into Multiple Rows
    By sostenes in forum Excel General
    Replies: 2
    Last Post: 12-05-2012, 08:52 PM
  5. Value lookup based on product code and quantity
    By alepoutre in forum Excel General
    Replies: 3
    Last Post: 08-15-2011, 10:45 AM
  6. Replies: 5
    Last Post: 08-10-2011, 05:06 PM
  7. Replies: 2
    Last Post: 04-02-2009, 05:56 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