Step 1: Understand and practice the individual excel functions thoroughly
Step 2: Split the problem statement into N number of small pieces.
Step 3: Use individual functions to solve the small piece of problem statement.
Step 4: Combine all the functions step by step by expansion.
This procedure will help to solve any complex problem, by using simple step by step method. You can create any kind of complex excel function.