0% found this document useful (0 votes)
27 views

VBA Functions (SELECTED) : String

VBA Functions (SELECTED) provides a summary of common VBA functions organized into categories including Array, String, Numeric, Information, Date and Time, Lookup, Data Type Conversion, and Financial. Some key functions listed include ASC, CHR, LEFT, LEN, MID, RIGHT, DATE, DAY, HOUR, MONTH, NOW, SWITCH, CBOOL, CDATE, IPMT, NPV, PMT, and RATE.

Uploaded by

Sana Bajpai
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

VBA Functions (SELECTED) : String

VBA Functions (SELECTED) provides a summary of common VBA functions organized into categories including Array, String, Numeric, Information, Date and Time, Lookup, Data Type Conversion, and Financial. Some key functions listed include ASC, CHR, LEFT, LEN, MID, RIGHT, DATE, DAY, HOUR, MONTH, NOW, SWITCH, CBOOL, CDATE, IPMT, NPV, PMT, and RATE.

Uploaded by

Sana Bajpai
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

VBA Functions (SELECTED)            

    ARRAY   Returns a Variant containing an array      


                       
  String                  
    ASC   Converts the first character of string to its ASCII value    
    CHR   Converts an ANSI value to a character      
    & operator Generates a string concatenation of two expressions    
    FORMAT string Returns an expression in a particular format    
    LCASE   Returns a string converted to lowercase      
    LEFT   Returns a specified number of characters from the left of a string  
    LEN   Returns the length of a string, in characters    
    LTRIM   Returns a copy of a string with no leading spaces    
    MID   Returns a specified number of characters from a string    
    REPLACE Returns a string in which one substring is replaced with another  
    RIGHT   Returns a specified number of characters from the right of a string  
    RTIM   Returns a copy of a string with no trailing spaces    
    SPACE   Returns a string with a specified number of spaces    
    SPLIT   Returns a zero-based, one-dimensional array containing a specified  
number of substrings
    STR   Returns a string representation of a number    
    TRIM   Returns a string without leading and spaces and replaces multiple spaces with a
single space
    UCASE   Converts a string to        
uppercase
    VAL   Returns the numbers contained in a string    
                       
  Numeric                
    ABS   Returns the absolute value of a number      
    EXP   Returns the base of the natural logarithms (e) raised to a power  
    FIX     Returns the integer portion of a      
number
    FORMAT numbers Returns an expression in a particular format    
    INT   Returns the integer portion of a      
number
    LOG   Returns the natural logarithm of a number    
    RND   Returns a random number between 0 and 1    
    ROUND Rounds a number to a specific number of decimal places    
    SQR   Returns the square root of a number      
                       
  Information              
    ISDATE   Returns True if a variable is a date      
    ISERROR Returns True if an expression is an error value    
    ISNULL   Returns True if an expression contains no valid data    
    ISNUMERIC Returns True if an expression can be evaluated as a number    
                       
  Date and Time              
    DATE   Returns the current system date      
    DATEADD Returns a date with a specific date interval added to it    
    DATEDIFF Returns the difference between two dates as a time interval    
    DATEPART Returns an integer containing a specific part of a date    
    DATESERIAL Returns a date for a specified year, month, and day    
    DATEVALUE Converts a string to date        
    DAY   Returns the day of the month of a date      
    FORMAT dates Returns an expression in a particular format    
    HOUR   Returns the hour of a time        
    MINUTE Returns the minute of a        
time
    MONTH Returns the month of a        
date
    MONTHNAME Returns a string indicating the specified month    
    NOW   Returns the current system date and time    
    TIMESERIAL Returns the time for a specified hour, minute, and second    
    TIMEVALUE Converts a string to a time serial      
number
    WEEKDAY Returns a number representing a day of the week    
    WEEKDAYNAME Returns a string indicating the specified weekday    
    YEAR   Returns the year of a date        
                       
  Lookup                  
    CHOOSE Selects and returns a value from a list of arguments    
    SWITCH Evaluates a list of expressions and returns a value associated with the first
expression in the list that is True
                       
  Data Type Conversion              
    CBOOL   Converts an expression to Boolean data type    
    CDATE   Converts an expression to date data type    
    CDBL   Converts an expression to double data type    
    CLNG   Converts an expression to long data      
type
    CSTR   Converts an expression to string data type    
    CVAR   Converts an expression to variant data type    
                       
  Financial                
    FV     Returns the future value of an annuity based on periodic, fixed payments
and a fixed interest rate
    IPMT   Returns the interest payment for a given period of an annuity based on
periodic, fixed payments and a fixed interest rate
    IRR     Returns the internal rate of return for a series of periodic cash flows
(payments and receipts)
    NPER   Returns the number of periods for an annuity based on periodic, fixed
payments and a fixed interest rate
    NPV   Returns the net present value of an investment based on a series of periodic
cash flows (payments and receipts) and a discount rate
    PMT   Returns the payment for an annuity based on periodic, fixed payments  
and a fixed interest rate
    PV     Returns the present value of an annuity based on periodic, fixed  
payments to be paid in the future and a fixed interest rate.
    RATE   Returns the interest rate per period for an annuity    
                       

Function Description
ADDRESS Returns a reference as text to a single cell in a worksheet
COLUMN Returns the column number of a reference
COLUMNS Returns the number of columns in a reference
ROW Returns the row number of a reference
ROWS Returns the number of rows in a reference
INDIRECT Returns a reference indicated by a text value
VLOOKUP Looks in the first column of an array and moves across the row
to return the value of a cell
HLOOKUP Looks in the top row of an array and returns the value of the
indicated cell
INDEX Uses an index to choose a value from a reference or array
MATCH Looks up values in a reference or array
TRANSPOSE Returns the transpose of an array

You might also like