Hi
Not able to resolve the following using Index and Match. My column displays blank
Full code is at following : https://www.extendoffice.com/documents/excel/3354-excel-search-multiple-sheets-workbooks.html
First finding a value which is in coulmn 3 of mutiplie sheets i am able to get the value of Xfound.value with the above link
Simultaneoulsy Now want to find the corresponding value of xFound.value in column 6 in the same row but displays blank or shows nothing in .cells(xrow.5) column
rather added the following(in Bold) for index match in the above code reference link
Thanks
Nimish
Not able to resolve the following using Index and Match. My column displays blank
Full code is at following : https://www.extendoffice.com/documents/excel/3354-excel-search-multiple-sheets-workbooks.html
First finding a value which is in coulmn 3 of mutiplie sheets i am able to get the value of Xfound.value with the above link
Simultaneoulsy Now want to find the corresponding value of xFound.value in column 6 in the same row but displays blank or shows nothing in .cells(xrow.5) column
rather added the following(in Bold) for index match in the above code reference link
Code:
Sub SearchFolders()
'UpdatebyKutoolsforExcel20151202
Dim _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Dim Lookup_Range As Range
Dim fRange As Range
Dim fCellValue As Variant
Set Lookup_Range = xWk.Range("A1:A" & lstRow)
Set fRange = xWk.Range("F1:F" & lstRow)
If Not xFound Is Nothing Then
xStrAddress = xFound.Address
End If
Do
If xFound Is Nothing Then
Exit Do
Else
xCount = xCount + 1
xRow = xRow + 1
.Cells(xRow, 1) = xWb.Name
.Cells(xRow, 2) = xWk.Name
.Cells(xRow, 3) = xFound.Address
.Cells(xRow, 4) = xFound.Value
[B] With Application[/B]
[B] fCellValue = .Match([xfound.value], xWk.Range("C1:C" & lstRow), 0)[/B]
[B]''''''instead of Xfound.value also i tried individually .Match("B445A12") --------- stil column 5 dispalys blank[/B]
[B] .Cells(xRow, 5) = .Index(fRange, .Match([xfound.value], Lookup_Range, 0))[/B]
[B]'''''WHy my .cells(xRow,5) column showing blank[/B]
[B] End with[/B]
End if
Thanks
Nimish
Last edited: