+ Reply to Thread
Results 1 to 2 of 2

Multiply array element values from 2 separate arrays

  1. #1
    Registered User
    Join Date
    12-13-2020
    Location
    Portland, Oregon
    MS-Off Ver
    O365
    Posts
    4

    Multiply array element values from 2 separate arrays

    Hello

    Scenario: I have 2 separate dynamic arrays. I believe the arrays are 1-dimensonal each in that the array element values are gathered from a single row in excel.: E.g., array1 = range("h10: j10") , arry2 = range("h15:j15")

    I'm want to multiply the first element in array1 by the first element in array2 and then move onto the 2nd element in array1 and multiply it by the 2nd element in array. so on and so forth until all elements in array 1 have been multiplied by their corresponding element in array 2. I'd like to hold the multiplied values in a third array and then make range("h20:j20") equal to the values in the third array.

    worksheet example:
    arry1 1, 4, 6
    arry2 2, 3, 2

    arry3 2, 12, 12

    result:
    h20: =2, i20: = 12, J20: = 12

    thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Multiply array element values from 2 separate arrays

    Point of information: you have two other threads here where members have offered detailed help, and have responded to neither. Please go back and give some feedback - if the solution offered work, them mark the thread as solved and post to say thanks. If not, say thanks anyway for trying to help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Multiply contents of two arrays then input result into an array
    By maistral in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-11-2014, 01:32 PM
  2. [SOLVED] Split Array into an Unknown Number of Separate Arrays
    By dm@stams in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-14-2013, 10:53 AM
  3. [SOLVED] Returning an array specific to an element of a separate array
    By peterszabla in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-24-2012, 05:30 PM
  4. Separate One Array Into Multiple Small Arrays
    By redan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2008, 07:27 AM
  5. [SOLVED] array functions and complex element values
    By frustrated in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-13-2006, 07:50 PM
  6. [SOLVED] Summing Like Element Array Values
    By DMS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-16-2005, 07:05 PM
  7. [SOLVED] Can I have an array of arrays and access an element simply?
    By peter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-10-2005, 10:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1