



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Logical and User-Defined Functions of Microsoft Excel XP/2003
Typology: Cheat Sheet
1 / 5
This page cannot be seen from the preview
Don't miss anything!
SHARED COMPUTING SERVICES
Updated 12/14/
Logical Functions
Use the IF Function
=IF(Statement,IFtrue,IFfalse)
Nest IF functions in the IFfalse area of the parent function.
Combine Logical Functions
Concatenate & Parse Cells (Merge & Split)
(^1) John Smith Smith, John =CONCATENATE(B1,“, ”,A1) (^2) Jane Jones Jones, Jane =B2&“, ”&A
When passing the interval code to the DATEDIF function, enclose it in quotes if you are passing a literal value to the function.
Use the DATEDIF Function
Syntax: =DATEDIF(Date1,Date2,Interval)
Date1 must be ≤ Date2 or a #NUM! error will be returned. If either Date1 or Date2 is not a date, a #VALUE! error will be returned. Interval must be one of the following codes: Code Meaning Description "m" Months Number of complete months between Date1 and Date2. "d Days Number of days between Date1 and Date2. "y" Years Number of complete years between Date1 and Date2. "ym" Months Excluding Year Number of months between Date1 and Date2, as if Date1 and Date2 were in the same year. "yd" Days Excluding Years Number of days between Date1 and Date2, as if Date1 and Date2 were in the same year. "md" Days Excluding Months & Years Number of days between Date1 and Date2, as if Date1 and Date2 were in the same month and year. When passing the interval code to the DATEDIF function, enclose it in quotes if you are passing a literal value to the function.
Become a Microsoft Excel Power-User
page 2 Shared Computing Services
Use HLOOKUP
You must have a data table for which to lookup information indexed in horizontal rows. =HLOOKUP ( lookup_value , table_array , row_index _num,range_lookup)
Use VLOOKUP
You must have a data table for which to lookup information indexed in vertical columns. =VLOOKUP ( lookup_value , table_array , col_index _num,range_lookup)
Use Data Validation
fields that are pertinent to your choices.
Visual Basic
Record a Macro
Edit a Macro
any macro using Visual Basic for Applications (VBA) code.
Debug a Macro
Become a Microsoft Excel Power-User
page 4 Shared Computing Services
Write a Subroutine
Public Function Discount(Sales, Customer) If Customer = "R" Then Discount = Application.VLookup(Sales, Range("Discounts"), 2) Discount = (-1) * Discount * Sales ElseIf Customer = "W" Then Discount = Application.VLookup(Sales, Range("Discounts"), 3) Discount = (-1) * Discount * Sales ElseIf Customer = "" Then Discount = "Please Enter Customer Code" Else Discount = "Invalid Customer Code" End If End Function
Customize Excel
Share a Workbook
Create a Cell Comment
Create Custom Cell Formats
When creating a format for a cell, there are four types of numbers or text that you need to specify how you want them to appear. Positive Number; Negative Number; Zero; Text Code Display d (^) Day (d=1, dd=01, ddd=Mon, dddd=Monday) m Month (m=1, mm=01, mmm=Jan, mmmm=January) y (^) Year (yy=02, yyyy=2001)
_ (underscore) Insert space in a number format [when you follow an underscore with a closing parenthesis _), positive numbers line up correctly with negative numbers that are enclosed in parentheses]
$ (^) Displays a dollar sign in the position
. (^) Displays a decimal point in the position , (^) Add commas as thousands separators @ (^) Indicates that an alpha character is required & (^) Indicates that an alpha character is an option “ABC” (^) Displays anything inside quotation marks as literal characters \ (^) Display for following character as literal [color] (^) Displays the result in the color specified. (red, magenta, yellow, blue, cyan, green, black, white) ; Separates sections in the syntax of the cell
Become a Microsoft Excel Power-User
Shared Computing Services page 5
Add a Background Image to a Worksheet
Create a Custom List
Create a Custom Menu
Customize a Toolbar
Customize How You Move