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

Hamitoco

New Member
Joined
Oct 13, 2019
Messages
5
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
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]ORDER #[/TD]
[TD]Product Code[/TD]
[TD]Qty[/TD]
[/TR]
[TR]
[TD]10-Oct[/TD]
[TD]102[/TD]
[TD]SKMDRT[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]10-Oct[/TD]
[TD]103[/TD]
[TD]IMRDDT[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]10-Oct[/TD]
[TD]104[/TD]
[TD]PMYTUV[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]10-Oct[/TD]
[TD]105[/TD]
[TD]SKMDRT[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]11-Oct[/TD]
[TD]106[/TD]
[TD]PDYHTW[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]11-Oct[/TD]
[TD]107[/TD]
[TD]FTRHYGQ[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]11-Oct[/TD]
[TD]108[/TD]
[TD]PIMHKLO[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]11-Oct[/TD]
[TD]109[/TD]
[TD]PMYTUV[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]12-Oct[/TD]
[TD]110[/TD]
[TD]IMRDDT[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]12-Oct[/TD]
[TD]111[/TD]
[TD]KJULOIR[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]12-Oct[/TD]
[TD]112[/TD]
[TD]LKJULOIR[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]12-Oct[/TD]
[TD]113[/TD]
[TD]LKJUTYV[/TD]
[TD]9[/TD]
[/TR]
</tbody>[/TABLE]

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
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Product Code[/TD]
[TD]qty[/TD]
[/TR]
[TR]
[TD]10-Oct[/TD]
[TD]SKMDRT[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]10-Oct[/TD]
[TD]IMRDDT[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]10-Oct[/TD]
[TD]PMYTUV[/TD]
[TD]7[/TD]
[/TR]
</tbody>[/TABLE]

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
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Product Code[/TD]
[TD]QTY[/TD]
[/TR]
[TR]
[TD]10-Oct[/TD]
[TD]SKMDRT[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]10-Oct[/TD]
[TD]IMRDDT[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]10-Oct[/TD]
[TD]PMYTUV[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]11-Oct[/TD]
[TD]PDYHTW[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]11-Oct[/TD]
[TD]FTRHYGQ[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]11-Oct[/TD]
[TD]PMYTUV[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]11-Oct[/TD]
[TD]PIMHKLO[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]

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.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
A Pivot Table will do exactly what you want.

[table="class:thin_grid"]
[tr][td]v[/td]
[td="bgcolor:#ECF0F0, align:center"]A[/td]
[td="bgcolor:#ECF0F0, align:center"]B[/td]
[td="bgcolor:#ECF0F0, align:center"]C[/td]
[td="bgcolor:#ECF0F0, align:center"]D[/td]
[td="bgcolor:#ECF0F0, align:center"]E[/td]
[td="bgcolor:#ECF0F0, align:center"]F[/td]
[td="bgcolor:#ECF0F0, align:center"]G[/td]
[td="bgcolor:#ECF0F0, align:center"]H[/td]
[/tr][tr][td="bgcolor:#ECF0F0, align:center"]1[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]Date[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]ORDER #[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]Product Code[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]Qty[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]2[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]43748[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]102[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]SKMDRT[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]5[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"]Date[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]Product Code[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]Sum of Qty[/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]3[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]43748[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]103[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]IMRDDT[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]10[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"]43748[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]4[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]43748[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]104[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]PMYTUV[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]7[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"]IMRDDT[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]10[/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]5[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]43748[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]105[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]SKMDRT[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]3[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"]PMYTUV[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]7[/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]6[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]43749[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]106[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]PDYHTW[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]4[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"]SKMDRT[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]8[/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]7[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]43749[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]107[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]FTRHYGQ[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]15[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"]43749[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]8[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]43749[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]108[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]PIMHKLO[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]5[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"]FTRHYGQ[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]15[/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]9[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]43749[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]109[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]PMYTUV[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]12[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"]PDYHTW[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]4[/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]10[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]43750[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]110[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]IMRDDT[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]3[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"]PIMHKLO[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]5[/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]11[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]43750[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]111[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]KJULOIR[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]2[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"]PMYTUV[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]12[/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]12[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]43750[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]112[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]LKJULOIR[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]2[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"]43750[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]13[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]43750[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]113[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]LKJUTYV[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]9[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"]IMRDDT[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]3[/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]14[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"]KJULOIR[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]2[/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]15[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"]LKJULOIR[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]2[/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]16[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"]LKJUTYV[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]9[/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]17[/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[td="bgcolor:#FFFFFF, align:CENTER"][/td]
[/tr]
[/table]
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,011
Members
452,374
Latest member
keccles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top