Formula to apply sequential value - based on category and ordered by date

ExcelVictoria

New Member
Joined
Nov 7, 2022
Messages
1
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
Hello,

I would appreciate your help with the formula or VBA code for the following function.

In the 'Used/unused item number' column I need to apply a sequence of numbers.

If the item in the 'Used/Unused' column is 'Used' the formula should by order of 'Date' apply the sequence from the location 'Data entry'!I1:I300. This looks for example as follows:


E1
E2
E3
E4
E5

If the item in the 'Used/Unused' column is 'Unused' the formula should by order of 'Date' apply the sequence from the location 'Data entry'!H1:H300. This looks for example as follows:



UM1
UM2
UM3
UM4
UM5

ItemDateUsed/UnusedUsed/unused item numberSensitiveSensitive item numberExhibitedExhibited byRPFile typeLocationRedactionClippingPower
(if applicable)
ContinuityDescription
Example 1
06/11/2022​
UnusedNoN/AExample personYesNiche wordNiche occ reportsWith ASAsN/AN/AN/A
Example 2
07/11/2022​
UsedYesYesExample personYesPDFNiche case fileRedactedN/AN/AN/A
Example 3
05/11/2022​
UnusedNoN/AExample personNoVideoNICEN/AN/AN/AN/A

Finally, in the 'Sensitive item number' column I need to apply a sequence of numbers.
If the item in the 'Sensitive' column is 'Yes' the formula should by order of 'Date' apply the sequence from the location 'Data entry'!J1:J300. This looks for example as follows:


S1
S2
S3
S4
S5

Many thanks in advance for your help! Much appreciated :)
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,224,817
Messages
6,181,147
Members
453,021
Latest member
Justyna P

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