try this formula in cell G19 and fill it down make sure you press ctrl+shift+enter bcoz its array forumla and not just enter
INDEX(A:A,SMALL(IF($C$19:$C$28=F19,ROW($C$19:$C$28),""),ROW(A1)))
Note Press Ctrl+shift+enter
1 change .ProgressBar1.Max = 10000
change its max value with total no of files which you want to import
2 For i = 1 To 10000
change "10000" with total no of files
3 .ProgressBar1.Value = i
Add your code of import before this line
If you want to extract hyperlink address from a cell. Try this udf-
Function hyperlink_extcell(cell As Range)
If cell.Hyperlinks.Count > 0 Then
hyperlink_extcell = cell.Hyperlinks(1).Address
Else
hyperlink_extcell = "Hyperlink Not Found"
End If
End Function
If you to extract/pick a word by its postion from a cell .
For example
1) Input: Procter & Gamble
Output(Pick 3rd word): Gamble
2) Input: Procter,&,Gamble
Output(Pick 1st word): Procter
Try this udf :
Function pick_word(str1 As String, spl As String, positon As Integer)
Dim arr1
arr1 =...
If you want to concatenate the first letter of each word in a cell .For example -
Input Output
Johnson & Johnson J & J
Procter & Gamble P & G
Boston Consulting Group B C G
Try this udf
Function con_1stletter(str1 As String)
Dim arr1, i As...
If you want to find the Latitude and Longitude of any address using MapQuest . Try this UDF-
To know more about MapQuest API visit -
http://open.mapquestapi.com/geocoding/
Function lat_lon_mapquest(a_t As String, c_t As String, s_t As String, co_t As String, z_t As String)
Dim sURL As String...
@NARAYANK991 ,shrivallabha ---- Thanks I missed that part :(
@ianb - Try this updated one
Sub goto_first_cell_in_each_worksheet()
Dim wk As Worksheet
For Each wk In ThisWorkbook.Worksheets
If wk.Visible = xlSheetVisible Then
wk.Select
If ActiveWindow.SplitRow = 0 And ActiveWindow.SplitColumn...
If you want to concatenate non blank cells in a range.
Function concatenate_nonblanks(irng As Range, spl As String)
Dim cell As Range
Dim rsl As String
For Each cell In irng
If cell <> vbNullString Then
rsl = rsl & spl & cell
End If
Next
concatenate_nonblanks = Right(rsl, Len(rsl) -...