Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
gb
 
Posts: n/a
Default comparing many cols of data to one col

I have many sets of percentages (can over 20) for six month periods that I
analyzed. When I get a new set of percentages, I want to compare it to the
old sets and see which old set it is most similar to. I have been doing this
by lines graph but is there an easier way because I have alot of old sets.
See below

MON DATA 1 DATA 2 DATA 3 €¦DATA 20 NEW DATA
6 7.16% 5.94% 11.89% 8.08%
5 11.86% 7.52% 11.36% 11.56%
4 20.15% 13.27% 14.91% 25.01%
3 25.89% 23.25% 21.03% 26.73%
2 6.59% 24.01% 8.70% 13.41%
1 28.34% 26.03% 32.12% 15.21%


  #2   Report Post  
DOR
 
Posts: n/a
Default comparing many cols of data to one col

You could use a least squares difference approach. This sums the square of
the differences between the corrresponding values for each month across each
data set. Assume your old data sets are in columns B,C,D and new one in E -
rows 20 to 25. Place the following formula in another row in column B and
drag/copy across to column D.

=SUM(((B20:B25)-($E$20:$E$25))^2)

The lowest number should represent the closest fit, according to the least
squares criterion. There may be better statistical measures of goodness of
fit that might discard extreme outliers or other anomalies, etc.

You may also need to modify the formula to easily acxcomodate adding
additional data readings ...

"gb" wrote:

I have many sets of percentages (can over 20) for six month periods that I
analyzed. When I get a new set of percentages, I want to compare it to the
old sets and see which old set it is most similar to. I have been doing this
by lines graph but is there an easier way because I have alot of old sets.
See below

MON DATA 1 DATA 2 DATA 3 €¦DATA 20 NEW DATA
6 7.16% 5.94% 11.89% 8.08%
5 11.86% 7.52% 11.36% 11.56%
4 20.15% 13.27% 14.91% 25.01%
3 25.89% 23.25% 21.03% 26.73%
2 6.59% 24.01% 8.70% 13.41%
1 28.34% 26.03% 32.12% 15.21%


  #3   Report Post  
DOR
 
Posts: n/a
Default comparing many cols of data to one col

OOOPS! I should have added that the formula should be confirmed with
ctl-shift-enter, since it is an array formula ...

"gb" wrote:

I have many sets of percentages (can over 20) for six month periods that I
analyzed. When I get a new set of percentages, I want to compare it to the
old sets and see which old set it is most similar to. I have been doing this
by lines graph but is there an easier way because I have alot of old sets.
See below

MON DATA 1 DATA 2 DATA 3 €¦DATA 20 NEW DATA
6 7.16% 5.94% 11.89% 8.08%
5 11.86% 7.52% 11.36% 11.56%
4 20.15% 13.27% 14.91% 25.01%
3 25.89% 23.25% 21.03% 26.73%
2 6.59% 24.01% 8.70% 13.41%
1 28.34% 26.03% 32.12% 15.21%


  #4   Report Post  
gb
 
Posts: n/a
Default comparing many cols of data to one col

I have never used an array - when do you type ctl-shift-enter ??
Thankss for all your help, gb

"DOR" wrote:

OOOPS! I should have added that the formula should be confirmed with
ctl-shift-enter, since it is an array formula ...

"gb" wrote:

I have many sets of percentages (can over 20) for six month periods that I
analyzed. When I get a new set of percentages, I want to compare it to the
old sets and see which old set it is most similar to. I have been doing this
by lines graph but is there an easier way because I have alot of old sets.
See below

MON DATA 1 DATA 2 DATA 3 €¦DATA 20 NEW DATA
6 7.16% 5.94% 11.89% 8.08%
5 11.86% 7.52% 11.36% 11.56%
4 20.15% 13.27% 14.91% 25.01%
3 25.89% 23.25% 21.03% 26.73%
2 6.59% 24.01% 8.70% 13.41%
1 28.34% 26.03% 32.12% 15.21%


  #5   Report Post  
DOR
 
Posts: n/a
Default comparing many cols of data to one col

Type or copy the formula into the first cell then, instead of pressing enter,
press and hold Ctl-shift and press enter. That will "enter" the formula as
an array formula - you will see curly brackets around it. Now copy/drag the
formula to the other cells.


"gb" wrote:

I have never used an array - when do you type ctl-shift-enter ??
Thankss for all your help, gb

"DOR" wrote:

OOOPS! I should have added that the formula should be confirmed with
ctl-shift-enter, since it is an array formula ...

"gb" wrote:

I have many sets of percentages (can over 20) for six month periods that I
analyzed. When I get a new set of percentages, I want to compare it to the
old sets and see which old set it is most similar to. I have been doing this
by lines graph but is there an easier way because I have alot of old sets.
See below

MON DATA 1 DATA 2 DATA 3 €¦DATA 20 NEW DATA
6 7.16% 5.94% 11.89% 8.08%
5 11.86% 7.52% 11.36% 11.56%
4 20.15% 13.27% 14.91% 25.01%
3 25.89% 23.25% 21.03% 26.73%
2 6.59% 24.01% 8.70% 13.41%
1 28.34% 26.03% 32.12% 15.21%




  #6   Report Post  
gb
 
Posts: n/a
Default comparing many cols of data to one col

Thanks for all your help !! It worked !!

gb

"DOR" wrote:

Type or copy the formula into the first cell then, instead of pressing enter,
press and hold Ctl-shift and press enter. That will "enter" the formula as
an array formula - you will see curly brackets around it. Now copy/drag the
formula to the other cells.


"gb" wrote:

I have never used an array - when do you type ctl-shift-enter ??
Thankss for all your help, gb

"DOR" wrote:

OOOPS! I should have added that the formula should be confirmed with
ctl-shift-enter, since it is an array formula ...

"gb" wrote:

I have many sets of percentages (can over 20) for six month periods that I
analyzed. When I get a new set of percentages, I want to compare it to the
old sets and see which old set it is most similar to. I have been doing this
by lines graph but is there an easier way because I have alot of old sets.
See below

MON DATA 1 DATA 2 DATA 3 €¦DATA 20 NEW DATA
6 7.16% 5.94% 11.89% 8.08%
5 11.86% 7.52% 11.36% 11.56%
4 20.15% 13.27% 14.91% 25.01%
3 25.89% 23.25% 21.03% 26.73%
2 6.59% 24.01% 8.70% 13.41%
1 28.34% 26.03% 32.12% 15.21%


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
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
comparing columns of data john mcmichael Excel Worksheet Functions 1 September 1st 05 04:35 PM
Comparing 2 years of data on a monthly basis Roy Charts and Charting in Excel 1 August 12th 05 09:59 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
Comparing data in two similar worksheets HiRllr21 Excel Discussion (Misc queries) 0 February 2nd 05 05:01 PM


All times are GMT +1. The time now is 02:38 AM.

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

About Us

"It's about Microsoft Excel"