Created
August 24, 2017 18:05
-
-
Save cpereira7/9e495aa7b1f3420066986fcc083ae28b to your computer and use it in GitHub Desktop.
PROCV - Valores multiplos.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function MYVLOOKUP(lookupval, lookuprange As Range, indexcol As Long) | |
| Dim r As Range | |
| Dim result As String | |
| result = "" | |
| For Each r In lookuprange | |
| If r = lookupval Then | |
| result = result & " - " & r.Offset(0, indexcol - 1) | |
| End If | |
| Next r | |
| MYVLOOKUP = result | |
| End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment