collating data from the last month only.

dougy.b

New Member
Joined
Jul 8, 2009
Messages
25
I am hoping that there is a formula, function or macro that I can put into a new workbook to be able to take data from 4 separate workbooks, as follows.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
I need to be able to take data from two columns in each workbook but only from the last month (and will need to do this each month).
Column F contains a code letter (either R, P, I, RPA, RPB or RPC).
Column N contains a qty (just a standard number)
Column P contains the date (in dd mmm yyyy format)
<o:p></o:p>
The workbooks are named Workstation A, Workstation B, Workstation C and Workstation D.
<o:p></o:p>
Once I have that data I would like the formula, function or macro to then add all the qty’s from column N but only for each code (from column F). So all the qty’s corresponding to R to be totalled, all the qty’s for P to be totalled etc, etc.
<o:p></o:p>
If anyone is able to help I would be very grateful.
<o:p></o:p>
Thanks for looking
<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:eek:ffice:smarttags" /><st1:PersonName>Doug</st1:PersonName>
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
i'm thinking a promt to ask which month to take the data from could be useful but not essential.:)
 
Upvote 0
I've just read that a pivot table might be what i am looking for to achieve this. but i have no idea how it works.
i've ran the wizard but after that i don't quite know what to do to acheive my goal.

:confused:
 
Upvote 0

Forum statistics

Threads
1,216,499
Messages
6,131,010
Members
449,613
Latest member
MedDash99

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