cell values based on one bold cell

AlenKovacevic

New Member
Joined
Apr 1, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi all,

Basically, what I would like to do is to fill in column A with the values in bold that are in column B.

My first sheet looks like this:
1585729908440.png


But I would like my sheet to look like this (without using typing of course):

1585730082369.png


I guess there is some kind of formula or VBA that I could use for that (I have a sheet of 10k rows)?

Many thanks for the help, will be highly appreciated and will save me a lot of time! :)

Alen
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
If the preceding cell is always blank, try

=IF(OR(B2="",B3=""),"",IF(ISNUMBER(B2),B2,A2))

1585734128370.png
 
Last edited:
Upvote 0
This also assumes you want the first value after a blank cell
VBA Code:
Sub AlenKovacevic()
   Dim Rng As Range
   
   For Each Rng In Range("B:B").SpecialCells(xlConstants).Areas
      Rng.Offset(, -1).Value = Rng.Resize(1).Value
   Next Rng
End Sub
 
Upvote 0
Cross posted How to fill in a cell based on the last bold cell of another column? [SOLVED]

While we do allow Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,214,807
Messages
6,121,679
Members
449,047
Latest member
notmrdurden

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