Macro to make list from data

mnewns76

New Member
Joined
Jun 7, 2011
Messages
4
Hi,

I have a sheet with data on customer deliveries by day, it has twenty some columns with information and covers several hundred rows of information relating to individual deliveries.

On a separate sheet in the workbook I would like to summarise deliveries by a date - ie select/type in a date one week ago and get a list of deliveries with chosen columns of data. a bit like a vlookup but a bit cleverer as there will be varying amounts of data per day.

Is there a simple way through macro/formula that I could return this list of data?

many thanks in advance
Mat
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Have you looked into simply using the autofilter or pivot table functions built into excel? Unless you are looking to automate the process, either of these might suit your needs
 
Upvote 0
Welcome to MrExcel Board....

here is a sample of how to setup a sheet for getting a formula to return multiple values of one criteria

Excel Workbook
ABCDE
1DepartmentNameAddressPhoneEmail
2AccountingJoe Smith123 A Street281-555-7171Smith.J@abc.com
3AccountingSteve Gates3356 City Avenue713-555-1124Gates.S@abc.com
4AccountingDebbie Anston7517 County Line832-555-4004Anston.D@abc.com
5CollectionsHooker Mannis311 Loveland Ave713-555-1123Mannis.H@abc.com
6CollectionsTiger Woods1697 Constance Dr832-555-4003Woods.T@abc.com
7CollectionsTom Longfellow4143 A Street281-555-7177Longfellow.T@abc.com
8Customer ServiceFrank Ling350 City Court Ln281-555-7172Ling.F@abc.com
9Customer ServiceArnold Palmer3312 Loveland Ave713-555-1125Palmer.A@abc.com
10Customer ServicePhil Perry8670 Constance Dr832-555-4005Perry.P@abc.com
11ExecutiveBill Jobs1124 A Street281-555-7173Jobs.B@abc.com
12ExecutiveCarl Reins4357 City Avenue713-555-1126Reins.C@abc.com
13ExecutiveBonnie Rath6522 County Line832-555-4006Rath.B@abc.com
14FinanceKarl Reiner355 City Avenue713-555-1122Reiner.K@abc.com
15FinanceMary Pierce15700 County Line832-555-4002Pierce.M@abc.com
16FinanceDebbie Winston2350 City Court Ln281-555-7176Winston.D@abc.com
17HRCarol Lovely1666 Constance Dr832-555-4001Lovely.C@abc.com
18HRBarbra Wings1525 A Street281-555-7175Wings.B@abc.com
19HRTerri Mercer7315 City Avenue713-555-1128Mercer.T@abc.com
20Outside SalesBob Ricker1515 County Line832-555-4000Ricker.B@abc.com
21Outside SalesConnie Gaston2351 City Court Ln281-555-7174Gaston.C@abc.com
22Outside SalesKen Smith5310 Loveland Ave713-555-1127Smith.K@abc.com
Open
Excel 2003
Cell Formulas
RangeFormula
E2=RIGHT(B2,LEN(B2)-FIND(" ",B2))&"."&LEFT(B2,1)&"@abc.com"
E3=RIGHT(B3,LEN(B3)-FIND(" ",B3))&"."&LEFT(B3,1)&"@abc.com"
E4=RIGHT(B4,LEN(B4)-FIND(" ",B4))&"."&LEFT(B4,1)&"@abc.com"
E5=RIGHT(B5,LEN(B5)-FIND(" ",B5))&"."&LEFT(B5,1)&"@abc.com"
E6=RIGHT(B6,LEN(B6)-FIND(" ",B6))&"."&LEFT(B6,1)&"@abc.com"
E7=RIGHT(B7,LEN(B7)-FIND(" ",B7))&"."&LEFT(B7,1)&"@abc.com"
E8=RIGHT(B8,LEN(B8)-FIND(" ",B8))&"."&LEFT(B8,1)&"@abc.com"
E9=RIGHT(B9,LEN(B9)-FIND(" ",B9))&"."&LEFT(B9,1)&"@abc.com"
E10=RIGHT(B10,LEN(B10)-FIND(" ",B10))&"."&LEFT(B10,1)&"@abc.com"
E11=RIGHT(B11,LEN(B11)-FIND(" ",B11))&"."&LEFT(B11,1)&"@abc.com"
E12=RIGHT(B12,LEN(B12)-FIND(" ",B12))&"."&LEFT(B12,1)&"@abc.com"
E13=RIGHT(B13,LEN(B13)-FIND(" ",B13))&"."&LEFT(B13,1)&"@abc.com"
E14=RIGHT(B14,LEN(B14)-FIND(" ",B14))&"."&LEFT(B14,1)&"@abc.com"
E15=RIGHT(B15,LEN(B15)-FIND(" ",B15))&"."&LEFT(B15,1)&"@abc.com"
E16=RIGHT(B16,LEN(B16)-FIND(" ",B16))&"."&LEFT(B16,1)&"@abc.com"
E17=RIGHT(B17,LEN(B17)-FIND(" ",B17))&"."&LEFT(B17,1)&"@abc.com"
E18=RIGHT(B18,LEN(B18)-FIND(" ",B18))&"."&LEFT(B18,1)&"@abc.com"
E19=RIGHT(B19,LEN(B19)-FIND(" ",B19))&"."&LEFT(B19,1)&"@abc.com"
E20=RIGHT(B20,LEN(B20)-FIND(" ",B20))&"."&LEFT(B20,1)&"@abc.com"
E21=RIGHT(B21,LEN(B21)-FIND(" ",B21))&"."&LEFT(B21,1)&"@abc.com"
E22=RIGHT(B22,LEN(B22)-FIND(" ",B22))&"."&LEFT(B22,1)&"@abc.com"




Excel Workbook
ABCDE
1Match DeptHR3
2DepartmentNameAddressPhoneEmail
3HRCarol Lovely1666 Constance Dr832-555-4001Lovely.C@abc.com
4HRBarbra Wings1525 A Street281-555-7175Wings.B@abc.com
5HRTerri Mercer7315 City Avenue713-555-1128Mercer.T@abc.com
6
7
8
Sheet2
Excel 2003
Cell Formulas
RangeFormula
C1=COUNTIF(Open!$A$2:$A$22,B1)
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself
 
Upvote 0
Hi,

I have a sheet with data on customer deliveries by day, it has twenty some columns with information and covers several hundred rows of information relating to individual deliveries.

On a separate sheet in the workbook I would like to summarise deliveries by a date - ie select/type in a date one week ago and get a list of deliveries with chosen columns of data. a bit like a vlookup but a bit cleverer as there will be varying amounts of data per day.

Is there a simple way through macro/formula that I could return this list of data?

many thanks in advance
Mat

I set up a macro to create an autofilter that selects the header row only and then all contiguous data below is filtered based on user inputs. You would obviously want to tweak it a bit, but maybe this will get you going in the right direction? Here is the link for that post. The copy and paste bit probably doesn't apply as much to you, in this instance.
 
Upvote 0

Forum statistics

Threads
1,224,532
Messages
6,179,388
Members
452,908
Latest member
MTDelphis

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