array a range

  1. A

    Populate an array with no duplicates

    I am trying to create an array that references a range to fill the array. The problem I am running into is that the reference range contains a lot of duplicate values and I only need unique values added into the array. Does anyone have a good sample code that can either remove duplicates from...
  2. S

    Populate collection with values from ranges

    Hello all, I have the following problem: I got a table with 15 columns that are updated from a SQL source. There are 10 other columns that contain manual values those I want to save to a collection, update the data from the SQL source and then retrieve the values. My code looks like this: Sub...
  3. E

    Search Value by Range

    <tbody> A B C D E F G 1 Balance Fee ID Service Fee Fee ID From Bal To Bal Service Fee 2 $112.34 1 1 $0 $499.99 $10 3 $112.34 2 1 $500 $1,499.99 $20 4 $1234.21 1 2 $0 $499.99 $5 5 $342.12 2 2 $500 $1,299.99 $15 6 $785.87 2 2 $1,300 $1,499.99 $25 </tbody> I need some...
  4. V

    Range to array: how to get formats?

    Hi, I'm trying to put values and formats of cells to an array to faster process them. this seems to work dim area as variant area = range("a10:z20").value This doesn't dim areaformat as variant areaformat = range("a10:z20").font.bold Is there a way to quickly get font and .numberformat and...
  5. K

    Copy & paste multiple 'Named Ranges' from different worksheets to a new workbook using VBA

    Hi, I need help with building a vba script that would copy & paste-append all of my data from their defined "Named ranges" from one workbook to a new workbook. The workbook where I'm copying from has multiple worksheets and they each have their own set of data with their own named ranges...
  6. J

    I have a complicated array situation

    I have a table where the text "pit1" appears in multiple different rows and columns (ex: "pit1" is in c7, j6, and p16). In the 3 columns next to each of these, there are time values. Ex: c7=pit1, d7= 03:15, e7=05:45, f7=8:15. I'm trying to write a formula that will search the entire spread...
  7. A

    sum elements in an Array

    hello, What's wrong in my function? I get #Value. Regards, Andre Function total(zeros As Variant) As Double Dim sum As Double Dim i As Integer sum = 0# For i = 1 To UBound(zeros) sum = sum + zeros(i) Next i total = sum End Function
  8. V

    Multiplie (4 dimension) array & match function - VBA/Excel

    Hi, Does someone now how to script an 4 dimension array in Excel VBA? Is this impossible? I also wonder if there is an match function that can check positions to in arrays? Like, Dim impossibleArray () impossibleArray(Match funktion here) Need to be an VBA script, not an excel formula...
  9. B

    Is it possible to auto-extend the declared range of a Multi-Dimensional Array?

    Hi, Per a Mr. Excel book: VBA And Macros: Microsoft Excel 2010, I coded the following - which works - but currently requires manual updating of the specified array range in the code when data is added to the bottom of the 2 column table. My question is whether there is a way via code to...
  10. S

    Create a 'New List' based on specific criteria

    Greetings Excel Guru's, <tbody> Clients C B R A Car Bus Rail Air John Public X John Public Jane Doe X X Jane Doe Jane Doe Mary Smith X Mary Smith John Doe X X John Doe John Doe </tbody> Clients list is the master list of all names. From that list, I...
  11. G

    VBA - Using a block of code on a filtered list

    Hi, Basically what I am trying to do is filter a block of data and run a piece of code on 7 of the filtered items. Is there a way (using loops or an array??) to do this without having to do the block of code 7 times (the only thing that will change will be the filtered name. Thanks Gav
  12. P

    Trouble when using AutoFilter Array in VBA Excel 2007

    Hi After a couple of research I found a code that in theory works with an array of values that define the filter criteria to work with, when I tested as I download it it worked, however when I change those to the values I need, the filter result went blank, so this where I need the assistance I...
  13. P

    Trouble - pass cell values to an Array in VBA

    Hi I'm used the code below in the past to select from a set of an array (same variables) to copy / paste into the last line it works as it suppose to do it. Nevetheless now the one single rule change, I have to choose from a set of variables within the same range, where the variables are...
  14. P

    Error when I try to hide Multiple Columns from Multiple Sheets

    Hi I started working with VBA a couple months ago, so I'm not an expert still in my learning curve. Now, I'm trying to hide multiple columns from the multiple worksheets (same columns for all of them), based on the case condition where 1 = Jan, meaning that it will hide everything except Jan...
  15. L

    simple array formula

    Hi I am using the following array formula but it is resulting in False {=IF(C20:V20=AE16,(C19:V19))} what I am trying to do is, if any of the value in C20:V20 range = AE16, return me the value in the adjacent cell of that matched value. any help plssss....

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