Assigning scores based on how long ago something happened, stuck on formula

blackrose91

New Member
Joined
Jul 17, 2018
Messages
4
I’m trying to use a bunch of if / and statements to work on the following problem but it isn’t really getting me anywhere.
The premise of what I’m working on is that certain things have taken place in the past, and depending on how long ago it happened, it gets a certain score.

- If it happened in 2018 it gets a score of 10.
- If it happened 1-3 years ago it gets a score of 20.
- If it happened 4-7 years ago it gets a score of 30.
- If it happened 8 or more years ago it gets a score of 40.

So I have in column “A” a list of the different types of events that have taken place. In column B the date they took place, and in column C, I’m trying to put in the scores.

If just can’t seem to make a formula that does what I’m after and the inclusion of working out how long ago something happened is really confusing me.


Any help would be hugely appreciated !
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Cross posted https://www.excelforum.com/excel-fo...-ago-something-happened-stuck-on-formula.html

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0
Maybe something like this?

ABCD
1EventDateScore
212/20/201910
327/1/201810
431/1/201820
541/1/201530
654/5/201040
768/1/200040

<tbody>
</tbody>
Sheet5

Worksheet Formulas
CellFormula
C2=LOOKUP(DATEDIF(B2,TODAY(),"y"),{0,1,4,8},{10,20,30,40})

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,433
Members
448,897
Latest member
ksjohnson1970

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top