Excel VBA formulas for Spreadsheet by Sharath Kumar Peechara - HTML preview
PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.
Download the book in PDF, ePub, Kindle for a complete version.
Exercise 21: Function with Case Insensitive
- Create a UDF Hedqtrs( User Defined Function)
To create this Function, execute the following steps
- Open Excel VBA (Alt + F11)
- Insert a New Module
- In the Project Explorer, double click on the Module
- Add the following code line:

This Code lines will create function Hedqtrs() , In Cell B1 Type
= Hedqtrs( (A1)

2. Use Excel Formulas (IF,PROPER)
Syntax
IF(logical_test, value_if_true, [value_if_false])
PROPER(text)
Use (IF,PROPER) function together, In Cell B1 Type
=IF(PROPER(A1)="City","NEWYORK"," ")
