application.match

  1. K

    How to SUM all the values in a column by MATCHING a specific column header using VBA?

    For work, I'm trying to set up a macro to sum all the values in a column based on a specific column header using VBA. (The location of the columns can change.) For example, I'm trying find the column with header "Blueberry" and sum all the values in the column and return value in E2 (see sample...
  2. M

    Application.Match to find first Empty element in an array

    Hello everyone, Can I use Application.Match to find the first "Empty" element of an array ? Please refer to the below code, looking at the Locals window, once the array is created, all elements of the array have "Empty" value so the first debug.print give Error 2042 as I was looking for the...
  3. T

    Worksheetfunction.Match Error 1004 on one code, but not the other nearly identical one

    I have 2 VBA codes that are almost identical to each other, the only difference is that one of them has a prompt for message box with input to fill in column B. Basically code 2 is identical to code 1, but with all the columns shifted one down (B-C, C-D, etc). Below is code 1 Private Sub...
  4. F

    Application.match no longer found in object browser after upgrading to excel 2016

    Longer time user of this site, but rarely have i needed to post a question, as I normally find the anwser, but this one has had me stuck for a couple of weeks (off and on). A wrote a rather large piece of code, which is basically a database for storing lots of information in mutliple table...
  5. B

    Array comparison, current sheets in workbook vs array list

    I am trying to create almost a "sheet validate" code in which it will cycle through the current workbooks sheets to make sure it matches to the defined array. I have the initial part of the code where it takes all the sheets in the current workbook and puts them in an array. My problem lies...
  6. D

    run-time error 13 after Application.Match

    Hi, I'm trying to create a comma separated list in colD from terms in colA where colB and colC match. I have the following code: Sub test2() Dim r1 As Range Dim r2 As Range Dim cell As Range Dim lastrow As Long Dim csvTxt As String 'change Sheet1 to suit With...
  7. M

    Application.Match

    Hi all, I have some coding which loops through a list of references numbers, and searches multiple worksheets for a the matching reference number. This works fine but what I need it to is to return an offset value(s) once the matching reference number has been found. So the original list of...
  8. R

    Need help with an Application.Match line that uses variables to define everything

    Hi, all! I'm a total newbie at VBA, and I'm trying to get this code to use some pre-defined variables to accurately define a range of cells within a column. This range is going to keep changing... there's a loop. If the code looks messy, that's probably due to my efforts to split everything up...
  9. R

    Search several columns string in a worksheet

    Hi there, I would like to search (to check) if in a different workbook.worksheet there are columns with header title: the user creates a worksheet with 10 columns, I have to retrieve some data from it, but they usually forget to create the columns which are mandatory for my retrieval. The...
  10. O

    [VBA] When a cell value change other sheet, trigger other cells function, and change the result macro

    Hi, ihave this code below and it gets data from sheet1 and does index and match function. But, the problem is, while i am using this function in sheet2, i can get the results flawlessly. But when i change the reference cells value in sheet1, nothing happens. I guess, that is because the...
  11. R

    Find last row with application.match

    Folks: How can I find last row using application.match and an if statement in case it doesn't match? My boss doesn't want me to use UsedRange or xlUP. Here is my code I can't get to work: Sub test2() Dim iRowFinal As Integer 'shtSummary.Activate If Not...
  12. E

    MATCH Problem in VBA

    Application.Match(ItemNumber, Worksheets("main").Range("d11.d200"), 0)) I have a column of data which has mixed "pure" numbers and numbers with alpha characters attached; something like 1,2a,2b,3,4,5,6,7a,7b,etc. My search element (ItemNumber) is always string, despite its name. I get "type...

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