Repeat Cell Values

KiloHotel

New Member
Joined
Feb 4, 2018
Messages
42
Office Version
  1. 2016
Platform
  1. Windows
  2. MacOS
Hi Guys,

Silly one that i cannot figure out,

How do I get cell values to repeat down a list of cells based on the value of the cell before?

Example:

Cell F2 has LINK10 and in cell G2 I enter a value TEST for example, I want that to then fill in TEST all the way down the list everytime LINK10 is in the F Column.

Also another thing I'm not too sure about if i change the value say a change in the day halfway down the sheet from TEST to TEST1234 in say cell G25 that it changes only from G25 downwards to TEST1234 against LINK10? Is that possible?

Let me know if i need to explain further

Thanks in advance guys
 
Last edited:

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi
Could you please try with this coding

Code:
Sub Test()
Range("F2:F16").Select


For Each cell In Selection
If ActiveCell.Value = Range("F2").Value Then


ActiveCell.Offset(0, 1).Value = Range("G2").Value


End If


ActiveCell.Offset(1, 0).Select


Next
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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