How to do a linear decay in excel?

I would like to implement a line decay model in excel.

Here is how it is. This is going to be used in attribution of weights or credits to different touchpoints for a user who visits a particular website through multiple channel.

So, if there are 5 interactions. Then, let's say that the total credit it just distributed to all the interactions (5) equally. This would mean that each gets 20% of the credit for that conversion (sale).

But let's say that the 4th interaction was of a certain type (direct visit) and I need to take that credit and distribute it to the previous 3 interactions in a (reverse) linear decay model.

This means that the 3rd interaction would get the highest and then, the 2nd would get lower and the 1st would get the lowest.

This type of model should be applied for any number of interactions and for any position (of the direct visit).

How do I do this?
smuralisankarAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

FlysterCommented:
Could you provide a sample of the result you're looking for?

Flyster
0
smuralisankarAuthor Commented:
ok. Let's just say that there are 5 interactions.

The 4 interactions that came before the 5th are all channels. The last (5th) one is a direct interaction.

The weights are distributed equally - so 20% to each interaction.

The weight of the last direct interaction (20%) is taken and distributed to the ones before it.

For ex:
Interaction 1:
20%

Interaction 2:
20%

Interaction 3:
20%

Interaction 4:
20%

Interaction 5:
20%

Then, The final result would be:
Interaction 1:
21.5%

Interaction 2:
23.5%

Interaction 3:
25%

Interaction 4:
30%

Interaction 5:
20%

We got there by doing this:
Interaction 1:
20%
+ 1.5%

Interaction 2:
20%
+ 3.5%

Interaction 3:
20%
+ 5%

Interaction 4:
20%
+ 10%

Interaction 5:
20%
- 20%
0
Martin LissOlder than dirtCommented:
I've requested that this question be deleted for the following reason:

The question has either no comments or not enough useful information to be called an "answer".
0
FlysterCommented:
My apologizes, I didn't see your response. Please see the attached. In cell D2 is a dropdown. Select the number of interactions. Once selected, the weights will auto-populate. For each interaction there is a "direct" radio button. Selecting a radio button will redistribute that interaction's weight to the previous interactions.
Distribution.xls
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.