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.
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
Hanumaan Chaaleesaa, Sankat Mochan Hanumaan Ashtak & Bajrang Baan of Goswami Tulsidas with Bajrang Aaratee In English and Hindi with Meaning Rating: 0 out of 5 stars0 ratingsMeditative Moments of a Seeker Rating: 5 out of 5 stars5/5Good, Evil & Supernatural... (Tales of Unsolved Mysteries) Rating: 0 out of 5 stars0 ratingsDevelop Snake & Ladder Game in an Hour (Complete Guide with Code & Design) Rating: 0 out of 5 stars0 ratingsDevelop Snakes & Ladders Game Complete Guide with Code & Design Rating: 0 out of 5 stars0 ratingsLet's Play with Excel Rating: 0 out of 5 stars0 ratingsMuhnochwa (The Face Scratcher) 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
Let's Play with Excel Rating: 0 out of 5 stars0 ratingsExcel Simulations Rating: 4 out of 5 stars4/5Excel 2010 for Fantasy Football Rating: 0 out of 5 stars0 ratingsPython For Beginners Rating: 0 out of 5 stars0 ratingsExcel 2007 for Fantasy Football Rating: 0 out of 5 stars0 ratingsAdvanced Lotto Rotation System Rating: 0 out of 5 stars0 ratingsA Complete Guide to M.C.Q (Class-10, Mathematics): CBSE MCQ Series, #1 Rating: 0 out of 5 stars0 ratingsCORE JAVA Interview Questions You'll Most Likely Be Asked Rating: 4 out of 5 stars4/5SQL Server Functions and tutorials 50 examples Rating: 1 out of 5 stars1/5Amazing Java: Learn Java Quickly Rating: 0 out of 5 stars0 ratingsTrackpad Pro Ver. 5.0 Class 7 Rating: 0 out of 5 stars0 ratingsLearn Excel Functions: Count, Countif, Sum and Sumif Rating: 5 out of 5 stars5/5Making Addition and Subtraction Easier Rating: 0 out of 5 stars0 ratingsExcel Statistics: Step by Step Rating: 4 out of 5 stars4/5Microsoft Excel Formulas: Master Microsoft Excel 2016 Formulas in 30 days Rating: 4 out of 5 stars4/550 Useful Excel Functions: Excel Essentials, #3 Rating: 5 out of 5 stars5/5Fast mental calculation tricks Rating: 0 out of 5 stars0 ratingsMaster Fracions Addition, Subtraction And Multiplication Rating: 0 out of 5 stars0 ratingsExcel 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 ratingsMicrosoft Excel Functions Vol 1: 1 Rating: 1 out of 5 stars1/5Excel Functions for the Daily User Rating: 0 out of 5 stars0 ratingsExcel 101: A Beginner's Guide for Mastering the Quintessence of Excel 2010-2019 in no time! Rating: 0 out of 5 stars0 ratingsCool Excel Sh*t Rating: 1 out of 5 stars1/5Microsoft Excel Formulas for People Management Rating: 0 out of 5 stars0 ratingsPrinciples of Digital Electronics Rating: 0 out of 5 stars0 ratingsData Interpretation Guide For All Competitive and Admission Exams Rating: 3 out of 5 stars3/550 More Excel Functions: Excel Essentials, #4 Rating: 0 out of 5 stars0 ratingsSTRATEGY SPORTBETTING NEVER LOSE Rating: 0 out of 5 stars0 ratingsMaster Division & Fractions Rating: 0 out of 5 stars0 ratings
Programming For You
Java for Beginners: A Crash Course to Learn Java Programming in 1 Week Rating: 5 out of 5 stars5/5Game Development with Unreal Engine 5: Learn the Basics of Game Development in Unreal Engine 5 (English Edition) Rating: 0 out of 5 stars0 ratingsExcel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Coding All-in-One For Dummies 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/5HTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5C# Programming from Zero to Proficiency (Beginner): C# from Zero to Proficiency, #2 Rating: 0 out of 5 stars0 ratingsPython Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5Python: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5Learn JavaScript in 24 Hours Rating: 3 out of 5 stars3/5Python QuickStart Guide: The Simplified Beginner's Guide to Python Programming Using Hands-On Projects and Real-World Applications Rating: 0 out of 5 stars0 ratingsPYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Python Machine Learning By Example Rating: 4 out of 5 stars4/5Problem Solving in C and Python: Programming Exercises and Solutions, Part 1 Rating: 5 out of 5 stars5/5Python Data Structures and Algorithms Rating: 5 out of 5 stars5/5Linux: Learn in 24 Hours 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 ratingsPython GUI Programming Cookbook - Second Edition Rating: 5 out of 5 stars5/5Learn SQL in 24 Hours Rating: 5 out of 5 stars5/5
Reviews for Let's Play with Excel
0 ratings0 reviews
Book preview
Let's Play with Excel - Anurag Pandey
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
MsgBox (Sorry
& s & ! Due to your Country of Citizenship mismatch, you can't participate in this Game!
)
End If
Else
MsgBox (Sorry
& s & ! Due to your Age mismatch, you can't participate in this Game!
)
End If
End Sub
Sub Ex04_Nested_If_Elseif()
'We shall ask the user to give answers of 5 questtions. Then we shall provide performance level. Zero correct answer - performance Very Poor, one - Poor, two - Satisfactory, three - Good, Four - Very Good, Five - Excellent.
Dim s As String
Dim j As Integer
s =
i = 0
s = InputBox(What is Square Root of 100?
)
If IsNumeric(s) = True Then
If Int(s) = 10 Then j = j + 1
End If
s = InputBox( 100 + 20 * 15 / 2 + 14 / 2 * 2 = ???
)
If IsNumeric(s) = True Then
If Int(s) = 264 Then j = j + 1
End If
s = InputBox( 100 + ( 20 * 15 / 2 + 14) / 2 * 2 = ???
)
If IsNumeric(s) = True Then
If Int(s) = 264 Then j = j + 1
End If
s = InputBox( 100 + 20 * ( 15 / 2 + 14 / 2 ) * 2 = ???
)
If IsNumeric(s) = True Then
If Int(s) = 680 Then j = j + 1
End If
s = InputBox( 100 + 20 * 15 / ( 2 + 14 / 2 * 2 ) + 0.25 = ???
)
If IsNumeric(s) = True Then
If Int(s) = 119 Then j = j + 1
End If
If j = 0 Then
MsgBox (You scored
& j & out of 5. Your performance level is Very Poor!
)
ElseIf j = 1 Then
MsgBox (You scored
& j & out of 5. Your performance level is Poor!
)
ElseIf j = 2 Then
MsgBox (You scored
& j & out of 5. Your performance level is Satisfactory!
)
ElseIf j = 3 Then
MsgBox (You scored
& j & out of 5. Your performance level is Good!
)
ElseIf j = 4 Then
MsgBox (You scored
& j & out of 5. Your performance level is Very Good!
)
Else
MsgBox (You scored
& j & out of 5. Your performance level is Excellent!
)
End If
End Sub
Sub Ex05_For_Next_Loop()
'We shall fill ActiveSheet Cells A2 to A11, B2 to B11... J2 to J11 with sum of previous numbers starting from 1.
'So we need a loop to run the code 100 times. And after each 10 we need to change the column.
Dim i, j, rows, cols As Integer
rows = 2
cols = 1
For i = 1 To 100
j = j + i
Cells(rows, cols).Value = j
If i Mod 10 = 0 Then
cols = cols + 1
rows = 2
Else
rows = rows + 1
End If
Next
End Sub
Sub Ex06_For_Next_Nested_Loop()
'We shall fill ActiveSheet Cells A2 to A11, B2 to B11... J2 to J11 with sum of previous numbers starting from 1.
'We shall run a nested loop of 10 * 10.
Dim i, j, k As Integer
k = 0