With an office full of accounting professionals that spend more time in Excel than we’d like to admit to ourselves, we’ve racked up quite the toolbox of best practices in the program. We’re excited to share this wealth of knowledge with you. Because Excel isn’t simply a tool for accountants, we hope you’ll find these hacks helpful within your own industries, roles and workplaces.
Last month, our team members, Travis Aguirre and Lee Gyomlai, shared hacks surrounding “Center Across Selection” and “Go To Special.” Take a look here.
This month, based on common questions we’ve received from our clients lately, we bring you “Subtracting Dates” from Lee and “IndexMatch” from Travis.
Have you ever been frustrated by Excel’s solution to subtracting dates, by only providing you with the number of days? This tool allows you to know the exact number of days, months or years between two dates, instead of simply days.
Why use it?
Subtracting dates is an excellent Excel tool to calculate depreciation. More so, this tool allows you to do so efficiently and accurately.
While subtracting dates doesn’t have any major limitations, you may occasionally run into slight rounding differences with special circumstances like leap years.
Steps to subtract dates:
Here, the value, 2921, is the result, which is the number of days between values A and B.
This formula figures out the number of years, multiplies them by 12 and then takes the remainder of the months and adds the two results.
While “vlookup” (or vertical lookup) is the most commonly used lookup tool, once you’ve mastered it, the “index()” and “match()” functions can be used, in conjunction, to create an even more powerful lookup tool. For instance, if you’re interested in looking up certain data, such as produce prices, within a larger spreadsheet that includes prices for all food your business sells, IndexMatch allows you to dictate what you want to look up and where (which column) you will find the price.
Why use it?
Especially when compared to “vlookup,” IndexMatch provides the following benefits:
Overall, IndexMatch is more dynamic than the commonly-used “vlookup” as it will update itself as you remove or add columns and/or rows within your Excel worksheet.
The two-step process involved with “index()” and “match()” can be more difficult to master when compared to vlookup or hlookup.
Understanding the functions:
The “index” function is used to return a value from with a table or range.
The “match” function searches for a specified item in a range of cells, and then returns the relative position of that item in the range.
The following shows similarities between the familiar vlookup and the not so familiar IndexMatch. The values highlighted in the same color are essentially asking for the same information.
=vlookup(lookup_value, table_array, col_index_num, range_lookup)
=index(array, match(lookup_value, lookup_array, match_type)
See how easy it is? Time to see how IndexMatch will help you!