Learning Slides[ pdf ] Tutorial 2: Functions Tutorial 4: Recording Macro Task: If given the following on an Excel worksheet, how do we fill this up? 1 2 3 500 1000 1500 2000 2500 3000 7/20/2012 7/18/2012 6/25/2012 6/24/ 2012
Previous PDF | Next PDF |
[PDF] 2500 excel vba examples pdf
Macro Santa These are VBA examples of Excel 2,500: every VBA code snippet in Excel that you will never need 2006 macro codes can save you a ton of time
[PDF] Free Holy Macro Its 2500 Excel VBA Examples - WordPresscom
Free PDF Holy Macro Its 2500 Excel VBA Examples Every Snippet of Excel VBA Code Youll Ever Need This guide to unleashing the power of Microsoft Excel by
[PDF] Holy Macro Its 2500 Excel Vba Examples Every Snippet Of Excel
Vba Code Youll Ever Need Amazon com: Customer reviews: Holy Macro It's 2,500 Excel Excel - Holy Macro Its 2,500 Excel Vba Examples [PDF]
[PDF] Programming Excel/VBA 2 - City, University of London
Andreas Fring Programming Excel/VBA MA1603 12 23 • Examples: =L5*C$7 =B1+$B5 =K7*B$7 =A3+$B7 add one column subtract 2 rows D3 C5 =#REF
[PDF] Intro to Excel VBA Macro Programming - Columbia University
Learning Slides[ pdf ] Tutorial 2: Functions Tutorial 4: Recording Macro Task: If given the following on an Excel worksheet, how do we fill this up? 1 2 3 500 1000 1500 2000 2500 3000 7/20/2012 7/18/2012 6/25/2012 6/24/ 2012
[PDF] Microsoft Excel VBA Programming for the - fun and education
2 Microsoft Excel VBA Programming for the Absolute Beginner, Second Edition In the Real World user generates a stimulus For example, a keystroke or a mouse click may trigger specific pieces of Const NUMSWAPS = 500 Randomize
[PDF] VBA Programmers Guide - TestUnlimited
Microsoft®,MS-DOS®,Windows®,Visual C++®,Visual Basic®,VBA® and Excel® are A VBA sample program disk (Agilent part number: E5061-180x1) is furnished 2 Introduction to VBA Programming Introduction of the E5061A/ E5062A Line 500 Writes the formatted data array (FmtData) into the active trace (target
[PDF] Excel 2016 Power Programming with VBA - Future in Hands club
Some Useful Functions for Use in Your Code Some Useful Worksheet Functions Windows API Calls Part II: Advanced VBA Techniques Chapter 8: Working
[PDF] 2 d fourier series
[PDF] 2 dimensional array java exercises
[PDF] 2 dimensional shapes with 9 angles
[PDF] 2 fold serial dilution calculator
[PDF] 2 letter language codes defined in iso 639
[PDF] 2 plus 2 égale 4
[PDF] 2 rue cambronne 15th arr. 75015 paris france
[PDF] 2 rue cambronne 75015 paris france
[PDF] 2 rue hennape 92000 nanterre
[PDF] 2 study guide and intervention ellipses and circles answer key
[PDF] 2 tier and 3 tier architecture
[PDF] 2 tier and 3 tier architecture of erp
[PDF] 2 tier architecture example in dbms
[PDF] 2 tier vs 3 tier architecture
Fall 2012 Workshop
George Zhao
gz2165@columbia.eduGoals of the Workshop
yLearn Excel tools by utilizing them in various cases yTools and materials covered here are merely a sample ofExcel functionality
yUnderstand the logic and syntax behind Visual Basic programming, which interacts with the Excel interface yNo programming background required yCreate dynamic algorithms to approach cases yWhen data is changed, but retains its original format, the algorithm should be able to automatically handle the transition appropriatelyCreated by George Zhao2
Workshop Structure
yInstead of providing function and programming syntax to memorize, this workshop emphasizes case studies, through which the skills are utilized yCases: applicable situational tasks yTutorials: supplemental teaching material to understand foundational materials yBest recommended to follow along and do the exercises with accompanying spreadsheetsCreated by George Zhao3
Workshop Resources
Lesson materials:
yLearning Slides[.pdf] yExercises -Blank [.xlsx] yExercises -Filled [.xlsm]Created by George Zhao4
Contents Overview
yCase 1: Multiplication Table yCase 2: Percentile Calculations yTutorial 1: Variables and Arrays yCase 3: Hello World yTutorial 2: Functions yTutorial 3: Loops and Decisions yCase 4: Gradebook Tallying yCase 5: Loop through Data yTutorial 4: Recording Macro yCase 6: Select, Pull, Display yTutorial 5: Userform yCase 7: Subway Data All-Around AnalysisCreated by George Zhao5
Multiplication Table
yTask: If given the following on an Excel worksheet, how do we fill this up? 123451 2 3 4 5
Created by George Zhao7
First Task: Building the Table
ySuppose we are only given one side of the table initially: yWe need 1, 2, 3, 4, 5 to be filled up on the top row, beginning in cell B1, going rightward yWe also want both sets of numbers to be boldedCreated by George Zhao8
Shift + Control + Arrow
yBegin by selecting cell B2 yShift + Control + Down arrow to select all elements until an empty cell (or the end of capacity limit of the worksheet) is reached yShift + Control + (Up / Down / Left / Right) arrow all work similarly yControl + B for bold yControl + C for copyCreated by George Zhao9
Paste Special with Shortcut
yUse arrow to move to cell B1 yCan Right Click > Paste Special yOr simply Alt + E + S ySelect Transpose (E)Created by George Zhao10
Where to Start
yUse fixed reference cells 123451 2 3 4 5
Created by George Zhao11
1-Dimensional Fixed Reference
yExample: y = (1+r)*x^2, given a fixed value r r = 0.1 xy -39.9 -2 -1 0 1 2 3Created by George Zhao12
Show Formulas
yFormulas > Show Formulas yToggle on and off between showing / not showingCreated by George Zhao13
Error: No Fixing Reference
yError r = 0.1 xy -39.9 -24 -1#VALUE! 00 152#VALUE!
39Created by George Zhao14
1-Dimensional Fixed Reference
yFix cell reference in cells A1, B2, BB32: $A$1, $B$2, $BB$32 r = 0.1 xy -39.9 -24.4 -11.1 00 11.1 24.439.9
Created by George Zhao15
Deeper Look into Fixing Reference
yA1: not fixing column A nor row 1 y$A$1: fixing column A and row 1 y$A1: fixing ONLY column A, not row 1 yA$1: fixing ONLY row 1, not column A yWhatever (row and/or column) right after the $ sign is fixed yIf fixing BOTH row and column, press F4 while cursor is over the reference in the formula editingCreated by George Zhao16
Algorithm: Multiplication Table
yMultiply the row index by the column index yDo this for each cell in the row, and then for each row 123451 2 312
4 5
Created by George Zhao17
Example: Multiplication Table
yFocus again on cell E4: (12 = 3 x 4) yAll entries on row 4: product of 3 (A4) and ___ yAll entries on column E: product of 4 (E1) and ___Created by George Zhao18
Think About It
yFocus on any single row: yWe are traversing through various columns, but want to fix the first term (A4), so fix the column letter (A) yFocus on any single column: yWe are traversing through various rows, but want to fix the second term (E1), so fix the row number (1)Created by George Zhao19
Result of Fixing
yFix the column (A) from the first reference, and the row (1) from the second reference yF2 to illustrate the formula and the references (colored)Created by George Zhao20
Shortcuts to Paste Formula
yDouble click on the square at the lower-right corner of the cell yThis pastes the formula down the column, avoids the effort of dragging the formula down across rowsCreated by George Zhao21
Shortcuts to Paste Formula
columns yHave to manually drag it across the columnsCreated by George Zhao22
Performance Evaluation
yHow would performance have been if we were dealing with a 50 x 50 table instead? yShift + Control + Down, copy, paste special (transpose) occurs constant time yDouble clicking to paste to formulas down occurs constant time yManually dragging the formulas across columns depends linearly on number of columnsCreated by George Zhao23
Alt + Enter Pasting Method
yPaste the formula on one corner yPaste the formula on the other corner ySelect all of the cells in-between to apply the same formula, using Shift + Control + arrow to get all of the wanted data yClick Alt + Enter yMuch more useful when dealing with 1-dimensional list than 2-dimensional tableCreated by George Zhao24
Alt + Enter Illustrated
yCopy the formula in cell B2, paste into F6, select everything in-between, and hit Alt + Enter yDifficult to capture the desired region efficiently with the Shift + Control + arrow methodCreated by George Zhao25
Quick Way to Paste Formula
12345112345
2246810
33691215
448121620
5510152025
Created by George Zhao26
Remarks
yWhen fixing cell reference, think: yAre we fixing the column? yAre we fixing the row? yBoth? yNeither? yAlt + Enter way to paste formulas is more useful in 1- dimensional situationsCreated by George Zhao27
Pseudocode: The Approach
yMultiply the row index by the column index yDo this for each cell in the row, and then for each row 123451 2 312
4 5