PC Review


Reply
Thread Tools Rate Thread

Aligning Two Sets of Data That Share Only Some Values

 
 
=?Utf-8?B?a29ya2V5XzIwMDM=?=
Guest
Posts: n/a
 
      5th Sep 2007
Hello,

This problem is hard to explain without an example. I am using Excel 2003.
I have two sets of data:

Set 1:

Time Value
10:18:06 1
10:18:10 3
10:18:14 5

Set 2:

Time Value
10:18:04 1
10:18:05 2
10:18:06 3
10:18:07 2
10:18:08 3
10:18:09 4
10:18:10 5
10:18:11 1
10:18:12 3
10:18:13 6
10:18:14 3

As you can see, set 1 and 2 share only some "time" values. What I would
like to do is align the "values" at shared "time" from set 1 next to set 2 so
I can create a formula to work with those two shared values. Any ideas how
to automate a task to take the two sets of data above and create the
following result:

Time Set 2 Value Set 1 Value
10:18:04 1
10:18:05 2
10:18:06 3 1
10:18:07 2
10:18:08 3
10:18:09 4
10:18:10 5 3
10:18:11 1
10:18:12 3
10:18:13 6
10:18:14 3 5

Thanks for the help!
 
Reply With Quote
 
 
 
 
rleavitt@smithgroupre.com
Guest
Posts: n/a
 
      5th Sep 2007
If the first set of data are in cells A2 - B4

And the second set of data begin at D2 then you enter into cell E2
the following formula

IF(COUNTIF($A$2:$A$4,D2)>0,SUMIF($A$2:$A$4,D2,$B$2:$B$4),"")

and copy this formula down the column in which you want the values.
Obviously you could use range names rather than the specific cell
references.






On Sep 5, 1:38 pm, korkey_2003 <korkey_2...@discussions.microsoft.com>
wrote:
> Hello,
>
> This problem is hard to explain without an example. I am using Excel 2003.
> I have two sets of data:
>
> Set 1:
>
> Time Value
> 10:18:06 1
> 10:18:10 3
> 10:18:14 5
>
> Set 2:
>
> Time Value
> 10:18:04 1
> 10:18:05 2
> 10:18:06 3
> 10:18:07 2
> 10:18:08 3
> 10:18:09 4
> 10:18:10 5
> 10:18:11 1
> 10:18:12 3
> 10:18:13 6
> 10:18:14 3
>
> As you can see, set 1 and 2 share only some "time" values. What I would
> like to do is align the "values" at shared "time" from set 1 next to set 2 so
> I can create a formula to work with those two shared values. Any ideas how
> to automate a task to take the two sets of data above and create the
> following result:
>
> Time Set 2 Value Set 1 Value
> 10:18:04 1
> 10:18:05 2
> 10:18:06 3 1
> 10:18:07 2
> 10:18:08 3
> 10:18:09 4
> 10:18:10 5 3
> 10:18:11 1
> 10:18:12 3
> 10:18:13 6
> 10:18:14 3 5
>
> Thanks for the help!



 
Reply With Quote
 
=?Utf-8?B?a29ya2V5XzIwMDM=?=
Guest
Posts: n/a
 
      6th Sep 2007
great suggestion! Thanks for the help!


"korkey_2003" wrote:

> Hello,
>
> This problem is hard to explain without an example. I am using Excel 2003.
> I have two sets of data:
>
> Set 1:
>
> Time Value
> 10:18:06 1
> 10:18:10 3
> 10:18:14 5
>
> Set 2:
>
> Time Value
> 10:18:04 1
> 10:18:05 2
> 10:18:06 3
> 10:18:07 2
> 10:18:08 3
> 10:18:09 4
> 10:18:10 5
> 10:18:11 1
> 10:18:12 3
> 10:18:13 6
> 10:18:14 3
>
> As you can see, set 1 and 2 share only some "time" values. What I would
> like to do is align the "values" at shared "time" from set 1 next to set 2 so
> I can create a formula to work with those two shared values. Any ideas how
> to automate a task to take the two sets of data above and create the
> following result:
>
> Time Set 2 Value Set 1 Value
> 10:18:04 1
> 10:18:05 2
> 10:18:06 3 1
> 10:18:07 2
> 10:18:08 3
> 10:18:09 4
> 10:18:10 5 3
> 10:18:11 1
> 10:18:12 3
> 10:18:13 6
> 10:18:14 3 5
>
> Thanks for the help!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically merging 2 data sets that share some values srsammsiam Microsoft Excel Programming 5 8th Sep 2009 02:16 AM
Excel graph 3 sets of data. 2 sets as lines 1 as column? AndyN Microsoft Excel Charting 2 11th Jul 2008 01:18 PM
combine two sets of data columns based on matching values Theo Microsoft Excel Discussion 2 1st Feb 2007 02:28 PM
Aligning rows of data from multiple data sets in columns e abor Microsoft Excel Discussion 1 29th Jun 2006 09:21 AM
Aligning number values John Microsoft Access 2 30th Jan 2006 11:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:45 AM.