Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Joining rows with different data

Hey there, I was wondering if it would be possible to have excel
consolidate my data in a way that I can use later for statistical
analysis.

I am currently working with a hospital database that outputs data in
the following way:

A= patient number
B= date test was completed
C= Hospital Test 1 (1st data value)
D= Hospital Test 1 (2nd data value)
E= Hospital Test 2 (1st data value)
F= Hospital Test 2 (2nd data value)
G= Hospital Test 3 where two different results were obtained on the
same day

The data needs to be consolidated onto one row for different tests
conducted on the same day for the same patient. An example is as
Follows

A B C D
E F G
1234 12-Dec-05 TestResult1 TestResult 2
1234 12-Dec-05 TestResult3
TestResult 4
1234 12-
Dec-05
TestResult 5
1234 12-
Dec-05
TestResult 6

I would need the macro or what not to organize the data as follows:

A B C D
E F G H
1234 12-Dec-05 TestResult1 TestResult 2 TestResult3 TestResult 4
TestResult5 TestResult6

* Where H is a column that the macro generates in order to fit the
data on the same line.


The macro would have to be able to go through every row in the
database and check for patient MRN and date match and then consolidate
the data in the way I just outlined. Is this possible at all? I would
REALLY appreciate any help.

Thanks so much!

J

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Joining up data points Emma Hope Charts and Charting in Excel 2 October 3rd 08 12:24 PM
Grouping or joining rows pilgrim Excel Worksheet Functions 4 February 6th 07 07:34 PM
joining data points on graph minihana Charts and Charting in Excel 2 February 12th 06 02:02 AM
Joining data points on a line chart JCW173 Charts and Charting in Excel 2 January 26th 06 12:38 PM
Joining Columns Michael168[_76_] Excel Programming 7 June 1st 04 07:18 AM


All times are GMT +1. The time now is 05:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"