Repeat Cell until blank, then use the cell directly under blank and start repeating that cell.

Johnny Thunder

Well-known Member
Joined
Apr 9, 2010
Messages
693
Office Version
  1. 2016
Platform
  1. MacOS
Hello,

I have a spreadsheet that has several pieces of data that is next to a column with totals Column H has one name then multiple codes under it, I only need the first name in cell H3. In Column I cell I3 is the amounts I need.

What I am trying to achieve is placing a formula in the column before H and have it say (Repeat cell H3 until Blank, skip one cell and then return the new name under blank and fill that down and so on and so fourth until data is complete.

I have attached a sample of the spreadsheet, please see Highlighted cells for Question. Thank you in advance.
file:///C:/Documents and Settings/JLee/Desktop/Repeat Cell Until New Cell Appears.xls

 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Was that a No for a formula that you know of that can achieve the same goal? Also, the macro is populating the wrong column, I only needed column J. Your macro is accounting for Column I which I do need to make any changes to.
 
Upvote 0
change the valye of J to = 9


Read the macro and you'll see that the comment next to J says it is the column of values.

You'll also see that JValue is Typed as currency. Compare this macro to the first one I gave you and change it's Type to suit.

I'm leaving for the day, so you will have to do just a little bit of wotk for yourself.
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,659
Members
449,114
Latest member
aides

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