Generating item codes

It is a common practice in domestic retail outlets to keep a large number of items under one code. In fact, it is one item, but its additional attributes are not taken into account, such as: color, size, design, season … Consequently, the stocks are incorrect. How to form item codes in such a way that, within the code itself, all its attributes are taken into account? We will use permutations!

Dynamic lists

So far, you have been able to read several “recipes” on this blog which were about Data Validation and lists. Office365 (Microsoft365) subscription users have access to dynamic array functions that easily handle variable-length lists. But what should users with an older version of Excel do? In the text that follows, you will learn how to solve this problem with the help of the named ranges, OFFSET and COUNTA functions.

Parallel periods

The Power Pivot add-in allows you to make different calculations depending on the time period in which the sales occurred, by writing formulas in DAX language. To use these features you need to have one of the latest versions of Microsoft Office Pro Plus. Since many do not have this feature, it remains only to deal with the traditional lookup functions about which application I’ll write in following „recipe“.

How to mix apples & oranges?

The term “mixed apples and oranges” is used to describe attempts to link some completely incompatible things. In Excel this often refers to making a strange conglomerate of a Pivot and traditional table. I personally never recommend it, but there are times when such reports are still necessary. With some ingenuity and little help of GETPIVOTDATA and OFFSET functions we’ll be able “to mix apples and oranges”. None of the above were hurt during the process!

Searching the ranges

The search of data ranges is most often done with the help of LOOKUP functions, where we enter the  criteria value, the search range (table) and the column containing the result values. After entering the formula, Excel finds and displays the requested value. There are several more ways to search the ranges when it is done relative to their position, which will be discussed more in the text that follows …