Separate Text & Numbers

2000 views 25 replies

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: 330 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
22 June 2026
Accountant

Global Image Technologies Private Limited

New Delhi

MBA

View Details
Company
29 June 2026
ACCOUNTANT

SANDEEP AASHISH & CO

Araria

B.Com

View Details
Company
ARTICLESHIP 27 June 2026
Article

SNCO

Mumbai

CA Inter

View Details
Company
04 June 2026
Semi Qualified CA

Goyal Puneet & Associates

New Delhi

CA Final

View Details
Company
ARTICLESHIP 27 June 2026
CA Articled Trainee And Paid Assistant

SKAA & Associates

New Delhi

CA Inter

View Details
Company
20 June 2026
Assistant Accounts Manager

Fintax Professionals

Gurgaon

CA Inter

View Details
Company
ARTICLESHIP 30 June 2026
Article Assistant or Paid Assistant

VIKAS VERMA & CO

New Delhi

Others

View Details
Company
Featured 15 June 2026
Senior Auditor

N. Dhawan & Co

New Delhi

CA Inter

View Details