VBA InputBox – How to Use

In an earlier post, we have talked about MsgBox which is exactly opposite to VBA InputBox. The job of the InputBox function in VBA is to get some input from the user. It displays a dialog to the user that gives him a cue of which value should be entered, then it returns this value to the program.Syntax of InputBox in VBAIts syntax is as … [Read more...]

VBA Select Case Statement – Explained

In our previous posts, we have talked about Excel If Statement and Excel Nested If’s, and in today’s post we will discuss VBA select case statement. VBA Select Case can be used instead of complex Excel Nested If statements. This makes the VBA code faster to execute and easier to understand.Select-Case statement (also called as Switch Case in … [Read more...]

Excel Relative and Absolute References – Explained

In our last post about Finding duplicates in Excel, we created a clever formula to find only single instance of a duplicate value using the concept of Excel absolute references. In that post, we were unable to discuss further Absolute and Relative references, but today we will understand what these references mean.Excel Relative … [Read more...]

VBA InStr and InStrRev – How to Use

As the name suggests VBA InStr function looks for a substring embedded inside another string and then returns its starting position.  If it cannot find the string inside the parent string then it returns 0. It is a very important function among the string functions in VBA. It is probably the best function to perform string search … [Read more...]

Excel Nested If’s – Explained

In our last post, we talked about the IF Statement, which is one of the most important functions in Excel.  The limitation of the IF statement is that it has only two outcomes. But if you are dealing with multiple conditions then Excel Nested If’s can come in very handy.Nested if’s are the formulas that are formed by multiple if statements one … [Read more...]

Excel COUNTIF Function – How to Use

As the name suggests Excel COUNTIF Function is a combination of Count and IF formula. In plain English, COUNTIF Function can be described as a formula that can be used for counting the number of cells that fulfill a particular condition, within a predefined range.How Excel Defines COUNTIF FunctionMicrosoft Excel defines COUNTIF as a formula … [Read more...]

SUM Function in Excel – How to Use

SUM Function is a very popular and useful formula in Microsoft Excel. It is one of the most basic, widely used, and easy to understand arithmetic functions in Excel. As the name suggests SUM Function in Excel performs the addition of numbers. Sum Function can accept numbers both as individual arguments and also as a complete range of cells.How … [Read more...]

Excel MID Function – How to Use

Excel MID function is a replica of the substring function that you may have studied in programming languages. In simple words, this formula is used to extract a small part of the string from the input string or we can also define it as a function that returns a specified number of characters from the supplied string.How Excel defines MID … [Read more...]