Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default raversing an array value

i want to get product of two array (say A(1:10) & B(1:10)) in the
following manner
A1*B10
A2*B9
A3*B8
|
|
|
|
A10*B1

can you please tell me how to do this without using macro? i want to
use only excel functions. i am using MS Excel 2007.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default raversing an array value

Hi

One way, enter in C1
=A1*INDEX(B:B,COUNT(A1:$A$10))
Copy down through C2:C10

--
Regards
Roger Govier

"Rahul" wrote in message
...
i want to get product of two array (say A(1:10) & B(1:10)) in the
following manner
A1*B10
A2*B9
A3*B8
|
|
|
|
A10*B1

can you please tell me how to do this without using macro? i want to
use only excel functions. i am using MS Excel 2007.

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default raversing an array value

Hi,

If I've understood correctly then try this

= SUMPRODUCT($A$1:A10,SUBTOTAL(9,
OFFSET($B$1:B10,LARGE(ROW($B$1:B10)-ROW($B$1),ROW(INDIRECT("1:"&ROWS($B$1:B10)))),0,1) ))

Mind the line wrap.

Mike

"Rahul" wrote:

i want to get product of two array (say A(1:10) & B(1:10)) in the
following manner
A1*B10
A2*B9
A3*B8
|
|
|
|
A10*B1

can you please tell me how to do this without using macro? i want to
use only excel functions. i am using MS Excel 2007.

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default raversing an array value

one way might be to put in D1

=OFFSET($C$1,-COLUMN()+4+9,-1)

and copy right till M1

then in D3:

=MMULT(A1:A10,D1:M1)

select D3:M12 (or a larger area) and CTRL+SHIFT+ENTER this formula
instead of simply using ENTER

HIH
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
Populate an array that is a subset of a larger array? Jeff Excel Worksheet Functions 1 September 25th 07 12:51 AM
Array: Counting multiple values within array Trilux_nogo Excel Worksheet Functions 4 April 16th 07 03:12 AM
meaning of : IF(Switch; Average(array A, array B); array A) DXAT Excel Worksheet Functions 1 October 24th 06 06:11 PM
combining cells and array from different sheets into an array to pass to IRR() [email protected] Excel Discussion (Misc queries) 3 September 11th 06 07:17 AM
Goal Seek On Members of an Array within Array LostInVBA Excel Worksheet Functions 1 June 27th 05 11:01 PM


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