Showing posts with label Excel. Show all posts
Saturday, November 12, 2016
How to convert currency into words
on
Saturday, November 12, 2016
There is no built-in formula in excel, you have to add a vb script and permanently save it with your MS. Excel's installation as Add-In.
Below, you will find the code to enter in your Excel sheet:
1. Press Alt+F11 > copy and pate in module (if module does not show insert module, click insert on menu bar > Module)
2. Alt+Q Save code and return to Excel sheet
3. Insert > function > user defined > A1 or relevant cell
Function English(ByVal N As Currency) As String
Const Thousand = 1000@
Const Million = Thousand * Thousand
Const Billion = Thousand * Million
Const Trillion = Thousand * Billion
If (N = 0@) Then English = "zero": Exit Function
Dim Buf As String: If (N < 0@) Then Buf = "negative " Else Buf = ""
Dim Frac As Currency: Frac = Abs(N - Fix(N))
If (N < 0@ Or Frac <> 0@) Then N = Abs(Fix(N))
Dim AtLeastOne As Integer: AtLeastOne = N >= 1
If (N >= Trillion) Then
Debug.Print N
Buf = Buf & EnglishDigitGroup(Int(N / Trillion)) & " trillion"
N = N - Int(N / Trillion) * Trillion
If (N >= 1@) Then Buf = Buf & " "
End If
If (N >= Billion) Then
Debug.Print N
Buf = Buf & EnglishDigitGroup(Int(N / Billion)) & " billion"
N = N - Int(N / Billion) * Billion
If (N >= 1@) Then Buf = Buf & " "
End If
If (N >= Million) Then
Debug.Print N
Buf = Buf & EnglishDigitGroup(N \ Million) & " million"
N = N Mod Million
If (N >= 1@) Then Buf = Buf & " "
End If
If (N >= Thousand) Then
Debug.Print N
Buf = Buf & EnglishDigitGroup(N \ Thousand) & " thousand"
N = N Mod Thousand
If (N >= 1@) Then Buf = Buf & " "
End If
If (N >= 1@) Then
Debug.Print N
Buf = Buf & EnglishDigitGroup(N)
End If
If (Frac = 0@) Then
Buf = Buf & " exactly"
ElseIf (Int(Frac * 100@) = Frac * 100@) Then
If AtLeastOne Then Buf = Buf & " and "
Buf = Buf & Format$(Frac * 100@, "00") & "/100"
Else
If AtLeastOne Then Buf = Buf & " and "
Buf = Buf & Format$(Frac * 10000@, "0000") & "/10000"
End If
English = Buf
End Function
Private Function EnglishDigitGroup(ByVal N As Integer) As String
Const Hundred = " hundred"
Const One = "one"
Const Two = "two"
Const Three = "three"
Const Four = "four"
Const Five = "five"
Const Six = "six"
Const Seven = "seven"
Const Eight = "eight"
Const Nine = "nine"
Dim Buf As String: Buf = ""
Dim Flag As Integer: Flag = False
Select Case (N \ 100)
Case 0: Buf = "": Flag = False
Case 1: Buf = One & Hundred: Flag = True
Case 2: Buf = Two & Hundred: Flag = True
Case 3: Buf = Three & Hundred: Flag = True
Case 4: Buf = Four & Hundred: Flag = True
Case 5: Buf = Five & Hundred: Flag = True
Case 6: Buf = Six & Hundred: Flag = True
Case 7: Buf = Seven & Hundred: Flag = True
Case 8: Buf = Eight & Hundred: Flag = True
Case 9: Buf = Nine & Hundred: Flag = True
End Select
If (Flag <> False) Then N = N Mod 100
If (N > 0) Then
If (Flag <> False) Then Buf = Buf & " "
Else
EnglishDigitGroup = Buf
Exit Function
End If
Select Case (N \ 10)
Case 0, 1: Flag = False
Case 2: Buf = Buf & "twenty": Flag = True
Case 3: Buf = Buf & "thirty": Flag = True
Case 4: Buf = Buf & "forty": Flag = True
Case 5: Buf = Buf & "fifty": Flag = True
Case 6: Buf = Buf & "sixty": Flag = True
Case 7: Buf = Buf & "seventy": Flag = True
Case 8: Buf = Buf & "eighty": Flag = True
Case 9: Buf = Buf & "ninety": Flag = True
End Select
If (Flag <> False) Then N = N Mod 10
If (N > 0) Then
If (Flag <> False) Then Buf = Buf & "-"
Else
EnglishDigitGroup = Buf
Exit Function
End If
Select Case (N)
Case 0:
Case 1: Buf = Buf & One
Case 2: Buf = Buf & Two
Case 3: Buf = Buf & Three
Case 4: Buf = Buf & Four
Case 5: Buf = Buf & Five
Case 6: Buf = Buf & Six
Case 7: Buf = Buf & Seven
Case 8: Buf = Buf & Eight
Case 9: Buf = Buf & Nine
Case 10: Buf = Buf & "ten"
Case 11: Buf = Buf & "eleven"
Case 12: Buf = Buf & "twelve"
Case 13: Buf = Buf & "thirteen"
Case 14: Buf = Buf & "fourteen"
Case 15: Buf = Buf & "fifteen"
Case 16: Buf = Buf & "sixteen"
Case 17: Buf = Buf & "seventeen"
Case 18: Buf = Buf & "eighteen"
Case 19: Buf = Buf & "nineteen"
End Select
EnglishDigitGroup = Buf
End Function .
Now, when you want to convert currency into words, you will reference the English function in your Excel spreadsheet as follows:
=English (100)
Result: "one hundred exactly"
=English (125)
Result: "one hundred twenty-five exactly"
=English (125.3)
Result: "one hundred twenty-five and 30/100"
![]() |
| sample |
Wednesday, November 09, 2016
Advanced Filters
on
Wednesday, November 09, 2016
Create Drop Down List in Excel
on
Wednesday, November 09, 2016
You can use Data Validation to create a dropdown list of options in a cell. However, the list font can't be changed, nor can the number of visible rows, which has a maximum of eight. Also, Data Validation doesn't have an AutoComplete feature, which finds matching items in the list as you start to type.
ComboBox Excel ActiveX Control. You can link the Combo Box to a Worksheet cell. Make Excel entry easier with autocomplete and bigger fonts.
Microsoft Excel Pivot Table
on
Wednesday, November 09, 2016
Thursday, October 27, 2016
Excel Table Explained
on
Thursday, October 27, 2016
Learn about using data Tables in Microsoft Excel
you can create a data table to quickly try out different values for formulas. Excel is great for storing lists of data and you may need to manage that data by sorting it into order. How to create a data table and drop-down menus and Filtering Data Tables
Sunday, October 23, 2016
Excel If Formula
on
Sunday, October 23, 2016
Excel Formula Errors
on
Sunday, October 23, 2016
Understanding This chapter teaches you how to deal with some common formula errors in Excel
#DIV/0!: Excel displays the #DIV/0! error when a formula tries to divide a number by 0 or an empty cell.
#NAME?: Names are wrongly/incorrectly spelled in a formula or cell.
#NUM!: Occurs when Excel encounters an invalid number.
#NULL!: Basically this occurs due to missing arguments in the formulas or named ranges.
#N/A: Indicates that a value is not available to a formula.
#VALUE!: Excel displays the #VALUE! error when a formula has the wrong type of argument.
######: When your cell contains this error code, the column isn't wide enough to display the value.
#REF!: Excel displays the #REF! error when a formula refers to a cell that is not valid.
Friday, October 14, 2016
Excel Flash Fill
on
Friday, October 14, 2016
Excel’s Flash Fill is a time-saving feature which fills in data for you when a pattern is evident
Start Flash Fill manually. If Flash Fill is turned on but doesn't start automatically when you type data that matches a pattern, you can try starting it manually by clicking Data > Flash Fill, or by pressing Ctrl+E. Check out this training course if you'd like to know more about using Flash Fill.
Thursday, October 13, 2016
Excel Text Function
on
Thursday, October 13, 2016
During this Excel 2016 tutorial, learn how to use text function and with other functions in Excel 2016.
PROPER, UPPER, & LOWER
Use Excel's PROPER, UPPER, or LOWER functions to correct or convert text data to capital and small letters as needed
CONCATENATE
CONCATENATE function allows you to combine text from different cells into one cell.
TRIM
TRIM strips extra spaces from text, leaving only single spaces between words and no space characters at the start or end of the text.
Len
The Microsoft Excel LEN function returns the length of the specified string.
Left
The text from which to extract characters. Use the LEFT function when you want to extract characters starting at the left side of text.
Right
The text from which to extract characters on the right. Use the RIGHT function when you want to extract characters starting at the right side of text.
FIND / SEARCH
FIND function is case sensitive while the SEARCH function is case-insensitive
Sunday, October 09, 2016
Excel Choose Function
on
Sunday, October 09, 2016
The CHOOSE function in Excel allows you to 'Choose' a "value' depending on a specific input.
1.Randomly CHOOSE names (where value is "text" (in quotes))
2.The CHOOSE function can help show which fiscal quarter a month is in, or show the total sales for a selected store number
Try a formula construction like (with lookup value in cell B1):
=CHOOSE(B1,A1,A2,A3,A4,A5,A6,A7)
Watch this video to see how to use the Excel CHOOSE function, and select items in a list.
1.Randomly CHOOSE names (where value is "text" (in quotes))
2.The CHOOSE function can help show which fiscal quarter a month is in, or show the total sales for a selected store number
Try a formula construction like (with lookup value in cell B1):
=CHOOSE(B1,A1,A2,A3,A4,A5,A6,A7)
Watch this video to see how to use the Excel CHOOSE function, and select items in a list.
Excel Count Countif Countifs Counta and Countblank Function
on
Sunday, October 09, 2016
COUNT
Use the COUNT function to get the number of entries in a number field that is in a range or array of numbers. For example, you can enter the following formula to count the numbers in the range
COUNTA
Use the COUNTA function to count cells that contain numbers, text, logical values, error values, and empty text "". COUNTA does not count empty cells. COUNTA will also count items.
COUNTBLANK
Use the COUNTBLANK function to count blank cells in a range.
COUNTIF
Excel COUNTIF function counts the number of cells in a range, that meets a given criteria. If you need to count Number of Filled Cell in a range, you can use,
COUNTIFS
Count cells that match multiple criteria
If we want to know how many boys test scores were greater than 50%, we could use the following
Use the COUNT function to get the number of entries in a number field that is in a range or array of numbers. For example, you can enter the following formula to count the numbers in the range
COUNTA
Use the COUNTA function to count cells that contain numbers, text, logical values, error values, and empty text "". COUNTA does not count empty cells. COUNTA will also count items.
COUNTBLANK
Use the COUNTBLANK function to count blank cells in a range.
COUNTIF
Excel COUNTIF function counts the number of cells in a range, that meets a given criteria. If you need to count Number of Filled Cell in a range, you can use,
COUNTIFS
Count cells that match multiple criteria
If we want to know how many boys test scores were greater than 50%, we could use the following
Tuesday, October 04, 2016
MS Office Training Courses
on
Tuesday, October 04, 2016
Here are many computer
training institutes scattered all over the world offering Microsoft Office
Training – both online and offline. This article covers links to some of the
best free online Microsoft Office training courses and materials,
and can be considered a resource, to aid the learning of MS Office, at your
pace, from anywhere in the world.
Streamline
projects and improve productivity with Microsoft Office training courses
Learn
to effectively manage projects, analyze data or build PivotTables with Learning
Tree's Microsoft Office training curriculum. With courses for beginners to
power users, you can gain the skills you need in the features and functions of
the Microsoft Office suite, including Excel, Access, Project and Office 2016.
YouTube Channel
on
Tuesday, October 04, 2016
Welcome to the YouTube home of the "Learn MS Office" varieties of Tips, Tricks and More Tutorials that center on the effective and efficient use of Microsoft Office.
Hopefully these videos will help you to become better with MSOfficeFun so you can save time at work,
If you like what you see be sure to Subscribe and SHARE this with others!
Introduction to Microsoft Excel
on
Tuesday, October 04, 2016
The spreadsheet model
- Worksheets and their contents
- Differentiating workbooks and worksheets
- The Ribbon
- Customizing the interface
- Managing large spreadsheets by zooming
- Identifying worksheet tabs by color
- Changing worksheet views
- Modifying cell contents and formats
- Inserting data with AutoFill
- Knowing when to use Paste Special
Basic data editing
- Modifying cell contents and formats
- Inserting data with AutoFill
- Knowing when to use Paste Special
Excel SUM, SUMIF, SUMIFS functions in urdu
on
Tuesday, October 04, 2016
SUM
The AutoSum dropdown. Here the range of cells is selected manually before selecting the option.SUMIF
The Excel SUMIF function returns summation of selected range of cells if it satisfies the given criteria. You can optionally select from which range you want to sum the value. Go through the below example to clearly understand it.SUMIFS
The Excel SUMIFS function is used when we want to apply more than one range which satisfies set of criteria and returns the corresponding values.How to Convert Text To Date in Excel
on
Tuesday, October 04, 2016
when exporting data from database into Excel sheet, dates export as a text entries When this occurs, it might be necessary to convert the text dates to Excel dates so that you can perform calculations & sorting in Excel.
In this tip, you will learn how to quickly convert "text dates" to "Microsoft Excel dates" using a long-standing feature in Excel.
Hopefully these videos will help you to become better with MS Office so you can save time at work,
In this tip, you will learn how to quickly convert "text dates" to "Microsoft Excel dates" using a long-standing feature in Excel.
Hopefully these videos will help you to become better with MS Office so you can save time at work,
How to Use VLOOKUP and HLOOKUP
on
Tuesday, October 04, 2016
Vlookup Formula in Excel by Tips&Trick
on
Tuesday, October 04, 2016
Automatically Insert Serial Number
on
Tuesday, October 04, 2016
Microsoft Office Training
on
Tuesday, October 04, 2016
The best free online Microsoft Office training courses
and materials, and can be considered a resource, to aid the learning of MS
Office, at your pace, from anywhere in the world.
You can gain the skills you need in the features and
functions of the Microsoft Office suite, including Excel, Word, Power Point and
Outlook Office 2016.
Microsoft
Office Training Courses
|
|
Microsoft Excel Courses
|
Excel
As well as being the world’s premier spreadsheet
software, Excel offers powerful tools for application development, data
analysis, business reporting and self-service business intelligence.Microsoft Word Courses
|
Word
Microsoft Word is a word processing program, with
powerful automation and collaboration features, which allows users to create
both basic and complex documents containing a wide variety of content.
Microsoft Power Point Courses
|
Power Point
Microsoft PowerPoint is the industry-standard tool for
creating business presentations for delivery on PC; or, less frequently, 35mm
slides or transparencies.
Microsoft Outlook Courses
|
Outlook
Microsoft Outlook is an electronic mail program
combined with a scheduler. It is used in combination with a mail server (such
as Microsoft Exchange Server) to create a very powerful information sharing
system.
Subscribe to:
Posts
(
Atom
)

























