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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,224,826
Messages
6,181,192
Members
453,021
Latest member
pingpong7117

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