Noxqss38242
Board Regular
- Joined
- Sep 15, 2017
- Messages
- 225
- Office Version
- 2016
TAB1 "Oil Sample" is master sheet
TAB2 "Data" is the data
Tab 1
column C are unit numbers, ie: 20848, 20364, 17060, 16985, etc...
column B is when the service was done, ie: 1/4/2022, 1/10/2022, 4/3/2022, etc...
Tab 2
column A are the unit numbers, ie: 20848, 20364, 17060, etc...
column B are the dates oil sample was logged, ie: 1/8/2022, 1/15/2022, 2/5/2022, etc...
The units numbers will match, but the dates will NOT, so I was wanting to do a formula that looked for a few things.
1) If the unit in tab1 column c is found on tab2 column a, then...
2) If tab1 column B minus tab2 column B is less than 50, then return "YES", if not, then return "NO".
*50 is just an example of days lapsed, as I don't want too many days between because the unit may show up later in the year for another test.
3) So it must also distinguish the fact that say, 17028 had a sample done in January and again in June and will have multiple date sets.
Possible to do this or is this one too complicated and I should limit my date ranges for it to only look once and not for possible multiple instances?
TAB2 "Data" is the data
Tab 1
column C are unit numbers, ie: 20848, 20364, 17060, 16985, etc...
column B is when the service was done, ie: 1/4/2022, 1/10/2022, 4/3/2022, etc...
Tab 2
column A are the unit numbers, ie: 20848, 20364, 17060, etc...
column B are the dates oil sample was logged, ie: 1/8/2022, 1/15/2022, 2/5/2022, etc...
The units numbers will match, but the dates will NOT, so I was wanting to do a formula that looked for a few things.
1) If the unit in tab1 column c is found on tab2 column a, then...
2) If tab1 column B minus tab2 column B is less than 50, then return "YES", if not, then return "NO".
*50 is just an example of days lapsed, as I don't want too many days between because the unit may show up later in the year for another test.
3) So it must also distinguish the fact that say, 17028 had a sample done in January and again in June and will have multiple date sets.
Possible to do this or is this one too complicated and I should limit my date ranges for it to only look once and not for possible multiple instances?