Formula for assigning value (before, during, or after) based on unique events by row?

TorontoRaps

New Member
Joined
Nov 20, 2022
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
Hi all,

I'm sorry the title of this post isn't clear, but I'm having a hard time articulating this (hopefully my screenshot will help).

I'm really struggling to come up with a formula to decipher when a unique event (column c) happens to a unique ID (column a), and then generate a label whether that event is before, during, or after the unique event (in column d). I'm hoping what I wrote out in column d could be automatically generated using this formula.

So far I've just been doing this manually but there are thousands of rows.

Thank you in advance for any help I can get.
 

Attachments

  • Excel Example.png
    Excel Example.png
    44.6 KB · Views: 7

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Toronto, at a minimum using XL2BB might get other members to help. So now the questions. Are the 2 data sheets what you want? In other words, the input data sheet is only missing before, during or after, while ID, Date and Unique Event are filled in. And how about the date. Is the during date always going to be 06/12/2021? And if there is one ID then that will be during? Let's get the ball rollin, we have to start some place.


22-11-20 work 1.xlsx
ABCD
1IDDateUnique EventEvent
2103/04/2021NO
3106/12/2021YES
4109/04/2021NO
5112/12/2021NO
6203/04/2021NO
7206/12/2021YES
8209/04/2021NO
9312/12/2021YES
10403/04/2021YES
11406/12/2021NO
12409/04/2021NO
13412/12/2021NO
14503/04/2021NO
15506/12/2021YES
16509/04/2021NO
17512/12/2021NO
Data input


22-11-20 work 1.xlsx
ABCD
1IDDateUnique EventEvent
2103/04/2021NOBefore
3106/12/2021YESDuring
4109/04/2021NOAfter
5112/12/2021NOAfter
6203/04/2021NOBefore
7206/12/2021YESDuring
8209/04/2021NOAfter
9312/12/2021YESDuring
10403/04/2021YESDuring
11406/12/2021NOAfter
12409/04/2021NOAfter
13412/12/2021NOAfter
14503/04/2021NOBefore
15506/12/2021YESDuring
16509/04/2021NOAfter
17512/12/2021NOAfter
Data output
 
Upvote 0

Forum statistics

Threads
1,214,520
Messages
6,120,013
Members
448,935
Latest member
ijat

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