Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Help for Array function

Hello,

I need to calculate the squared differences among cells of multiple
separate sheets:

0 1 0 1 0
1 0 0 1 0
0 0 0 0 0
1 1 0 0 0
0 0 0 0 0
(sheet named "1")

0 1 0 0 0
1 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
(sheet named "2")

etc., etc. in total 15 sheets.

The "Calc" sheet tries to capture the squared difference of the
corresponding cells among any two of these sheets:

row 1 2 3 4 5 <---column indicator
1 0 48 103 47 81
2 48 0 117 63 81
3 103 117 0 108 134
4 47 63 108 0 86
5 81 81 134 86 0

I have succeeded using array formula:
=SUMSQ{'1'!$B$3:$AH$35-'2'!$B$3:$AH$35}/2 for any cell in the "Calc"
sheet. Yet when I tried to automate the process a bit by using the
column indicator & row indicator, it gives "#REF" error.

Does anyone have any idea?

Thanks a bunch!!!

Henry

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default Help for Array function

How are you using the column indicator in the worksheet.

It is probably something to do with referencings and you may need to use
indirect.
--
Hope this helps
Martin Fishlock


" wrote:

Hello,

I need to calculate the squared differences among cells of multiple
separate sheets:

0 1 0 1 0
1 0 0 1 0
0 0 0 0 0
1 1 0 0 0
0 0 0 0 0
(sheet named "1")

0 1 0 0 0
1 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
(sheet named "2")

etc., etc. in total 15 sheets.

The "Calc" sheet tries to capture the squared difference of the
corresponding cells among any two of these sheets:

row 1 2 3 4 5 <---column indicator
1 0 48 103 47 81
2 48 0 117 63 81
3 103 117 0 108 134
4 47 63 108 0 86
5 81 81 134 86 0

I have succeeded using array formula:
=SUMSQ{'1'!$B$3:$AH$35-'2'!$B$3:$AH$35}/2 for any cell in the "Calc"
sheet. Yet when I tried to automate the process a bit by using the
column indicator & row indicator, it gives "#REF" error.

Does anyone have any idea?

Thanks a bunch!!!

Henry


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
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 09:35 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"