Page 1 of 2 12 LastLast
Results 1 to 12 of 18

Thread: Excel Problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Qutab's Avatar
    Qutab is offline Senior Member+
    Last Online
    18th February 2024 @ 01:20 PM
    Join Date
    02 May 2009
    Age
    37
    Posts
    495
    Threads
    142
    Credits
    110
    Thanked
    17

    Default Excel Problem

    Main Excel mein aik amount likhta hon. jesy 10250. ab main chahta hon k excel isy khod ba khod words mein change kar dy.
    jesy ( Ten Thousand Two Hundred Fifty Only)
    Kya aisa koi formula hy. agr hy to plz help me

  2. #2
    Adeel's Avatar
    Adeel is offline Super Moderator
    Last Online
    4th April 2024 @ 04:34 AM
    Join Date
    29 Jul 2009
    Location
    KOTLI A.K
    Gender
    Male
    Posts
    12,534
    Threads
    507
    Credits
    9,725
    Thanked
    1888

  3. #3
    Qutab's Avatar
    Qutab is offline Senior Member+
    Last Online
    18th February 2024 @ 01:20 PM
    Join Date
    02 May 2009
    Age
    37
    Posts
    495
    Threads
    142
    Credits
    110
    Thanked
    17

    Default

    is vedio ka size boht chota hy nazar hi nai ata koch

  4. #4
    alwaysbest's Avatar
    alwaysbest is offline Senior Member+
    Last Online
    21st April 2021 @ 12:08 AM
    Join Date
    11 May 2009
    Age
    39
    Gender
    Male
    Posts
    730
    Threads
    24
    Credits
    110
    Thanked
    13

    Default

    koi formula nahi hay app ko macro likhni ho gi

    SEEK 4 PEACE

  5. #5
    Qutab's Avatar
    Qutab is offline Senior Member+
    Last Online
    18th February 2024 @ 01:20 PM
    Join Date
    02 May 2009
    Age
    37
    Posts
    495
    Threads
    142
    Credits
    110
    Thanked
    17

    Default

    ok mackro mill gai hy likhi likhai

  6. #6
    justali's Avatar
    justali is offline Senior Member+
    Last Online
    21st February 2023 @ 03:10 PM
    Join Date
    11 Dec 2010
    Location
    Karachi
    Age
    37
    Gender
    Male
    Posts
    282
    Threads
    37
    Credits
    1,195
    Thanked
    23

    Default

    Quote Qutab said: View Post
    ok mackro mill gai hy likhi likhai
    Dost yaha share kar do to ap ki mehrbani ho gi

  7. #7
    Qutab's Avatar
    Qutab is offline Senior Member+
    Last Online
    18th February 2024 @ 01:20 PM
    Join Date
    02 May 2009
    Age
    37
    Posts
    495
    Threads
    142
    Credits
    110
    Thanked
    17

    Default

    ye 2 Notpad ki files hain. aik vo hy k jisy aap copy kro gy to Rupees & only bhi likha hoa aay ga. aur dosri notepad ki file hy jis mein na rupees aay ga aur na only.
    jesy
    175
    1) Rupees One Hundred Seventy Five Only
    2) One Hundred Seventy Five.
    Attached Files Attached Files

  8. #8
    Qutab's Avatar
    Qutab is offline Senior Member+
    Last Online
    18th February 2024 @ 01:20 PM
    Join Date
    02 May 2009
    Age
    37
    Posts
    495
    Threads
    142
    Credits
    110
    Thanked
    17

    Default

    agr samjh nai aai to bta dena.

  9. #9
    justali's Avatar
    justali is offline Senior Member+
    Last Online
    21st February 2023 @ 03:10 PM
    Join Date
    11 Dec 2010
    Location
    Karachi
    Age
    37
    Gender
    Male
    Posts
    282
    Threads
    37
    Credits
    1,195
    Thanked
    23

    Default

    Quote Qutab said: View Post
    ye 2 Notpad ki files hain. aik vo hy k jisy aap copy kro gy to Rupees & only bhi likha hoa aay ga. aur dosri notepad ki file hy jis mein na rupees aay ga aur na only.
    jesy
    175
    1) Rupees One Hundred Seventy Five Only
    2) One Hundred Seventy Five.

    is ko excel main use kis tarha karna hai

  10. #10
    justali's Avatar
    justali is offline Senior Member+
    Last Online
    21st February 2023 @ 03:10 PM
    Join Date
    11 Dec 2010
    Location
    Karachi
    Age
    37
    Gender
    Male
    Posts
    282
    Threads
    37
    Credits
    1,195
    Thanked
    23

  11. #11
    syar is offline Advance Member
    Last Online
    2nd May 2024 @ 09:24 AM
    Join Date
    31 Jul 2009
    Location
    Nowshera(KP)
    Age
    47
    Gender
    Male
    Posts
    886
    Threads
    10
    Credits
    563
    Thanked
    340

    Default

    follow
    1. open your workbook
    2. press Alt+F11
    3.New open hone wale window m Insert k menu sa module select karain.
    4. code paste kar k window close kar dain.


    Code:
    Function SpellNumber(ByVal MyNumber, _
    Optional incRupees As Boolean = True)
    '-----------------------------------------------------------¬------
    Dim Crores, Lakhs, Rupees, Paise, Temp
    Dim DecimalPlace As Long, Count As Long
    Dim myLakhs, myCrores
    ReDim Place(9) As String
    Place(2) = " Thousand ": Place(3) = " Million "
    Place(4) = " Billion ": Place(5) = " Trillion "
    ' String representation of amount.
    MyNumber = Trim(Str(MyNumber))
    ' Position of decimal place 0 if none.
    DecimalPlace = InStr(MyNumber, ".")
    ' Convert Paise and set MyNumber to Rupees amount.
    If DecimalPlace > 0 Then
    Paise = GetTens(Left(Mid(MyNumber, DecimalPlace + 1) & "00", 2))
    MyNumber = Trim(Left(MyNumber, DecimalPlace - 1))
    End If
    myCrores = MyNumber \ 10000000
    myLakhs = (MyNumber - myCrores * 10000000) \ 100000
    MyNumber = MyNumber - myCrores * 10000000 - myLakhs * 100000
    Count = 1
    Do While myCrores <> ""
    Temp = GetHundreds(Right(myCrores, 3))
    If Temp <> "" Then Crores = Temp & Place(Count) & Crores
    If Len(myCrores) > 3 Then
    myCrores = Left(myCrores, Len(myCrores) - 3)
    Else
    myCrores = ""
    End If
    Count = Count + 1
    Loop
    Count = 1
    Do While myLakhs <> ""
    Temp = GetHundreds(Right(myLakhs, 3))
    If Temp <> "" Then Lakhs = Temp & Place(Count) & Lakhs
    If Len(myLakhs) > 3 Then
    myLakhs = Left(myLakhs, Len(myLakhs) - 3)
    Else
    myLakhs = ""
    End If
    Count = Count + 1
    Loop
    Count = 1
    Do While MyNumber <> ""
    Temp = GetHundreds(Right(MyNumber, 3))
    If Temp <> "" Then Rupees = Temp & Place(Count) & Rupees
    If Len(MyNumber) > 3 Then
    MyNumber = Left(MyNumber, Len(MyNumber) - 3)
    Else
    MyNumber = ""
    End If
    Count = Count + 1
    Loop
    Select Case Crores
    Case "": Crores = ""
    Case "One": Crores = " One Crore "
    Case Else: Crores = Crores & " Crores "
    End Select
    Select Case Lakhs
    Case "": Lakhs = ""
    Case "One": Lakhs = " One Lakh "
    Case Else: Lakhs = Lakhs & " Lakhs "
    End Select
    Select Case Rupees
    Case "": Rupees = "Zero "
    Case "One": Rupees = "One "
    Case Else: Rupees = Rupees
    End Select
    Select Case Paise
    Case "": Paise = " and Paise Zero Only "
    Case "One": Paise = " and Paise One Only "
    Case Else: Paise = " and Paise " & Paise & " Only "
    End Select
    SpellNumber = IIf(incRupees, "Rupees ", "") & Crores & Lakhs & Rupees & Paise
    End Function
    '-----------------------------------------------------------¬------
    ' Converts a number from 100-999 into text
    Function GetHundreds(ByVal MyNumber)
    '-----------------------------------------------------------¬------
    Dim Result As String
    If Val(MyNumber) = 0 Then Exit Function
    MyNumber = Right("000" & MyNumber, 3)
    ' Convert the hundreds place.
    If Mid(MyNumber, 1, 1) <> "0" Then
    Result = GetDigit(Mid(MyNumber, 1, 1)) & " Hundred "
    End If
    ' Convert the tens and ones place.
    If Mid(MyNumber, 2, 1) <> "0" Then
    Result = Result & GetTens(Mid(MyNumber, 2))
    Else
    Result = Result & GetDigit(Mid(MyNumber, 3))
    End If
    GetHundreds = Result
    End Function
    '-----------------------------------------------------------¬------
    ' Converts a number from 10 to 99 into text.
    Function GetTens(TensText)
    '-----------------------------------------------------------¬------
    Dim Result As String
    Result = "" ' Null out the temporary function value.
    If Val(Left(TensText, 1)) = 1 Then ' If value between 10-19...
    Select Case Val(TensText)
    Case 10: Result = "Ten"
    Case 11: Result = "Eleven"
    Case 12: Result = "Twelve"
    Case 13: Result = "Thirteen"
    Case 14: Result = "Fourteen"
    Case 15: Result = "Fifteen"
    Case 16: Result = "Sixteen"
    Case 17: Result = "Seventeen"
    Case 18: Result = "Eighteen"
    Case 19: Result = "Nineteen"
    Case Else
    End Select
    Else ' If value between 20-99...
    Select Case Val(Left(TensText, 1))
    Case 2: Result = "Twenty "
    Case 3: Result = "Thirty "
    Case 4: Result = "Forty "
    Case 5: Result = "Fifty "
    Case 6: Result = "Sixty "
    Case 7: Result = "Seventy "
    Case 8: Result = "Eighty "
    Case 9: Result = "Ninety "
    Case Else
    End Select
    Result = Result & GetDigit _
    (Right(TensText, 1)) ' Retrieve ones place.
    End If
    GetTens = Result
    End Function
    '-----------------------------------------------------------¬------
    ' Converts a number from 1 to 9 into text.
    Function GetDigit(Digit)
    '-----------------------------------------------------------¬------
    Select Case Val(Digit)
    Case 1: GetDigit = "One"
    Case 2: GetDigit = "Two"
    Case 3: GetDigit = "Three"
    Case 4: GetDigit = "Four"
    Case 5: GetDigit = "Five"
    Case 6: GetDigit = "Six"
    Case 7: GetDigit = "Seven"
    Case 8: GetDigit = "Eight"
    Case 9: GetDigit = "Nine"
    Case Else: GetDigit = ""
    End Select
    End Function
    code use karne k leye.

    1. suppose a1 m aap ki fugure ha
    2. B2 ya jahan aap chahte hain wahan par
    =spellnumber(a1) ya jis cell m aap ki fugures ha ka reference d kar enter kar dain.

    also check the below thread

    http://www.itdunya.com/t300921/

  12. #12
    Nabeel Jutt is offline Senior Member+
    Last Online
    29th July 2013 @ 01:24 PM
    Join Date
    21 Apr 2012
    Location
    Barcelona
    Age
    30
    Gender
    Male
    Posts
    396
    Threads
    3
    Credits
    925
    Thanked
    10

    Default

    brother mujay b pata nahi hay formula ka lakin jo bahi nay bataya hay esay check karu ga thanks

Page 1 of 2 12 LastLast

Similar Threads

  1. Excel Problem
    By Qutab in forum Ask an Expert
    Replies: 3
    Last Post: 22nd October 2011, 10:16 PM
  2. Microsoft Excel 2007 Problem
    By Sarfraz Hussain in forum Ask an Expert
    Replies: 6
    Last Post: 21st October 2011, 12:30 PM
  3. excel formate & file opening problem
    By Fareed Ahmed in forum Ask an Expert
    Replies: 3
    Last Post: 19th December 2009, 09:14 AM
  4. Row and Columns (Excel Problem)
    By Adeawan in forum Ask an Expert
    Replies: 12
    Last Post: 12th March 2009, 01:09 PM
  5. Excel Problem....
    By Adeawan in forum Ask an Expert
    Replies: 3
    Last Post: 6th March 2009, 06:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •