excel advanced features
TRANSCRIPT
-
7/28/2019 Excel Advanced Features
1/2
WHAT ARE MACROS?A macro records your mouse clicks andkeystrokes while you work and playsthem back later. When you run the
macro, it plays those actions back inthe exact same order.
ADD THE DEVELOPER TABIn order to create macros, the usermust first add the Develper tab.1. Launch Excel 2010 in your favorite
manner2. Select File|Options|Customize
Ribbon|Main tabs|activateDeveloper|OK
The new tab now displays on the tabarea.
CREATE MACROS1. Build the worksheet in your usuasl
manner2. Click on A13. Select Developer tab|Code
group|Record Macro4. Name the macro a logial name but it
cannot have spaces in the name5. Assign a shortcut key6. If will devault to In the Workbook7. Provide a short description8. Click OK
9. Perform your steps and Excel willkeep recording all the steps10. When completed,return to A111. Stop the Macro recording by
selecting Developer tab|Codegroup|Stop Recording
RUN A MACRO1 Locate the insertion point at A12. Select Developer tab|Code
group|Macro button3. Select target macro from offered list4. Click run
RELATIVE AND ABSOLUTEREFERENCES
A relative reference in Excel is when theaddress of a cell is based on the relative
position of the cell that contains the dataand the cell referred to. By default, a cellreference is relative If you copy aformula. A formula that contains arelative cell reference changes as youcopy it from one cell to another. If youwant to maintain the original cellreference when you copy it, you makethe cell reference absoluteAn absolutecell reference in a formula, is the exactaddress of a cell, regardless of theposition of the cell that contains theformula and is indicated by precedingthe columns and row with a dollar sign($). Then, when you copy the formula itstays exactly the same.
CHANGING A RELATIVE TO ANABSOLUTE REFERENCE
1. Select the cell that contains thetarget formula
2. In the formula barselect thereference to change
3. Depress F4 to switch between thereference types
REASSIGNING SHORT-CUTKEYS IN MACROS1. Selecting Developer tab|Code
group|Macro button2. Choose the target macro from the
offered list3. Click on the Options... button4. Choose a short-cut key to assign to
the macro, insert it in theappropriate box and click OK
You will now be able to depressShift+Ctrl+your selected keystroke to runthis macro whenever you have the fileopen.
EDITING A MACRO1. An Excel macro is written in the
Visual Basic for Applications (VBA)programming language
2. Clicking on the Edit button in theMacro dialog box starts the VBAeditor
3. Macro Errors can be modified in thisdialog
4. Be very careful and unless youknow VBA, re - recording a macrothat does not work right is usuallythe best option
5. Click on the File|Close and Return toMicrosoft Excel to return to yourspreadsheet
ADDING A BUTTON1. Confirm the Developer tab isavailable and a macro has beencompleted
2. Select the Ceveloper tab|Controlsgroup|Import
3. Under Form Controls click on theButton form control
4. Draw out the shape of the intendedobject
5. At the Assign Macros dialog, selectthe target macro and click OK
6. Click on the button to test it7. To edit the text on the button, right
click the button8. Click on Edit Text and provide a
name for the buttonNow every time to click on the button,the macro will run.
PLEASE NOTENever insert a CD/DVD into the driveupside down. The data can fall off thesurface of the disk and jam the intricate
mechanics of the drive ().
SAVING & USING A MACROENABLED WORKBOOK
You will save and open workbooksin a new macro-enabled workbook
format (.xlsm) that provides addedsecurity. When you create amacro, you must use a macro-enabled format to save yourworkbook or the macro will not besaved.1. Click the File tab and then
choose Save As2. Enter a name and select a
location for your workbook3. Click the Save as Type drop-
down arrow4. Select Excel Macro-Enabled
Workbook and the extensionof.xlsm is added to thefilename
5. Click Save
OPENING A MACRO-ENABLED WORKBOOK
1. Open a workbook containinga macro in the same way youopen any other workbook
2. A Security Warning messageappears below the Ribbon
3. If you know where the macrooriginated, click the Enable
Content buttonYou are now free to use themacros in that workbook.
CARE AND FEEDING OF AJUMP DRIVE
If your drive is full and you needmore storage space, remove thedisk from the drive and shakevigorously for two minutes. Thiswill pack the data ("datacompression") enough to allow formore storage. Be sure to cover all
the openings with scotch tape toprevent loss of data (Gotcha).
SSTTAARRLLIIGGHHTT EEDDUUCCAATTIIOONNQuick Reference Guide
EXCEL 2010 - Macros
-
7/28/2019 Excel Advanced Features
2/2
DATA VALIDATION LIST1. Open an Excel datasheet2. Enter headings with data titles of
A1 Name, B1 Course and C1Gradefields3. Add five names into A2:A64. Select the Name field selector and
select Data tab|Data Toolsgroup|Data Validation
5. Click the Allow drop-down buttonand select List
6. Select source field from where youwant to make a list (A2:A6). Youcan select noncontiguous fieldsby depressing the Ctrl key
7. Click OK8. Click the drop down button in the
next available Namefield andselect the name from the offeredlist
PROTECTING CELL DATA
1. Launch the target & select theentire data area to be protected
2. Review tab|Changesgroup|Protect Sheet
3. Select any of the check boxes inAllow All Users to be functional
4. If desired, provide the Passwordto Unprotect Sheet text box
5. Click OK & test your protection6. To unlock cells click Review
tab|Changes group|UnprotectSheet
7. Type the password, if prompted8. Select the cells you want to allow
users to be able to edit9. Depress Ctrl+1 and click the
Protection tab10. Deactivate the Locked check box11. Click OK and protect the
worksheet again
GOAL SEEK1. Reproduce the following (A only):
A B
2. Write the Multiplicationformula=B1*B2 in the Result cell of B3
3. Select Data tab|Data Toolsgroup|What-if Analysis|Goal Seek
4. In Set cellselect the cell whichcontains the formula (B3)
5. In To valueenter the target number(6500)
6. In By Changing Cell, select the cell
which will be changed (B2)7. Click OKto complete task (B above)
TABLES1. Recreate the following:
2. To modify the spreadsheet into atable, click anywhere inside thetable
3. Select Home tab|Stylesgroup|Format as table|Selectdesired format
4. Click OK
NOTE FROM TECH SUPPORTDon't learn the proper name foranything technical. We know exactly
what you mean by "my thingy's outtawhack" ().
SCENARIOS1. Create the following:
2. Select Data tab|Data Toolsgroup|What if Analysis|ScenarioManager
3. Click the Add button4. Type Original Budget in the
Scenario Name box5. In the Changing Cells box, enter B3
and click OK6. We don't want any values to change
so just click OK7. Click the Add button again, type a
new Name of Budget Two and clickOK
8. Enter the value of 200 in B3, clickOK and you have two scenarios
9. With Budget Two selected, click theShow button at the bottom
10. Click the Close button whencomplete
COMMENTS1. Select the cell that you want to add
a comment to2. Select Review tab|Comments
group|New Comment (SHIFT+F2)3. In the body of the comment, type
the comment text and Clickoutside the comment box
4. To edit a comment , select the cellthat contains the comment thatyou want to edit
5. On the Review tab|Commentsgroup|Edit Comment and make thedesired edits
DATA CONSOLIDATION1. Launch Excel, and create the
following:
ProductQtr1
Qtr2
Qtr3
Qtr4
Mars 50 43 66 45
BabyRuth 74 75 83 45
Skittles 85 86 94 56
2. Go to Sheet1, select the data,copy the data to Sheet2 andSheet3
3. Select the total data on Sheet1and, in the Name Box located inthe top-left corner of the sheet,
enter text14. Repeat the above to assign name
ranges text2 and text3 to Sheet2and Sheet3
5. Move to or create a newworksheet, naming itConsolidated, and locate theinsertion point where the newdata is to display
6. Now navigate to Datatab|DataTools group|Consolidate.
7. From Function options, selectSUM
8. From the References text pane,depress F3
9. Select text1 and OK10. Under Use labels in, enable Top
row, and click Add11. Repeat until all 3 textN entries
display in the All References area12. Click OK to complete the task
Compliments ofSTARLIGHT EDUCATION
Contact us [email protected]
SSTTAARRLLIIGGHHTT EEDDUUCCAATTIIOONNQuick Reference Guide
EXCEL 2010 - Advanced Features