Formula to autofill values in B with condition from A

bettlejus

New Member
Joined
Apr 4, 2017
Messages
32
Hi,

I cannot figure the formula logic for the following operation:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]CRT[/TD]
[TD]STATUS[/TD]
[TD]Desired Result[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]P1[/TD]
[TD]P1[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]P1[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]P1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]P2[/TD]
[TD]P2[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]P2[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]P2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]P3[/TD]
[TD]P3[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]P3[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]P3[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]P3[/TD]
[/TR]
</tbody>[/TABLE]


I have a count in column A, that is the same untill a value changes in B, like 1..1..1..for P1 and I want a formula that will fill column B to look just like column C, fill the first value untill number in column A changes.

Can you guys help me out?

Thank yoU!
 
Did you try the methods contained in the link I provided?
I have used that method many times (and on older versions of Excel too).
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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