Tag: tips

  • How to use Spell number Function in excel

    How to use Spell number Function in excel


    The “spell number” function is a tool used by accountants and finance professionals to convert numerical values into their written word form. This function is typically used to generate the written representation of a specific amount or value, such as converting “1234.56” to “one thousand two hundred thirty-four and 56/100 dollars.”

    The spell number function can be beneficial in various accounting and financial scenarios, including:

    1. Writing checks: When preparing checks, it is customary to write out the amount in words to minimize the risk of alteration or fraud. The spell number function allows accountants to automatically generate the written form of the check amount.
    2. Financial reports: In financial reports, especially those prepared for presentation or legal purposes, it can be useful to provide both the numerical value and the written form of amounts. The spell number function assists in generating the written representation of numbers, enhancing the clarity and comprehensibility of financial statements.
    3. Invoicing and billing: Some organizations or industries may require invoices or billing statements to include the written form of the invoiced amounts. The spell number function helps automate this process, ensuring accuracy and consistency in the presentation of financial information.
    4. Compliance and regulatory requirements: Certain regulations or jurisdictions might mandate the inclusion of written amounts in specific financial documents. The spell number function can facilitate compliance with these requirements, reducing the risk of non-compliance or errors.
    5. Presentations and proposals: When delivering financial presentations or proposals, using the written form of amounts can enhance professionalism and improve the audience’s understanding. The spell number function allows accountants to quickly convert numerical data into a more easily digestible format.

    It’s worth noting that the specific implementation and availability of a spell number function may vary depending on the accounting software, spreadsheet application, or programming language being used.

    To update the code in your Excel workbook, follow these steps:

    Open your Excel workbook.

    Press Alt + F11 to open the VBA Editor.

    In the VBA Editor, find the module where the code is currently
    located. It may have the same name as the worksheet containing the
    cell you want to use the spell-in-numbers function.

    Double-click on the module to open it.

    Replace the existing code with the updated code you received earlier.

    Save the workbook by pressing Ctrl + S or by clicking on the save button.

    Close the VBA Editor by clicking the close button (X) or by pressing Alt + Q.

    Now you can use the SpellNumber function in your Excel worksheet.

    In a cell where you want to display the spell-in-numbers conversion,
    enter the following formula: =SpellNumber(A1) (assuming the number you
    want to convert is in cell A1).

    Press Enter to see the converted number in words.

    Make sure to replace A1 with the cell reference that contains the
    number you want to convert.

    That’s it! The code is now updated in your Excel workbook, and you can
    use the SpellNumber function to convert numbers to words.

    Below codes (USD & Dirham) for your use(enjoy the benefits)

    USD Codes:

    Option Explicit
    
    'Main Function
    Function SpellNumber(ByVal MyNumber)
        Dim Dollars, Cents, Temp
        Dim DecimalPlace, Count
        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 cents and set MyNumber to dollar amount.
        If DecimalPlace > 0 Then
            Cents = GetTens(Left(Mid(MyNumber, DecimalPlace + 1) & "00", 2))
            MyNumber = Trim(Left(MyNumber, DecimalPlace - 1))
        End If
    
        Count = 1
    
        Do While MyNumber <> ""
            Temp = GetHundreds(Right(MyNumber, 3))
            If Temp <> "" Then Dollars = Temp & Place(Count) & Dollars
            If Len(MyNumber) > 3 Then
                MyNumber = Left(MyNumber, Len(MyNumber) - 3)
            Else
                MyNumber = ""
            End If
            Count = Count + 1
        Loop
    
        Select Case Dollars
            Case ""
                Dollars = "No Dollars"
            Case "One"
                Dollars = "One Dollar"
            Case Else
                Dollars = Dollars & " Dollars"
        End Select
    
        Select Case Cents
            Case ""
                Cents = " and No Cents"
            Case "One"
                Cents = " and One Cent"
            Case Else
                Cents = " and " & Cents & " Cents"
        End Select
    
        SpellNumber = Dollars & Cents
    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

    Dirham Code:

    Option Explicit
    
    'Main Function
    Function SpellNumber(ByVal MyNumber)
        Dim Dirhams, Fils, Temp
        Dim DecimalPlace, Count
        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 fils and set MyNumber to dirham amount.
        If DecimalPlace > 0 Then
            Fils = GetTens(Left(Mid(MyNumber, DecimalPlace + 1) & "00", 2))
            MyNumber = Trim(Left(MyNumber, DecimalPlace - 1))
        End If
    
        Count = 1
    
        Do While MyNumber <> ""
            Temp = GetHundreds(Right(MyNumber, 3))
            If Temp <> "" Then Dirhams = Temp & Place(Count) & Dirhams
            If Len(MyNumber) > 3 Then
                MyNumber = Left(MyNumber, Len(MyNumber) - 3)
            Else
                MyNumber = ""
            End If
            Count = Count + 1
        Loop
    
        Select Case Dirhams
            Case ""
                Dirhams = "No Dirhams"
            Case "One"
                Dirhams = "One Dirham"
            Case Else
                Dirhams = Dirhams & " Dirhams"
        End Select
    
        Select Case Fils
            Case ""
                Fils = " and No Fils"
            Case "One"
                Fils = " and One Fil"
            Case Else
                Fils = " and " & Fils & " Fils"
        End Select
    
        SpellNumber = Dirhams & Fils
    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
    

    Hope this will help you.

    Thanks
    Rohitashva Singhvi

    20 best websites for rich source of information and learning (generalfactsworld.blogspot.com)

    RSS Error: https://wealthcreatorhub.in/feed/ is invalid XML, likely due to invalid characters. XML error: Reserved XML Name at line 2, column 39
    Our Websites by Rohitashva Singhvi Microsoft365 for Business
  • How your Automobile or Vehicle Insurance Works?

    How your Automobile or Vehicle Insurance Works?

    Cars or any other Vehicle, but especially cars, are very expensive these days. For many people, buying a car takes years of hard work and a lot of savings. Therefore, it becomes crucial to ensure the safety of the vehicle through insurance Auto insurance is the best way to protect your car and the large sums of money invested in it Car insurance is basically an agreement between the insurance company and the car owner.

    The latter is required to pay premiums for a certain fixed period, while the former undertakes to pay for any damage or loss to the vehicle In many countries, a car insurance policy is mandatory. Because this policy not only provides financial assistance to car owners but also greatly helps in the process of tracking vehicles such as theft.
    Once you’ve decided which vehicle to buy, the most important thing you need to do is figure out how much liability coverage you need. For help and more information in this regard, you can consult your local car service. After determining the amount of liability, consider the type of coverage you want There are different types of car insurance policies available, and their coverage varies. For example, comprehensive auto insurance covers all accidents and vehicle theft. While fire and theft liability insurance only covers accidents where the insured’s vehicle collides with someone else’s vehicle. If another vehicle hits the insured, the company will not pay. It is up to you to decide which policy you accept. The cost of a policy varies mainly depending on the coverage

    Therefore, the more the policy covers, the higher its cost
    Third, research the insurance company with which you want to purchase the policy you want. You can do this by checking the websites of various insurance agencies, getting completely free online quotes, conducting surveys in your social circles, and more. However, you should be aware that companies use statistical history to determine current exchange rates.
    These rates depend on the funds needed to cover all claims and business expenses of the company. Auto insurance rates also depend on the insurance company you choose This is because each company offers a different claims experience and the number of people they insure varies. Also, the cost of doing business, the amount that must be paid to sell and service the policy, and the financial goals that must be achieved, vary from company to company.
    The company will therefore charge accordingly In addition to this, there are several other factors that directly affect your car insurance rates These include your vehicle’s age, make and model, service usage, driving history, how you maintain your car, and your credit rating.

  • Advice on workers’ compensation claims

    Advice on workers’ compensation claims

    work accident

    If you are involved in an accident at work, you must prove that your injury was caused by the negligence of the employer Your employer is also responsible for the actions of coworkers that cause the injury Remember that it is your responsibility to keep your employer informed of any accident that occurs while you are at work This information must be correctly recorded in the accident log. Note that your employer cannot terminate your employment if you file a compensation claim. If you have any questions or concerns about this, we recommend that you consult with us immediately
    If you are an employer, self-employed person, or manager of a workplace, under the RIDDOR you must report certain types of work-related and work-related accidents, illnesses and hazardous occurrences
    Reporting of accidents at work and occupational health problems is a legal requirement under the Reporting of Injuries, Illnesses and Hazardous Occurrences Regulations 1995 The information gathered helps local authorities and the Health and Safety Executive (HSE) to determine where and how the risks lie and to prevent their recurrence and further suffering and suffering for employees
    You must declare all of the following:

    die

    Seriously injured

    Injured for more than three days (i.e. when the employee or self-employed person has an accident at work and cannot work for more than three days, but is not seriously injured);

    work-related illnesses

    dangerous event

    The citizens were transported directly to the hospital

    How soon should I report this incident? All reporting deadlines for work related injuries vary depending on severity and the following guidelines should be followed
    If an accident results in death or serious injury to a person, we must be notified immediately.

    Injuries older than 3 days must be reported within 10 days
    As soon as possible after a doctor diagnoses a work-related illness.
    Hazardous occurrences must be reported immediately.

    Have you ever had an accident at work? If so, you will likely be able to file a claim with your employer’s insurance company An occupational injury can be defined as any workplace accident that could have been avoided If the accident at work is not your fault, you are entitled to reasonable financial compensation
    Our lawyers are qualified members of the Law Society’s panel of personal injury specialists.
    We provide free advice on workers’ compensation claims, including:

    Exposure to preventable health risks leading to workplace accidents

    Lack of safety equipment leads to workplace accidents

    Exposure to unnecessary hazards or health risks resulting in workplace accidents

    A mechanical breakdown causes an accident at work

    Poor maintenance of machines leads to work accidents

    Unsafe working conditions that lead to workplace accidents

10 morning habits Embark on Your Writing Journey: A Beginner’s Guide Positive life with positive people mustreadbooks Business Startup