Separate Text & Numbers

Hi

 

Using UDF (user defined function) to separate Text & Number from excel cell.

 

Syntex is :

=GetNum(A1) for separating Number

&

=GetTxt(A1) for separating Text.

 

Here A1 refers to cell which is holding data. Please refer attached file.

 

Thanks//VaibhavJ


Attached File : 112266 1243882 separate text.xls downloaded: 359 times
Replies (25)

Thank you for your UDF.

Pl provide this as add-in it will useful to install for permanent.

Hi

 

You can save file as .xla & its done.

 

Also file is attached herewith.

 

Thanks//VaibhavJ

Thank you Vaibhav ji,

 

Vaibhav ji,

pl see below post, any solution is there ?


/forum/how-to-print-each-character-in-separate-cell-199007.asp#.UnD6WnBgf74

dear Vaibhav Ji,

please find below UDF formula for finding a missing numbers in a sequnce in column;

syntax:misslist(a1:a50), it is showing in each column , but I want all missing numbers in one column only with "," separated.

please develop sir.

Function MissList(Rng As Range)
   '  list of Missing Numbers
   Dim Arr()
   Dim i As Long
   Dim n As Long
   With WorksheetFunction
      For i = .Min(Rng) To .Max(Rng)
         If .CountIf(Rng, i) = 0 Then
             n = n + 1
             ReDim Preserve Arr(1 To n)
             Arr(n) = i
         End If
      Next
      MissList = .Transpose(Arr)
   End With
End Function
'---------------

pl attach sample file..

Dear Sir,

please find the sample file.

Thanks in advance

try this

 

Function MissList(Rng As Range) As String
   Dim X As Long, MaxNum As Long
   MaxNum = WorksheetFunction.Max(Rng)
   ReDim Nums(1 To MaxNum)
   For X = 1 To MaxNum
     If Rng.Find(X, LookAt:=xlWhole) Is Nothing Then
       MissList = MissList & ", " & X
     End If
   Next
   MissList = Mid(MissList, 3)
 End Function

 

Thx

Pl find attachment

Also find addins!

Dear Sir,

Thanks for your speed responce..

but, the said function not meeting my requirement, pl see enclsoed file,

and advise why it is coming like that.

Ok, Solveed it!

Dear Vaibhav,

Sorry to say that,

I checked the excel sheet, 1536 is in 14th row, but it is showing as missing no, i deleted some other nos, but there is no change in the answer.

pl check and solve the problem sir.

Hmnn..some minor error!

 

Try this, i checked & working at my end.

Leave a Reply

Your are not logged in . Please login to post replies

Click here to Login / Register  

Company
ARTICLESHIP 29 October 2026
Article Assistant (CA Inter / CMA Inter) - Thrissur

Varma Raja & Associates

Thrissur

CA Inter

View Details
Company
13 November 2026
Accountant

New Mobile India

Muzaffarpur

B.Com

View Details
Company
12 November 2026
Tax Product Specialist

BharatX.ai

Gurgaon

B.Com

View Details
Company
21 October 2026
CA INTER/ BCOM WITH EXPERIENCE

CA S KUMAR GUPTA & CO

Amritsar

CA Inter

View Details
Company
ARTICLESHIP 23 October 2026
Articled Trainee

J Y & CO

Hyderabad

CA Inter

View Details
Company
Featured ARTICLESHIP 28 October 2026
CA- Inter and Articles

N N V Satish & Co.,

Hyderabad

CA Inter

View Details
Company
Featured 29 October 2026
Accounts Executive

Synergy Keystone

Chennai

B.Com

View Details
Company
ARTICLESHIP 28 October 2026
Article assistants

Shyam S Gupta and Company

New Delhi

CA Inter

View Details