redridinghood74
New Member
- Joined
- Jul 28, 2017
- Messages
- 14
I have a "TAKINGS" Worksheet with the table "TAKINGS", it has 8 column headers;
DATE, STAFF, QTY, DESCRIPTION, SIZE, TOTAL, DEPT, EFTPOS.
With contents like;
30/07/2017, Neil, 1, WESTEND, PINT, 7, ONTAP, Y
30/07/2017, Neil, 1, XXXX, PINT, 7, ONTAP, Y
30/07/2017, Neil, 1, PALEALE, PINT, 7, ONTAP, N
30/07/2017, Neil, 1, PALEALE, PINT, 7, ONTAP, N
30/07/2017, Neil, 1, XXXX, PINT, 7, ONTAP, N
30/07/2017, Neil, 1, XXXX, PINT, 7, ONTAP, Y
I would like to choose a month &/ season, and see on a userform as a list of items from
a particular "DEPT" including summed totals ordered per item with the highest seller first.
i.e.Combobox = Month
WESTEND $12,000
XXXX $9,000
PALEALE $2,000
The takings sheet starts in July 2017 & ends in June 2018, a new workbook every year.
It has been 20 years since i last used vb
My assumption is, Where DEPT = .ONTAP & Month([DATE]) = cboMonth do
Where DESCRIPTION is unique then SUMIF
ListBox "DESCRIPTION" "TOTAL" SORT
I don't remember.
DATE, STAFF, QTY, DESCRIPTION, SIZE, TOTAL, DEPT, EFTPOS.
With contents like;
30/07/2017, Neil, 1, WESTEND, PINT, 7, ONTAP, Y
30/07/2017, Neil, 1, XXXX, PINT, 7, ONTAP, Y
30/07/2017, Neil, 1, PALEALE, PINT, 7, ONTAP, N
30/07/2017, Neil, 1, PALEALE, PINT, 7, ONTAP, N
30/07/2017, Neil, 1, XXXX, PINT, 7, ONTAP, N
30/07/2017, Neil, 1, XXXX, PINT, 7, ONTAP, Y
I would like to choose a month &/ season, and see on a userform as a list of items from
a particular "DEPT" including summed totals ordered per item with the highest seller first.
i.e.Combobox = Month
WESTEND $12,000
XXXX $9,000
PALEALE $2,000
The takings sheet starts in July 2017 & ends in June 2018, a new workbook every year.
It has been 20 years since i last used vb
My assumption is, Where DEPT = .ONTAP & Month([DATE]) = cboMonth do
Where DESCRIPTION is unique then SUMIF
ListBox "DESCRIPTION" "TOTAL" SORT
I don't remember.