Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,564
- Office Version
- 365
- 2016
- Platform
- Windows
I am looking for some help with a VBA based process.
I have a worksheet in which there are several groups of different data. The groups are defined by their sorted values in column R. Their are groups of "D", "F", "C" etc. with each group holdinf a dynamic number of rows (if any). The groups are separated by blank rows.
What I need to do is assess the values in column B of only the "D" section, and merge those cells in column B, that have equal values.
For example ... starting data:
Would result in:
I have a worksheet in which there are several groups of different data. The groups are defined by their sorted values in column R. Their are groups of "D", "F", "C" etc. with each group holdinf a dynamic number of rows (if any). The groups are separated by blank rows.
What I need to do is assess the values in column B of only the "D" section, and merge those cells in column B, that have equal values.
For example ... starting data:
WS 29-May-23.xlsx | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | |||
2 | data | <7:30P | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | ||
3 | data | <7:30P | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | ||
4 | data | <7:30P | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | ||
5 | data | <8:00P | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | ||
6 | data | <9:15P | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | ||
7 | data | <9:15P | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | ||
8 | data | <10:00P | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | ||
9 | data | <10:00P | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | ||
10 | data | <10:00P | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | ||
11 | data | <11:00P | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | ||
12 | ||||||||||||||||||||
13 | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | F | |||
14 | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | F | |||
15 | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | F | |||
16 | ||||||||||||||||||||
17 | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | C | |||
18 | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | C | |||
19 | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | C | |||
Sheet20 |
Would result in:
WS 29-May-23.xlsx | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | |||
2 | data | <7:30P | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | ||
3 | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | |||
4 | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | |||
5 | data | <8:00P | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | ||
6 | data | <9:15P | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | ||
7 | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | |||
8 | data | <10:00P | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | ||
9 | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | |||
10 | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | |||
11 | data | <11:00P | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | D | ||
12 | ||||||||||||||||||||
13 | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | F | |||
14 | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | F | |||
15 | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | F | |||
16 | ||||||||||||||||||||
17 | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | C | |||
18 | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | C | |||
19 | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | C | |||
Sheet20 |