Obtaining sets of data that fall on a specific date or withing a specific date range.

Hamitoco

New Member
Joined
Oct 13, 2019
Messages
2
Hi,

I have a spreadsheet which contains information for certain sales. Below is a basic representation of my dataset (the actual spreadsheet contains more columns of information and has new entries added daily from multiple people)
'Sales Data' worksheet
DateORDER #Product CodeQty
10-Oct102SKMDRT5
10-Oct103IMRDDT10
10-Oct104PMYTUV7
10-Oct105SKMDRT3
11-Oct106PDYHTW4
11-Oct107FTRHYGQ15
11-Oct108PIMHKLO5
11-Oct109PMYTUV12
12-Oct110IMRDDT3
12-Oct111KJULOIR2
12-Oct112LKJULOIR2
12-Oct113LKJUTYV9

<tbody>
</tbody>

I would like to know if i could create a formula on another worksheet that will provide me with the product codes and total quantities for a specific date or date range. for example if I'm interested in the 10th October i can insert those date and it will return the following
'Data summary' worksheet
DateProduct Codeqty
10-OctSKMDRT8
10-OctIMRDDT10
10-OctPMYTUV7

<tbody>
</tbody>

Product code SKMDRT appears once with the combined qty for the 2 sales on that date. Or if I'm interested in looking at data form the 10th - 11th it returns
DateProduct CodeQTY
10-OctSKMDRT8
10-OctIMRDDT10
10-OctPMYTUV7
11-OctPDYHTW4
11-OctFTRHYGQ15
11-OctPMYTUV12
11-OctPIMHKLO5

<tbody>
</tbody>

I know the simplest way is to apply a filter to my dataset however i want to avoid this as the sales data has alot of information and is continuously updated, this is why i would like to create a separate sheet which can provide me with a summary for specific dates without affecting the main data. I have also tried a pivot table but that doesn't seem to work for what i am after. i have been reading up about creating an array formula with index/match but have had no luck applying to my data set.

any help would be much appreciated,
Thankyou.
 

alansidman

Well-known Member
Joined
Feb 26, 2007
Messages
5,071
Office Version
2019
Platform
Windows
A Pivot Table will do exactly what you want.

vABCDEFGH
1DateORDER #Product CodeQty
243748102SKMDRT5DateProduct CodeSum of Qty
343748103IMRDDT1043748
443748104PMYTUV7IMRDDT10
543748105SKMDRT3PMYTUV7
643749106PDYHTW4SKMDRT8
743749107FTRHYGQ1543749
843749108PIMHKLO5FTRHYGQ15
943749109PMYTUV12PDYHTW4
1043750110IMRDDT3PIMHKLO5
1143750111KJULOIR2PMYTUV12
1243750112LKJULOIR243750
1343750113LKJUTYV9IMRDDT3
14KJULOIR2
15LKJULOIR2
16LKJUTYV9
17
 

Forum statistics

Threads
1,081,929
Messages
5,362,182
Members
400,671
Latest member
Tommy00836

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top