Hi, we are trying to find which cells in Column D are within 3 non-blank cells of entries in Column B, and mark them up in Column E.
... above and below of the entries in Col B
On the table, we've put Verdict in Col E.
In other words, we are trying to find...
- for the entries in Header-1
- where the next 3 non blank cells in the Info Column (D) are
- both above and below
- And mark those cells in the Verdict Column (E)
eg Cell E2 and E3 will not be marked because...
- the nearest entry in Header-1 is in cell B10
- and the nearest entries in Info Column D (so above cell D10) are D8, D6 and D4
- therefore cells E8, E6 and E4 are marked to be included in the Verdict Column (E)
I've tried searching for "next non-blank cells", "offsets" and all sorts but I'm going around in circles...
Wondered if somebody could take a look?
Thanks
... above and below of the entries in Col B
On the table, we've put Verdict in Col E.
In other words, we are trying to find...
- for the entries in Header-1
- where the next 3 non blank cells in the Info Column (D) are
- both above and below
- And mark those cells in the Verdict Column (E)
eg Cell E2 and E3 will not be marked because...
- the nearest entry in Header-1 is in cell B10
- and the nearest entries in Info Column D (so above cell D10) are D8, D6 and D4
- therefore cells E8, E6 and E4 are marked to be included in the Verdict Column (E)
I've tried searching for "next non-blank cells", "offsets" and all sorts but I'm going around in circles...
Wondered if somebody could take a look?
Thanks
mark-up-if-within-5-rows-above-or-below-which-are-NOT-blank.xlsm | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Row | Header-1 | Header-2 | Info | Verdict | ||
2 | 2 | ALPHA | Info | ||||
3 | 3 | beta | Is | ||||
4 | 4 | Charlie | Scattered | y | |||
5 | 5 | 57 | |||||
6 | 6 | 94 | Throughout | y | |||
7 | 7 | Delta 50 | |||||
8 | 8 | Echo | Here | y | |||
9 | 9 | Foxtrot | |||||
10 | 10 | Golf | Golf | ||||
11 | 11 | Hotel | |||||
12 | 12 | India | |||||
13 | 13 | One | |||||
14 | 14 | Two | Two | ||||
15 | 15 | 1 | With | y | |||
16 | 16 | 2 | |||||
17 | 17 | 3 | Lots | y | |||
18 | 18 | Four | |||||
19 | 19 | Five | Of | y | |||
20 | 20 | Six | |||||
21 | 21 | Juliet | Blanks | ||||
22 | 22 | Kilo | and | ||||
23 | 23 | London | |||||
24 | 24 | Mike | |||||
25 | 25 | November | |||||
Sheet1 (2) |