+ Reply to Thread
Results 1 to 4 of 4

Create a new array that skips row

  1. #1
    Registered User
    Join Date
    05-08-2017
    Location
    Cambridge
    MS-Off Ver
    Office 2016
    Posts
    2

    Question Create a new array that skips row

    Hi everyone,

    I am looking for help with multiplication. Basically let say there are values in cells A1:A8 and B1:B4 and I am trying to multiply A1 with B1, A3 with B2, A5 with B3 and so on. For A column every nth row is skipped when multiplying with B column. Can I know if I would be able to achieve that by using arrays? I understand that {=SUM(A1:A8*B1:B4)} will be able to do the trick but I cant figure out how I will be able to skip the row.

    Thank you so much for helping.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Create a new array that skips row

    Hello kzh11411 and Welcome to Excel Forum.
    I imagine that you are looking for a single formula solution, and perhaps one exists and perhaps I or another volunteer here will think of how to put it together. In the mean time here is a proposed solution that involves a helper column (C).
    The formula that populates the helper column is: =INDIRECT("B"&ROUNDUP(ROW(B1)/D$1,0))
    Cell D1, referenced by the formula as well as the one following, is the nth row, in the case of your example it would be 2
    The formula that gives the sum of the values in column B and every nth (2nd) value in column A is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Note: the formula looks for more cells than the originally stipulated 8 so that if you would like to change the value in D1 to say 3 you would be able to place 9 values in column A and 3 values in column B. (I hope that makes sense).
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    05-08-2017
    Location
    Cambridge
    MS-Off Ver
    Office 2016
    Posts
    2

    Re: Create a new array that skips row

    Thank you so much for your help! I think this will be able to solve the problem for the moment. Indeed I am working on more than 8 rows so your solutions can save me a lot of the time.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Create a new array that skips row

    You're Welcome and thank you for the feedback. I hope that you have a blessed day.

+ 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. [SOLVED] How do I create a number sequence that skips every 5th number?
    By Capoland in forum Excel General
    Replies: 2
    Last Post: 02-23-2017, 11:03 AM
  2. Replies: 3
    Last Post: 04-02-2016, 08:16 PM
  3. Replies: 14
    Last Post: 11-26-2015, 09:43 AM
  4. Script skips past numbers in an array.
    By Kalzin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-27-2015, 04:16 PM
  5. Replies: 2
    Last Post: 02-28-2014, 10:15 PM
  6. [SOLVED] Create a Formula That Skips Every n Cells
    By tj2434 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-20-2013, 05:30 PM
  7. [SOLVED] How can I create a list that skips zero values?
    By S.K.S. in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2005, 10:06 PM

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