View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
EK EK is offline
external usenet poster
 
Posts: 20
Default Populate Data In Rows

I have following data:

A B
-----------------
Apples A
Pears D
Orange C
Grapes B

If column B is "A", repeat corresponding column A data 4 times in a row. If
column B is "B", repeat data 3 times in a row, and so forth. Please help with
solution which will result in the following:

column C
----------
Apples
Apples
Apples
Apples
Grapes
Grapes
Grapes
Orange
Orange
Pears