Search : in
By :

Consolidate / resort data code for excel

Last answer on Jan 29, 2009 9:31:40 pm GMT Daveyboyjnr, on Dec 8, 2008 3:04:10 pm GMT 
 Report this message to moderators

Hello,

I'm trying to write a macro for use in Excel that will take the data as shown in fig 1. and consolidate as in fig 2.
to another worksheet within the same workbook. Been trying without sucess for two days , please can anyone help. For each person named, there will only be one entry under the 'hours (A/B/C....)' columns for each week number.

Fig 1. (Sheet 1)

NAME......WEEK.....HOURS (A).....HOURS (B).....HOURS (C).....HOURS (D).....HOURS (E)
DAVID........1.............5................................­.......3......................................2
KEVIN.........1.............3...............................­........3......................................1
DAVID........1...................................7..........­.............................1..................
KEVIN.........2.............8....................2..........­...............................................3
DAVID........2..............6...................3...........­............................1..................
KEVIN.........1..................................2..........­.............................4..................
DAVID........2..............................................­........5......................................2
KEVIN.........2.............................................­.........9....................4.................


fig 2. (Sheet 2)

NAME......WEEK.....HOURS (A).....HOURS (B).....HOURS (C).....HOURS (D).....HOURS (E)
DAVID........1.............5..................7.............­......3..................1...................2
DAVID........2.............6..................3.............­......5..................1...................2
KEVIN.........1.............3..................2............­.......3..................6...................1
KEVIN.........2.............8..................2............­.......9..................4...................3

Configuration­: Windows XP
Internet Explorer 7.0

Best answers for « Consolidate / resort data code for excel » in :
Connect a database (MDB) to excel Show[VBA] Connecting a database (MDB) to excel Below is a tips of how to connect an Access database (MDB) in an application excel Add reference Microsoft DAO object librairy X.X In a general module (eg Module1) paste the code below...
VBA: Finding Hdc in an Excel worksheet or UserForm ShowVBA: Finding Hdc in an Excel worksheet or UserForm Here are two small examples on how to find Hdc in a worksheet: By clicking on Sheet1 the UserForm is displayed. Put the pointer on UF, hold the left mouse button down and drag the...
Excel tips : How to insert date in a cell ShowExcel tips : How to insert date in a cell Below are some tips on how to insert date and time in an excel cell for a specific purpose:- To insert current date, press CTRL ¯+ ;¯ in the chosen cell. To insert current time, press CTRL¯+...
ASCII Code ShowData coding Morse code was the first code used for long-distance communication. Samuel F.B. Morse invented it in 1844. This code is made up of dots and dashes (a sort of binary code). It was used to carry out communication much faster than could...

1

 kittymich, on Jan 29, 2009 9:31:40 pm GMT

Hi,

Where you able to figure this out?
I am faced with the same issue and noticed no one answered.

Kit

Reply to kittymich