Let's Play with Excel
()
About this ebook
Excel is a very powerful application. But we only use it for simple data entry purpose. We do some plus-minus and a little multiplication etc. Let's do little more with Excel. Let’s play with excel. It has 51 Macros written by me. They are useful programs having original VBA coding. If you are Computer Student/ VBA Learner/ Excel Professional then you would find this book really helpful.
Namaskar! I am Anurag Pandey (since 1978). I am writer, author, poet, lyricist and computer programmer. My poems have been published in national newspapers and magazines of India like Navbharat Times, Kadambini etc. I have written Story/ Dialogues/ Screenplay for various TV Shows like Lady Inspector, Shaka Laka Boom Boom, Indonesian TV shows etc. At present I live in Bhubaneswar, India. Meditation, yoga, mystery, paranormal, supernatural, love, relationships are some of my favorite topics to read and write.
Anurag Pandey
Anurag S Pandey is a writer, poet and computer programmer. His poems have been published in national newspapers and magazines of India like Navbharat Times, Kadambini etc. He has written Story/ Screenplay/ Dialogues for various TV Shows like Lady Inspector, Shaka Laka Boom Boom, Indonesian TV shows etc. At present he lives in Bhubaneswar, India. Meditation, yoga, mystery, paranormal & supernatural activities are some of his favorite topics to read and write.
Read more from Anurag Pandey
Meditative Moments of a Seeker Rating: 5 out of 5 stars5/5Develop Snake & Ladder Game in an Hour (Complete Guide with Code & Design) Rating: 0 out of 5 stars0 ratingsGood, Evil & Supernatural... (Tales of Unsolved Mysteries) Rating: 0 out of 5 stars0 ratingsMuhnochwa (The Face Scratcher) Rating: 0 out of 5 stars0 ratingsDevelop Snakes & Ladders Game Complete Guide with Code & Design Rating: 0 out of 5 stars0 ratingsFive Books in One! Fitoor / Just for Fun / the Burning Desire / Truth Always Wins / the Face Scratcher Rating: 0 out of 5 stars0 ratings
Related to Let's Play with Excel
Related ebooks
Excel 2019 Conditional Formatting: Easy Excel Essentials 2019, #3 Rating: 0 out of 5 stars0 ratingsPivot Tables for everyone. From simple tables to Power-Pivot: Useful guide for creating Pivot Tables in Excel Rating: 0 out of 5 stars0 ratingsExcel Insights: A Microsoft MVP guide to the best parts of Excel Rating: 0 out of 5 stars0 ratingsMrExcel XL: The 40 Greatest Excel Tips of All Time Rating: 4 out of 5 stars4/5Excel 101: A Beginner's Guide for Mastering the Quintessence of Excel 2010-2019 in no time! Rating: 0 out of 5 stars0 ratingsThe IF Functions: Easy Excel Essentials, #4 Rating: 0 out of 5 stars0 ratings50 More Excel Functions: Excel Essentials, #4 Rating: 0 out of 5 stars0 ratingsLearn Excel Functions: Count, Countif, Sum and Sumif Rating: 5 out of 5 stars5/5SQL Server Functions and tutorials 50 examples Rating: 1 out of 5 stars1/5Microsoft Excel Functions Vol 1: 1 Rating: 1 out of 5 stars1/5Excel Formulas That Automate Tasks You No Longer Have Time For Rating: 5 out of 5 stars5/5Excel 101: A Beginner's & Intermediate's Guide for Mastering the Quintessence of Microsoft Excel (2010-2019 & 365) in no time! Rating: 0 out of 5 stars0 ratingsCool Excel Sh*t Rating: 1 out of 5 stars1/5Excel Subtotals Straight to the Point Rating: 0 out of 5 stars0 ratingsHidden Gems of Microsoft Excel Rating: 0 out of 5 stars0 ratingsExcel Functions for the Daily User - Vol 2 Rating: 0 out of 5 stars0 ratingsBusiness Analysis with QuickBooks Rating: 0 out of 5 stars0 ratingsGuerrilla Data Analysis Using Microsoft Excel: Overcoming Crap Data and Excel Skirmishes Rating: 0 out of 5 stars0 ratingsMicrosoft Office Excel 2013 PivotTables Rating: 4 out of 5 stars4/5Accounts Receivable A Complete Guide - 2021 Edition Rating: 0 out of 5 stars0 ratingsPractice Accounts Made Easy, third edition Rating: 0 out of 5 stars0 ratingsEasy Accounting: Simple Steps, Simple Solutions Rating: 0 out of 5 stars0 ratingsSlaying Excel Dragons: A Beginners Guide to Conquering Excel's Frustrations and Making Excel Fun Rating: 0 out of 5 stars0 ratingsThe Payroll Book: A Guide for Small Businesses and Startups Rating: 5 out of 5 stars5/5Supercharge Excel: When you learn to Write DAX for Power Pivot Rating: 0 out of 5 stars0 ratingsExcel Pivot Tables & Charts Rating: 0 out of 5 stars0 ratingsPayroll Outsourcing Services Second Edition Rating: 0 out of 5 stars0 ratingsA One-Year Accounting Course: Part 1 Rating: 0 out of 5 stars0 ratings
Programming For You
HTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Learn PowerShell in a Month of Lunches, Fourth Edition: Covers Windows, Linux, and macOS Rating: 0 out of 5 stars0 ratingsLearn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5The Unofficial Guide to Open Broadcaster Software: OBS: The World's Most Popular Free Live-Streaming Application Rating: 0 out of 5 stars0 ratingsCoding All-in-One For Dummies Rating: 4 out of 5 stars4/5Java for Beginners: A Crash Course to Learn Java Programming in 1 Week Rating: 5 out of 5 stars5/5Hacking: Ultimate Beginner's Guide for Computer Hacking in 2018 and Beyond: Hacking in 2018, #1 Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Python Projects for Beginners: A Ten-Week Bootcamp Approach to Python Programming Rating: 0 out of 5 stars0 ratingsSQL: For Beginners: Your Guide To Easily Learn SQL Programming in 7 Days Rating: 5 out of 5 stars5/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Python: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5SQL All-in-One For Dummies Rating: 3 out of 5 stars3/5The Little SAS Book: A Primer, Sixth Edition Rating: 5 out of 5 stars5/5Teach Yourself C++ Rating: 4 out of 5 stars4/5Pokemon Go: Guide + 20 Tips and Tricks You Must Read Hints, Tricks, Tips, Secrets, Android, iOS Rating: 5 out of 5 stars5/5Web Designer's Idea Book, Volume 4: Inspiration from the Best Web Design Trends, Themes and Styles Rating: 4 out of 5 stars4/5
Reviews for Let's Play with Excel
0 ratings0 reviews
Book preview
Let's Play with Excel - Anurag Pandey
Let’s Play with Excel
Author: ANURAG PANDEY
Dear Reader! I am Anurag Pandey. I am a writer, a poet and also a passionate programmer. I like writing codes. I use coding to automate required tasks in my office, which have reduced particular tasks completion time from hours and even days to just a few minutes. I remember, once an official from Income Tax Department of India had said to me that you are an Excel expert. I had replied him that I am not an Excel expert. I only use logic in anything, if I can.
We know that Excel is a very powerful application. But we only use it for simple data entry purpose. We do some plus-minus and a little multiplication etc. and all that. Let's do a little more with Excel. Let’s play with excel.
Let’s Play with Excel
has 51 Macros written by me. They are useful programs having original VBA coding. If you are Computer Student/ VBA Learner/ Excel Professional then you would find this book really helpful. I would like to tell you about a few programs of this book here.
One of its’ Macro is able to give you ready to print Invoice with auto retrieving data. Another Macro is able to take details of entire class (any number of students and subjects) and to provide ready to print Mark-sheet of each student along with Result Sheet of all students at one place.
Another Macro provides you simple and easy format to enter data of one or many Invoice/s at once. Then another Macro creates JSON file from that data, which you can use for bulk upload for generating E Invoices.
Other two Macros are able to Encode/Decode data of your Excel sheet. Using this you can encode your data and can send the encoded Excel file on Mails etc. At the other hand the file can be decoded only if you have provided the Macro for decoding the sheet. You can very easily make changes in those Macros and then you would have unique Macros for encoding and decoding your Excel sheets.
Another Macro of this book has the ability to check two sheets and to list all those cells which have dissimilar data along with both the data. Using this you can check for changes in two sheets having similar data with some expected/ unexpected/ accidental/ unknown mismatches.
Some Macros from this book would help you to learn and do manipulation of data your way, some other would help you to exercise logic and programming and some other would help you to learn a little about Excel and VBA.
With great excitement and expectation, I request you to check Let’s Play with Excel
and provide your invaluable feedback.
ANURAG PANDEY
Bhubaneswar, India
05-05-2021
List of Macros:
Sub Ex01_Simple_If_Statement()
Sub Ex02_Simple_If_Statement()
Sub Ex03_Nested_If()
Sub Ex04_Nested_If_Elseif()
Sub Ex05_For_Next_Loop()
Sub Ex06_For_Next_Nested_Loop()
Sub Ready_to_Print_Invoice_with_Retrieving_Data()
Sub Ready_to_Print_Marksheet_and_Result_of_Entire_Class()
Sub Ready_to_Print_Invoice_Format_and_Formulas()
Sub Amount_in_Words()
Sub Encode_the_Sheet_100_Columns_Upto_100_Rows()
Sub Decode_the_Sheet_100_Columns_Upto_100_Rows()
Sub Find_Square_Roots_Up_To_15Decimal_Places()
Sub Code_to_Copy_All_Records_of_Selected_ID_to_Sheet2()
Sub Sample_Code_for_Manipulating_Data()
Sub Find_Palindromes_in_A_Range()
Sub Find_Palindrome_of_Extra_Big_Whole_or_Decimal()
Sub To_See_Records_having_Common_Fileter_Word_All_Columns()
Sub Create_Inv_Data_for_Json_E_Invoice_Sample_Given()
Sub Create_Json_File_for_E_Invoice()
Sub Find_Prime_Numbers()
Sub Find_Mismatches_or_Differences_Between_Two_Sheets()
Sub Show_Time()
Sub Rupees_in_Words()
Sub Merge_Cells_by_Separating_Data_Using_Double_Quotes()
Sub Unmerge_Cells_by_Separating_Data_Using_Double_Quote()
Sub Get_Data_of_50columns_15rows_in_One_Cell()
Sub Get_Data_of_Selected_Cells_in_One_Cell()
Sub Encode_the_Sheet_Selected_Rows_N_Columns()
Sub Decode_the_Sheet_Selected_ Rows_N_Columns()
Sub Reverse_the_Digit_Logic_1()
Sub Reverse_the_Digit_Logic_2()
Sub Reverse_the_Digit_Logic_3()
Sub Sum_of_Odd_Numbers_1to100()
Sub Sum_of_Even_Numbers_1to100()
Sub Table_of_Given_Range_Way1()
Sub Table_of_Given_Range_Way2()
Sub Display_Product_of_Selected_Cells()
Sub Change_Case_Selected_Cells()
Sub Trim_All_Selected_Cells_Removes_All_Extra_Spaces()
Sub Shift_Data_of_Selected_Cells_in_Reverse_Order()
Sub Animate_the_Sheet_Ex_One()
Sub Animate_the_Sheet_ Ex_Two()
Sub Animate_the_Sheet_ Ex_Three()
Sub Animate_the_Sheet_ Ex_Four()
Sub Animate_the_Sheet_ Ex_Five()
Sub Animate_the_Sheet_ Ex_Six()
Sub Animate_the_Sheet_ Ex_Seven()
Sub Animate_the_Sheet_ Ex_Eight()
Sub Animate_the_Sheet_ Ex_Nine()
Sub Animate_the_Sheet_ Ex_Ten()
Create a Macro Enabled Workbook; name it Play with Excel.xlsm
with at least one Sheet named Sheet1
. Copy & Paste entire Code starting below to the end of this book to the Visual Basic Editor of that Workbook. And now you are ready to play with excel. All the best!
Sub Ex01_Simple_If_Statement()
'We shall prompt the user to enter an alphabet and will reply him/her whether it was Vowel or Consonant.
Dim s As String
s = InputBox(Please enter an Alphabet.
)
s = Left(s, 1)
s = UCase(s)
If s = A
Or s = E
Or s = I
Or s = O
Or s = U
Then
MsgBox (You had entered a Vowel.
)
ElseIf Asc(s) > 64 And Asc(s) < 91 Then
MsgBox (You had entered a Consonant.
)
Else
MsgBox (You had not entered a Alphabet.
)
End If
End Sub
Sub Ex02_Simple_If_Statement()
'We shall prompt the user to enter a Digit. Then we shall tell the user whether it was Odd or Even.
Dim i As String
i = InputBox(Enter a digit.
)
If IsNumeric(i) = True Then
If Int(i) <> i Then
MsgBox (You didn't enter an Integer. So we shall convert it in to an Integer i.e. from
& i & to
& Int(i) & .
)
i = Int(i)
End If
If i Mod 2 = 0 Then
MsgBox (You had entered
& i & . It is an Even number.
)
Else
MsgBox (You had entered
& i & . It is an Odd number.
)
End If
Else
MsgBox (You hadn't entered a Digit!
)
End If
End Sub
Sub Ex03_Nested_If()
'Logic - Any Male >= 18 Years, citizen of India, having Income >= 50000 per month, having Cricket as hobby can participate in the game.
Dim s, s1 As String
Dim i As Long
s = InputBox(Enter your name.
)
s = UCase(s)
i = 0
While i < 1 Or i > 100
s1 = InputBox(Hello
& s & !
& Chr(10) & Please enter your age in years.
)
If IsNumeric(s1) = True Then i = s1
Wend
If i >= 18 Then
s1 = InputBox(s & ! Please enter your Country of Citizenship.
)
s1 = UCase(s1)
If s1 = INDIA
Then
i = 0
While i < 1 Or i > 100000000
s1 = InputBox(s & ! Please enter your Monthly Income.
)
If IsNumeric(s1) = True Then i = s1
Wend
If i >= 50000 Then
s1 = InputBox(Enter you Hobby, please.
)
s1 = UCase(s1)
If s1 = CRICKET
Then
MsgBox (Congrats
& s & ! you can participate in this Game!
)
Else
MsgBox (Sorry
& s & ! Due to your Hobby mismatch, you can't participate in this Game!
)
End If
Else
MsgBox (Sorry
& s & ! Due to your Income mismatch, you can't participate in this Game!
)
End If
Else