You are on page 1of 2

Insert Row after email: -

Sub InsertRows()
Dim r As Long
Dim m As Long
Application.ScreenUpdating = False
m = Range("A" & Rows.Count).End(xlUp).Row
For r = m To 1 Step -1
If InStr(1, Range("A" & r).Value, "@", vbTextCompare) Then
Range("A" & (r + 1)).EntireRow.Insert
End If
Next r
End Sub

__________________________________

For Bulk Tranpose

=OFFSET($A$1,(ROW()-1)*7+INT((COLUMN()-3)),MOD(COLUMN()-3,1))

__________________________________

Alternate Rows to Colums

=INDEX(A:A,1+(2*ROW()-2))
=INDEX(A:A,1+(2*ROW()-1))

__________________________________

Extract Email from Hyperlink

Sub ExtractHL()
Dim HL As Hyperlink
For Each HL In ActiveSheet.Hyperlinks
HL.Range.Offset(0, 1).Value = HL.Address
Next
End Sub

___________________________________

Remove Wrap Text

Alt + 010

___________________________________

Extract from Hyperlink

Sub ExtractHL()
Dim HL As Hyperlink
For Each HL In ActiveSheet.Hyperlinks
HL.Range.Offset(0, 1).Value = HL.Address
Next
End Sub

___________________________________

Seperate Text and Number


=LEFT(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))-1)
=RIGHT(A1,LEN(A1)-MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))+1)

-------------------------------------------------------------------------
mirror image changes formula

Sub ReverseText()
'Updateby20131128
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
For Each Rng In WorkRng
xValue = Rng.Value
xLen = VBA.Len(xValue)
xOut = ""
For i = 1 To xLen
getChar = VBA.Right(xValue, 1)
xValue = VBA.Left(xValue, xLen - i)
xOut = xOut & getChar
Next
Rng.Value = xOut
Next
End Sub
------------------------------------------------------------------------

Finf Large Dups Company

=COUNTIF($A$2:$A2,$A2)
=COUNTIF($A$2:$A$Last Row, $A2)
_________________________________________________________________________
H&*<#$$@)T~)$*&/G*^

=IF(EXACT(A2,UPPER(A2)),"Upper Case",IF(EXACT(A2,LOWER(A2)),"Lower Case","Upper and


Lower Case"))

_________________________________________________________________________

How to remove the last four digits in Excel

=LEFT(A1, LEN(A1)-1)
_________________________________________________________________________

You might also like