please help me on function or macro

mgm90210M

Board Regular
Joined
Feb 14, 2013
Messages
92
a1b1c1d1e1
1
reading glasses

<colgroup><col></colgroup><tbody>
</tbody>
2
bifocal reading glasses

<colgroup><col></colgroup><tbody>
</tbody>
3
bifocal reading glasses

<colgroup><col></colgroup><tbody>
</tbody>
4
foster grant reading glasses

<colgroup><col></colgroup><tbody>
</tbody>
5
foster grant reading glasses

<colgroup><col></colgroup><tbody>
</tbody>
6
designer reading glasses

<colgroup><col></colgroup><tbody>
</tbody>
7
designer reading glasses

<colgroup><col></colgroup><tbody>
</tbody>
8
designer reading glasses

<colgroup><col></colgroup><tbody>
</tbody>
9
designer reading glasses

<colgroup><col></colgroup><tbody>
</tbody>
10
designer reading glasses

<colgroup><col></colgroup><tbody>
</tbody>
11
designer reading glasses

<colgroup><col></colgroup><tbody>
</tbody>
12
designer reading glasses

<colgroup><col></colgroup><tbody>
</tbody>

<tbody>
</tbody>
i have 2000 row like this
please i need to divid all of 12 row from a3:a14 to 12 group
i need solution to write automatic in "c" colum from c3:c14
the number of the group

ia am mean from c3 and c4 and in c5 and in c6 to write "grope 1"
and c7 and in c8 and in c9 and in c10 "group 3"
and in c11 and in c12 and in c13 and in c14 write "group 3"
automatic with function or macro



please help me
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Like this maybe?

Excel Workbook
ABC
11reading glassesGroup 1
22bifocal reading glassesGroup 1
33bifocal reading glassesGroup 1
44foster grant reading glassesGroup 1
55foster grant reading glassesGroup 2
66designer reading glassesGroup 2
77designer reading glassesGroup 2
88designer reading glassesGroup 2
99designer reading glassesGroup 3
1010designer reading glassesGroup 3
1111designer reading glassesGroup 3
1212designer reading glassesGroup 3
Sheet1
 
Upvote 0
thanks


i need please one more thing
i need in column e in your table that every group in cell in the middle of the group
that will write "leader word "

i mean in formula that have odd number like 7 and 9 that have a middle like
="Group " & ROUNDUP(A1/5,0)

 
Upvote 0
Like this?

If not it may help for you to post an example of the table with the expected results manually entered.

Excel Workbook
ABCDE
11reading glassesGroup 1 
22bifocal reading glassesGroup 1Leader Word
33bifocal reading glassesGroup 1Leader Word
44foster grant reading glassesGroup 1
55foster grant reading glassesGroup 2
66designer reading glassesGroup 2Leader Word
77designer reading glassesGroup 2Leader Word
88designer reading glassesGroup 2
99designer reading glassesGroup 3
1010designer reading glassesGroup 3Leader Word
1111designer reading glassesGroup 3Leader Word
1212designer reading glassesGroup 3
Sheet1
 
Upvote 0
Or another guess:

Excel Workbook
ABCDE
11reading glassesGroup 1Leader Word
22bifocal reading glassesGroup 1
33bifocal reading glassesGroup 1
44foster grant reading glassesGroup 1
55foster grant reading glassesGroup 2Leader Word
66designer reading glassesGroup 2
77designer reading glassesGroup 2
88designer reading glassesGroup 2
99designer reading glassesGroup 3Leader Word
1010designer reading glassesGroup 3
1111designer reading glassesGroup 3
1212designer reading glassesGroup 3
Sheet1
 
Upvote 0
a1b1c1d1e1
reading wqa

<tbody>
</tbody>

Group 1

<tbody>
</tbody>


<tbody>
</tbody>

1
reading asjk

<tbody>
</tbody>

Group 1

<tbody>
</tbody>

2
sunglass

<tbody>
</tbody>

Group 1

<tbody>
</tbody>

3
reading jkj

<tbody>
</tbody>

Group 2

<tbody>
</tbody>

4
eyeglass

<tbody>
</tbody>

Group 2

<tbody>
</tbody>

5
reading hbhb

<tbody>
</tbody>

Group 2

<tbody>
</tbody>

6
reading knjn

<tbody>
</tbody>

Group 3

<tbody>
</tbody>

7
reading kmk

<tbody>
</tbody>

Group 3

<tbody>
</tbody>

8
reading seas

<tbody>
</tbody>

Group 3

<tbody>
</tbody>

9
reading ***

<tbody>
</tbody>

Group 4

<tbody>
</tbody>

10
reading wkl

<tbody>
</tbody>

Group 4

<tbody>
</tbody>

11
reading ss

<tbody>
</tbody>

Group 4

<tbody>
</tbody>

12
reading ilk

<tbody>
</tbody>

Group 5

<tbody>
</tbody>

13
reading as

<tbody>
</tbody>

Group 5

<tbody>
</tbody>

14
reading qqq

<tbody>
</tbody>

Group 5

<tbody>
</tbody>

15
reading ww

<tbody>
</tbody>

Group 6

<tbody>
</tbody>

16
reading qq

<tbody>
</tbody>

Group 6

<tbody>
</tbody>

17
reading as

<tbody>
</tbody>

Group 6

<tbody>
</tbody>

18

<tbody>
</tbody>



i have 18 word in column a dividing to 6 group
every group have 3 word in that ( 3 is odd number alway will be odd number in every group )
i neet to write in column e for each word if he a leader number
the leader number should be the number in the meddle of each group
like sunglass in a4
or eyeglass in a6

so i need in e4 to write "leader number "
and also in e6



the function or the macro should be consider
that i can change the number of group
and the number of each word in every group
 
Upvote 0
a1b1c1d1e1
reading wqa

<tbody>
</tbody>
Group 1

<tbody>
</tbody>

<tbody>
</tbody>
1
reading asjk

<tbody>
</tbody>
Group 1

<tbody>
</tbody>
2
sunglass

<tbody>
</tbody>
Group 1

<tbody>
</tbody>
3
reading jkj

<tbody>
</tbody>
Group 2

<tbody>
</tbody>
4
eyeglass

<tbody>
</tbody>
Group 2

<tbody>
</tbody>
5
reading hbhb

<tbody>
</tbody>
Group 2

<tbody>
</tbody>
6
reading knjn

<tbody>
</tbody>
Group 3

<tbody>
</tbody>
7
reading kmk

<tbody>
</tbody>
Group 3

<tbody>
</tbody>
8
reading seas

<tbody>
</tbody>
Group 3

<tbody>
</tbody>
9
reading ***

<tbody>
</tbody>
Group 4

<tbody>
</tbody>
10
reading wkl

<tbody>
</tbody>
Group 4

<tbody>
</tbody>
11
reading ss

<tbody>
</tbody>
Group 4

<tbody>
</tbody>
12
reading ilk

<tbody>
</tbody>
Group 5

<tbody>
</tbody>
13
reading as

<tbody>
</tbody>
Group 5

<tbody>
</tbody>
14
reading qqq

<tbody>
</tbody>
Group 5

<tbody>
</tbody>
15
reading ww

<tbody>
</tbody>
Group 6

<tbody>
</tbody>
16
reading qq

<tbody>
</tbody>
Group 6

<tbody>
</tbody>
17
reading as

<tbody>
</tbody>
Group 6

<tbody>
</tbody>
18

<tbody>
</tbody>



i have 18 word in column a dividing to 6 group
every group have 3 word in that ( 3 is odd number alway will be odd number in every group )
i neet to write in column e for each word if he a leader number
the leader number should be the number in the meddle of each group
like sunglass in a4
or eyeglass in a6

so i need in e4 to write "leader number "
and also in e6



the function or the macro should be consider
that i can change the number of group
and the number of each word in every group
 
Upvote 0
Manually enter the expected results in column E and repost the table.
 
Upvote 0
sorry i don't understand
i have 2000 row
i need something automatic





a1b1c1d1e1
reading wqa

<tbody>
</tbody>

Group 1

<tbody>
</tbody>


<tbody>
</tbody>

1
reading asjk

<tbody>
</tbody>

Group 1

<tbody>
</tbody>

2leader number
sunglass

<tbody>
</tbody>

Group 1

<tbody>
</tbody>

3
reading jkj

<tbody>
</tbody>

Group 2

<tbody>
</tbody>

4
eyeglass

<tbody>
</tbody>

Group 2

<tbody>
</tbody>

5leader number
reading hbhb

<tbody>
</tbody>

Group 2

<tbody>
</tbody>

6
reading knjn

<tbody>
</tbody>

Group 3

<tbody>
</tbody>

7
reading kmk

<tbody>
</tbody>

Group 3

<tbody>
</tbody>

8leader number
reading seas

<tbody>
</tbody>

Group 3

<tbody>
</tbody>

9
reading ***

<tbody>
</tbody>

Group 4

<tbody>
</tbody>

10
reading wkl

<tbody>
</tbody>

Group 4

<tbody>
</tbody>

11leader number
reading ss

<tbody>
</tbody>

Group 4

<tbody>
</tbody>

12
reading ilk

<tbody>
</tbody>

Group 5

<tbody>
</tbody>

13
reading as

<tbody>
</tbody>

Group 5

<tbody>
</tbody>

14leader number
reading qqq

<tbody>
</tbody>

Group 5

<tbody>
</tbody>

15
reading ww

<tbody>
</tbody>

Group 6

<tbody>
</tbody>

16
reading qq

<tbody>
</tbody>

Group 6

<tbody>
</tbody>

17leader number
reading as

<tbody>
</tbody>

Group 6

<tbody>
</tbody>

18

<tbody>
</tbody>
 
Upvote 0
Try:

Excel Workbook
ABCDE
1reading wqaGroup 11 
2reading asjkGroup 12Leader Number
3sunglassGroup 13
4reading jkjGroup 24
5eyeglassGroup 25Leader Number
6reading hbhbGroup 26
7reading knjnGroup 37
8reading kmkGroup 38Leader Number
9reading seasGroup 39
10reading ***Group 410
11reading wklGroup 411Leader Number
12reading ssGroup 412
13reading ilkGroup 513
14reading asGroup 514Leader Number
15reading qqqGroup 515
16reading wwGroup 616
17reading qqGroup 617Leader Number
18reading asGroup 618
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,413
Messages
6,119,374
Members
448,888
Latest member
Arle8907

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top