T
Tom Bock
I need to do some data cleanup... this appears to be a "tricky" process
though.
I have 2 columns (A and B). Any cell in column A might contain a long (or
short) string (see sample data below between ****s)
****** SAMPLE DATA *****************
Cell A1:
1.1.1. Provide and facilitate the conduct of Training 2.1.5. Enhance
consultation command and control 3.1. Enhance Alliance Interoperability
including through Standardization 4.1. Enhance the interoperability
Cell A2:
1.2 Conduct Training
Cell A3
2 Do this 2.1.5. Do that
***********************
The text value in column B is mostly short (e.g. "Coordinating all
Functional Area Specialty Education and Training.") and is of no particular
importance.
Here's what I need to achieve (column A):
- "Read" the cells in column A
- "Recognize" that the string in cell A1 contains 4 "numeric values" (1.1.1,
2.1.5, 3.1, & 4.1 -- there might be odd spacing or even tabs between these)
- Because of the 4 numeric values
-- insert 3 rows (below row 1) and copy/paste row 1 three times (so I end
up with 4 identical entries), then
- in cell A1, overwrite the long string (as listed above the ***s) with
"1.1.1"
- in cell A2, overwrite the long string (as listed above the ***s) with
"2.1.5"
- in cell A3, overwrite the long string (as listed above the ***s) with
"3.1"
- in cell A4, overwrite the long string (as listed above the ***s) with
"4.1"
However, no action is required with A5 (used to be cell reference A2 --
between the ***s) since it only contains
one numeric value ("1.2 Conduct Training").
Lastly, row 6 (old cell ref A3 -- "2 Do this 2.1.5. Do that" -- refer to
example between ***s) must be treated just like the other example, except
that only 2 numeric values should be recognized and therefore only 1
identical row must be inserted, copied/pasted, and overwritten with "2" &
"2.1.5" in A6 & A7, respectively.
Does anyone know how to tackle this problem???
Thanks, I appreciate any feedback!!!
Tom
though.
I have 2 columns (A and B). Any cell in column A might contain a long (or
short) string (see sample data below between ****s)
****** SAMPLE DATA *****************
Cell A1:
1.1.1. Provide and facilitate the conduct of Training 2.1.5. Enhance
consultation command and control 3.1. Enhance Alliance Interoperability
including through Standardization 4.1. Enhance the interoperability
Cell A2:
1.2 Conduct Training
Cell A3
2 Do this 2.1.5. Do that
***********************
The text value in column B is mostly short (e.g. "Coordinating all
Functional Area Specialty Education and Training.") and is of no particular
importance.
Here's what I need to achieve (column A):
- "Read" the cells in column A
- "Recognize" that the string in cell A1 contains 4 "numeric values" (1.1.1,
2.1.5, 3.1, & 4.1 -- there might be odd spacing or even tabs between these)
- Because of the 4 numeric values
-- insert 3 rows (below row 1) and copy/paste row 1 three times (so I end
up with 4 identical entries), then
- in cell A1, overwrite the long string (as listed above the ***s) with
"1.1.1"
- in cell A2, overwrite the long string (as listed above the ***s) with
"2.1.5"
- in cell A3, overwrite the long string (as listed above the ***s) with
"3.1"
- in cell A4, overwrite the long string (as listed above the ***s) with
"4.1"
However, no action is required with A5 (used to be cell reference A2 --
between the ***s) since it only contains
one numeric value ("1.2 Conduct Training").
Lastly, row 6 (old cell ref A3 -- "2 Do this 2.1.5. Do that" -- refer to
example between ***s) must be treated just like the other example, except
that only 2 numeric values should be recognized and therefore only 1
identical row must be inserted, copied/pasted, and overwritten with "2" &
"2.1.5" in A6 & A7, respectively.
Does anyone know how to tackle this problem???
Thanks, I appreciate any feedback!!!
Tom