arrays

  1. A

    VBA Trying to write new array from another array

    I'm trying to create a new array from a larger array that has 4087 rows and 19 columns. I cycle through the main array to count the number of records matching the year 2017 of which there are 714. So my new array will be 714 rows by 11 columns. Most of the undernoted code works including the...
  2. R

    Position(s) of the Large after multiplication

    <tbody> </tbody> In my example I've got components of 5 combinations in B5:C9 to be multiplied, Extra is added to each of the B5:B9 and C5:C9 array(s) when calculating the Largest product of those arrays. Instead of listing the results of the multiplication I'd like their...
  3. N

    Userform data arrays

    Hello Excel Friends,<br> <br> I have a user form that currently publishes the data to a database sheet in one row, however, what I need it to do is publish the data vertically instead of horizontally, but I need 2 of the form sources to be replicated in each row.<br> <br> My current user form...
  4. S

    Unable to get the correl property of the worksheet function class

    I am having trouble with the line below DistanceMeasure = (1 - Application.WorksheetFunction.Correl(Application.WorksheetFunction.Index(X, 0, 2), Application.WorksheetFunction.Index(TempSample, 0, 2))) * 100 X and TempSample are both arrays with an equal number of elements. Am I using...
  5. adrienne0914

    SUMPRODUCT alternative

    I have a workbook with 2000+ lines and 111 columns. As a result, SUMPRODUCT takes forever. My formula on Summary tab is: =SUMPRODUCT((Source!$C$33:$C$2792=$A2)*(Source!$E$33:$E$2792=$C2)*(Source!$H$32:$DH$32=D$1)*Source!$H$33:$DH$2792) I tried SUMIFS but got a #VALUE error because arrays are...
  6. S

    2 Dimensional Arrays VBA

    I would like to be able to loop through arrays to do a test. I have one big array. It is two dimensional and has 2000 objects. From this array I would like to test every consecutive set of 20 objects to compare to another array. What kind of structure am I looking for here? In other words...
  7. M

    Single Cell Array Question!

    Assume the following: Cell A1 = 20 Cell A2 = 35 Cell A3 = 45 =SUM(A1:A3) = 100 But I want to have those 3 values within one single cell as an array like A4 ={"20";"35";"45"} and do = SUM(A4). However, when I do this, the result = 20. When I read the cell value of A4 with VBA, Range(A4).Value...
  8. P

    How can I dynamically increase the number of rows in an array when new data is available to assign to the array

    I am using the VBA code below to copy elements from a semi-structured workbook to an array and then from the array into a target worksheet of another workbook. My problem is that the macro takes a long time to run and (sometimes) causes Excel to freeze. My approach is to define an empty 2D...
  9. A

    Ebook

    I just attended a session where a free ebook was mentioned on dynamic arrays. I was given an incomplete link. Can I get the link?
  10. MrExcel

    Dynamic Arrays Debut September 24

    Microsoft just announced Dynamic Arrays for Excel. They say that Ctrl+Shift+Enter will not have to be used anymore. It is the 4th item on this page: https://www.microsoft.com/en-us/microsoft-365/blog/2018/09/24/bringing-ai-to-excel-4-new-features-announced-today-at-ignite/ but I think it is...
  11. G

    Using an Array formula with find text and find number start.

    Hi guys, I'm working with a data set that I need to do some sumif type stuff with qualifications both on the rows and columns. This wonderful sight got me started with arrays, and I've gotten partway to my solution with an array. The below formula gets me part of the way, but now I'd like to...
  12. K

    Issue Averaging Array bc of Div/0 errors & 0's

    I am getting an error at the worksheetfunction.average line when I run this macro because of div/0 errors in the data. It runs fine when there are no div/0 errors in the code, so everything else is fine. I just need a way to be able to ignore the div/0 in the data, and preferably to filter out...
  13. B

    How to check if value of cell is a part of an array

    Hello, I need some help again. I'm working with thousands of lines of data in Excel and I need to check if any value in a specified column is one of the values from a specified set of values. I was reading a bit about arrays and thought that they may be useful here, but I never used them before...
  14. M

    Copying Non-contiguous columns from one workbook and pasting them into a Table in another workbook

    Hello all I am a first-time poster to this forum, but have read through a lot of the posts and have gained so much knowledge to help in my own journey as a relative novice in learning and applying VBA in my job as an analyst. I have a question as to how to paste certain non-contiguous columns...
  15. M

    transform array of varying lengths

    Hi, I have been fiddling with this logic, but I can't seem to make it work. Basically I just want to transpose arrays with varying lengths using the Ubound property. Here is the original code: Set rng = Range("VBAOutput") rng.offset(0, 229).Value = Application.Transpose(array) THANKS
  16. C

    Formula to find Mis-Matches in two arrays of varying size

    Good afternoon, I am trying to figure out a formula that returns true/false on two array saying if they match. A simple example of what I want is as follows: Array1: {"A", "C", "D"} Array2: {"A", "B", "C", "D", "E"} Desired result: {True, False, True, True, False} Using ={"A", "C"...
  17. C

    find partial match of string between two arrays

    I have two arrays. Array A has a list of multiple terms in a column such as this: <tbody> Urinary Bladder Cancer|Bladder Tumors|Transitional Cell Carcinoma of the Bladder|Malignant Melanoma|Melanoma|Skin Cancer|Carcinoma, Non-Small-Cell Lung|Lung Cancer Platinum Sensitive Ovarian...
  18. B

    Formula to extract SCORES over 100 from each location of an individual Player (DARTS)

    This may very well be just too big, but here goes ... I've been handed a DARTS SCORE Sheet for a full LEAGUE The owners want to record each time all players score over 99 (>=100) The problem is multipartite: There are 6 players on the Team Each player can play in up to 3 "games" (TEAMS...
  19. A

    Sumproduct and Vlookup

    Hi all Id be grateful for some help with this problem I have a table of 50 rows, and each row is populated by a value which in turn has been generated by 5 vlookup formulas all adding the return values up. So for example B1 would by £740 being the sum of 700+10+10+10+10. Each of the "£700"...
  20. M

    Reset public arrays

    Hi, I have a vba program with publicly declared variable arrays. My program loops around and when it does I need to clear the array and reset all the values to zero. What is the best way to do this? I notice that even when the program ends, the arrays still hold the values. Shouldn't the...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top