Dazzawm
Well-known Member
- Joined
- Jan 24, 2011
- Messages
- 3,647
- Office Version
- 365
- Platform
- Windows
I have a file with a list of part numbers in column A on sheet 2. I need the code to look for these numbers on sheet 1 in column AC. When the number is found I need it to look at the earliest start year in column O where it appears and the latest end year in column Q then put in column B next to it on sheet 2.
Using just one part number as an example the very earliest year it appears on sheet 1 is 1974 and the very latest is 1990 so the result next to it would be 74-90 in column B then it would move onto the next number and so on...
Thanks
Using just one part number as an example the very earliest year it appears on sheet 1 is 1974 and the very latest is 1990 so the result next to it would be 74-90 in column B then it would move onto the next number and so on...
Thanks
Excel Workbook | |||||||||
---|---|---|---|---|---|---|---|---|---|
M | N | O | P | Q | AC | AD | |||
2 | 06 | 1983 | 05 | 1987 | AXRAD60010 | ||||
3 | 06 | 1983 | 11 | 1990 | AXRAD60010 | ||||
4 | 10 | 1990 | 01 | 1993 | NYA | ||||
5 | 05 | 1987 | 08 | 1990 | AXRAD60010 | ||||
6 | 06 | 1990 | 10 | 1994 | NYA | ||||
7 | 09 | 1980 | 03 | 1986 | NYA | ||||
8 | 06 | 1986 | 09 | 1989 | NYA | ||||
9 | 09 | 1987 | 01 | 1993 | NYA | ||||
10 | 06 | 1986 | 10 | 1987 | NYA | ||||
11 | 10 | 1987 | 01 | 1993 | NYA | ||||
12 | 01 | 2007 | 12 | 2009 | NYA | ||||
13 | 01 | 1985 | 10 | 1987 | NYA | ||||
14 | 05 | 1974 | 01 | 1978 | AXRAD60010 | ||||
15 | 08 | 1977 | 04 | 1984 | AXRAD60010 | ||||
16 | 09 | 1978 | 04 | 1984 | AXRAD60010 | ||||
17 | |||||||||
18 | |||||||||
19 | |||||||||
20 | Earliest year so takes 74 | ||||||||
21 | |||||||||
22 | Latest year so takes 90 | ||||||||
23 | |||||||||
Sheet1 |
Excel Workbook | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Part | Year | |||
2 | AXRAD60010 | 74-90 | Result from sheet 1 | ||
3 | |||||
Sheet2 |