indexcol

  1. S

    How to modify VBA code to stop returning duplicate values

    The data is in the form: 1 a 1 b 1 c 2 d 3 e 1 f 2 g 3 h 2 i For grouping all the values against unique entries, a,b,c,f in front of 1, d,g,i, in front of i and so on, i have following VBA code: Function MYVLOOKUP(lookupval, lookuprange As Range, indexcol As Long) Dim r As Range Dim...
  2. R

    Custom vlookup: need line breaks instead of spaces

    Here is the code I am using to do a Custom vlookup. It puts spaces in between the results. I need line breaks instead. Function CusVlookup(lookupval, lookuprange As Range, indexcol As Long) 'updateby Extendoffice 20151118 Dim x As Range Dim result As String result = "" For Each x In lookuprange...
  3. R

    Custom vlookup with line breaks

    I found some code to use vlookup and concatenate data that has multiple matching values. It works great, but I need it to put in a line break after each result instead of a space. Any help is appreciated. Function CusVlookup(lookupval, lookuprange As Range, indexcol As Long) 'updateby...

This Week's Hot Topics

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
Top