ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Looping Question (https://www.excelbanter.com/excel-programming/314883-looping-question.html)

MWS

Looping Question
 
This is what I'm trying to write code for:

In the example below, take the value in cell B1 and copy it down until
another value is encountered. Then, continue this process until there is a
corresponding value in column B for every value in column A (ie all the
entries for Banana and Carrot would have 548 in column B, Apple entries would
have 635 and then, since there are no more entries in column A, the code
would stop processing).

(Column A) (Column B)
Banana 548
Banana
Banana
Banana
Carrot
Carrot
Carrot
Carrot
Apple 635
Apple
Apple
Apple

Any and all help would be appreciated.

Thank You!


All times are GMT +1. The time now is 05:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com