Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Koen
 
Posts: n/a
Default Assigning scores to a date range

Dear reader

I am trying to set up a function that identifies if the date or value of a
certain customer is in a pre-defined target range to give it a score from 1
to 5. For example, if last time the customer bought something before 01/01/05
he will be assigned a score 1, did he buy something before 01/03/05 (but
after 01/01/05) he will be assigned a score 2 etc. Do you know the function
for that in Excel?

Date range=

<01/01/2005
= 01/01/2005 and <01/03/2005
= 01/03/2005 and <01/05/2005
= 01/05/2005 and <01/07/2005
= 01/07/2005 and <01/09/2005


I was also thinking about having this model updated regularly so built in a
function like: if the customer bought track(s) in the last month, assign
score 1. This way the model is dynamic.

Thanks,
Koen


  #2   Report Post  
Stefi
 
Posts: n/a
Default Assigning scores to a date range


Set up this table in sheet Daterange
A B
1/1/1900 1 lowest Excel date
1/1/2005 2
1/3/2005 3
1/5/2005 4
1/7/2005 5

In another sheet
A1: date of last purchase
A2-...: purchase dates
B1: Score
B2: =VLOOKUP(A2,Daterange!$A$1:$B$5,2) and fill down as necessary!

Regards,
Stefi


€˛Koen€¯ ezt Ć*rta:

Dear reader

I am trying to set up a function that identifies if the date or value of a
certain customer is in a pre-defined target range to give it a score from 1
to 5. For example, if last time the customer bought something before 01/01/05
he will be assigned a score 1, did he buy something before 01/03/05 (but
after 01/01/05) he will be assigned a score 2 etc. Do you know the function
for that in Excel?

Date range=

<01/01/2005
= 01/01/2005 and <01/03/2005
= 01/03/2005 and <01/05/2005
= 01/05/2005 and <01/07/2005
= 01/07/2005 and <01/09/2005


I was also thinking about having this model updated regularly so built in a
function like: if the customer bought track(s) in the last month, assign
score 1. This way the model is dynamic.

Thanks,
Koen


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get an IF statement to pull a date range?? Brooke Medvecky Excel Worksheet Functions 9 April 19th 06 08:48 PM
Date Range and calculation vgreen Excel Worksheet Functions 2 August 23rd 05 11:08 AM
Update cell based on date range deversole Excel Discussion (Misc queries) 3 July 6th 05 01:58 PM
Count cells based on date range in another column [email protected] New Users to Excel 1 May 5th 05 08:11 PM
adding occurrences for date range Mike Excel Discussion (Misc queries) 0 April 8th 05 11:33 PM


All times are GMT +1. The time now is 10:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"