Automatically enter a fix value based on ranking of customers while keeping the historical data

Helena123

New Member
Joined
Dec 2, 2021
Messages
11
Office Version
  1. 365
Platform
  1. Windows
I have a list of 100 customers which are ranked from 1 to 100.
  • Those are from 1 to 50 should have 2 customer visits per year, the second visit is 6 months after first visit. Customer ranked 1 has visits in Jan and Jun, customer ranked 2 has visits in Feb and Jul, customer ranked 3 has visits in Mar and Aug, customer ranked 8 has visits in Jan and Jun. The same applied to the others in top 50 as shown in below screenshot

Screenshot 2022-08-31 140527.png


  • Those are from 51 to 100 should have 1 customer visit per year. Customer whose rank 51 has a visit in Jan, customer whose rank 52 has a visit in Feb, customer whose rank 53 has a visit in Mar so on

Screenshot 2022-08-31 140817.png


The list is subject to change every 2 months. Instead of manually updating the customer visits, I try to build a formula to automatically show "1" to indicate a customer visit in a specific month based on the its ranking. Two scenarios might cause error:

  • Scenario 1: a customer falls out of top 50 (reduce from 2 visits to 1 visit). Take customer ranked 21 (visits in Jul and Dec) as an example, if this one decide to decrease their buying significantly and next time updating the list, it will be ranked 56, then the sheet should still only show the visit in Jul which was something done in the past, instead of having the visit in Jun
  • Scenario 2: a customer goes into top 50 (have 1 more visit scheduled in). This scenario is easier, let's say customer ranked 70 becomes the 10th biggest customer then in addition to the visit planned for Aug 2022, there should be 1 more planned for Jan 2023.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,214,915
Messages
6,122,212
Members
449,074
Latest member
cancansova

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