+ Reply to Thread
Results 1 to 4 of 4

Quantity of items in certain month using system timestamp

  1. #1
    Registered User
    Join Date
    06-05-2023
    Location
    England
    MS-Off Ver
    365
    Posts
    23

    Quantity of items in certain month using system timestamp

    Hi There,

    I am hoping someone can help me!

    I am working with an inventory system that time stamps every time an item is used and also includes the quantity.

    I am trying to build a spreadsheet off the back of this but am struggling with a formula to get what i need.

    So in Cell G2 I am trying to get it to tell me how many "A Packs" have been used in the month of June, so it should calculate 7

    I have tried the below but obviously not correct, i have tried a few different options but cant quite get there, i dont think i can change the formatting of Column A as that's how the system updates it

    =SUMIFS(C2:C19,B2:B19,J2,A2:A19,">="&DATE(2023,6,1),A2:C19,"<="&DATE(2023,6,31))
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Quantity of items in certain month using system timestamp

    Hello,

    Few things:

    1). In column B, items are started with 'space', but in J2, there is no 'space'.
    2). In the last part of the formula, the range you used was A2:C19, change C19 to A19.

    =SUMIFS(C2:C19,B2:B19,J2,A2:A19,">="&DATE(2023,6,1),A2:A19,"<="&DATE(2023,6,30))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    06-05-2023
    Location
    England
    MS-Off Ver
    365
    Posts
    23

    Re: Quantity of items in certain month using system timestamp

    Brilliant, this worked perfectly, also a schoolboy error from me with the space, well spotted!

    Thank you so much

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Quantity of items in certain month using system timestamp

    another method by using sumproduct

    G2
    =SUMPRODUCT((C2:C19)*(TRIM(B2:B19)=J2)*(MONTH(A2:A19)=MONTH(G1)))

+ 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] List items based on quantity
    By AndyG0 in forum Excel General
    Replies: 8
    Last Post: 02-22-2017, 12:28 PM
  2. Need to match up quantity values for items
    By eksepshonal in forum Excel General
    Replies: 1
    Last Post: 04-06-2016, 12:04 AM
  3. list items where quantity > 0
    By Ninanoki in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-08-2013, 10:28 AM
  4. [SOLVED] Eliminate items with zero quantity
    By SaraM in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-04-2013, 08:21 AM
  5. [SOLVED] Help with a system to auto populate month names based on current month
    By rosboy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-01-2012, 05:17 PM
  6. [SOLVED] VBA to identify the current month and previous month based on system date
    By ravikumar00008 in forum Excel General
    Replies: 10
    Last Post: 07-26-2012, 10:04 AM
  7. Print only items with a quantity >0
    By zerodegreec in forum Excel General
    Replies: 1
    Last Post: 06-11-2009, 07:32 PM

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