Compute Day Sales Outstanding (DSO)

{46 Comments}

A financial concept, Day Sales Outstanding (DSO), is a measure of the average number of days that a company takes to collect revenue  after a sale has been made.   For further clarification, read here.

Herein, i have presented the solution for two different data layouts.  Further, Layout 2 has two further divisions - one for computing Day Sales Outstanding (DSO) based on historical sales and the other for computing Days of Supply (DOS) based on future Cost of Good Sold (COGS).

You may refer to my solution in this workbook.

Conditional testing without lengthy nested IF functions

{0 Comments}

Many a times writing nested IF() statements become cumbersome, lengthy and highly prone to errors. 

In worksheet named "Question", one would like to avoid using spare columns for computation of landed value for the three product sources ("CKD", "LMP", "IMP").  While one can use a nested IF() statement, it would be unmanageable because of the length of the formula.

One can have the computations for "CKD", "IMP" and "LMP" reside in a table and then refer to that table within formulas?

You may refer to my solution in this workbook.

You may refer to another example in this workbook.

Determine weekday after factoring in user specified holidays

{0 Comments}

Given a certain beginning date and specified number of days, one may want to determine the ending date (beginning date plus number of days).  When determining the ending date, the following two cases should be considered

Case 1

Holidays are:

1. Sundays only; and

2. User specified public holidays

Case 2

Holidays user specified public holidays only.  Saturdays and Sundays are working days

If the landing date is any of the two holidays, the result should be the next working day.

You may refer to my solution in this workbook.

Sequencing using advanced filters

{0 Comments}

Assume a three column database of Article Number, Size and Quantity.  The size column may have five sizes - Small, Medium, Large, XL and XXL.  Not all sizes will be available for every article number.  The task is to create a three column database in another worksheet, which shows only those article numbers having all five sizes and their respective quantities.

You may refer to the source data and solution in this workbook.

Depending upon the version of MS Excel which you are using, there could be two ways to solve this problem

Solution for MS Excel 2010 and higher versions

If you are using the Power Query add-in, then a few simple steps (no formulas at all) can solve this problem.  The result will be dynamic and refreshable (just as in a Pivot Table).

Solution for all versions of MS Excel

This solution uses the SUMPRODUCT() and Advanced Filters.

Dynamically extract unique values with multiple conditions

{8 Comments}

Assume there are two columns with data repeated in all both columns.  One may wan to extract the unique text values from a specific column based on conditions specified by end-user.

Depending upon the version of MS Excel which you are using, there could be two ways to solve this problem

Solution for MS Excel 2010 and higher versions

If you are using the Power Query add-in, then a few simple steps (no formulas at all) can solve this problem.  The result will be dynamic and refreshable (just as in a Pivot Table)

Solution for all versions of MS Excel

While this solution works for all versions of MS Excel, it uses an array formula (Ctrl+Shift+Enter).  Array formulas, if used extensively in the workbook, adversely effect the system's performance.

You may refer to my solution in this workbook.