Mark Adjacent Column if Before or After Reference Date

paulfitz320

Board Regular
Joined
Jan 6, 2007
Messages
126
Office Version
  1. 365
Platform
  1. Windows
Hi,

Stuck with this, would appreciate some help please.

I need a formula for COLUMN I

Start at COL D (Horse) then go across to...
COL H - If it contains a 1 for that horse leave adjacent cell in COL I blank
COL H - If it contains a 2 for that horse put a 4 in COL I (If the date in COL B is AFTER the date where the 1 occured in COL H for that horse)
COL H - If it contains a 2 for that horse put a 3 in COL I (If the date in COL B is BEFORE the date where the 1 occured in COL H for that horse)

wpm hurdles won hurdles debut sp less then 9to2.xlsx
ABCDEFGHI
1CourseDateTimeHorseFin PosHurdle Runs BeforeRace Typehurdle debut ynAfter 1 Next Door
2Punchestown27/04/202117:55Adamantly Chosen10NHF23
3Fairyhouse27/11/202113:01Adamantly Chosen20Hurdle1
4Cork08/01/202213:03Adamantly Chosen21Hurdle24
5Thurles10/02/202214:55Adamantly Chosen12Hurdle24
6Cheltenham18/03/202217:30Adamantly Chosen113Hurdle24
7Punchestown30/04/202217:30Adamantly Chosen44Hurdle24
8Galway28/07/202217:05Adamantly Chosen135Hurdle24
9Listowel19/09/202217:05Adamantly Chosen16Chase24
10Punchestown12/10/202215:55Adamantly Chosen16Chase24
11Fairyhouse04/12/202213:55Adamantly Chosen56Chase24
12Limerick26/12/202214:40Adamantly Chosen26Chase24
13Leopardstown05/02/202313:40Adamantly Chosen26Chase24
14Cheltenham15/03/202314:10Adamantly Chosen76Chase24
15Fairyhouse09/04/202316:55Adamantly Chosen66Chase24
16Punchestown28/04/202316:15Adamantly ChosenPU6Chase24
17Killarney19/08/202216:05Aghaboy20Hurdle1
18Ballinrobe09/09/202215:50Aghaboy11Hurdle24
19Listowel18/09/202214:10Aghaboy12Hurdle24
20Fairyhouse04/12/202212:25Aghaboy73Hurdle24
21Leopardstown26/12/202213:10Aghaboy74Hurdle24
22Galway03/08/202317:40Aghaboy135Turf24
Sheet1
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,224,820
Messages
6,181,154
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