Formula to group values based on above cell?

JumboCactuar

Well-known Member
Joined
Nov 16, 2016
Messages
785
Office Version
  1. 365
Platform
  1. Windows
Hi,
Didn't know how to word the title, I have data in the following format:

00100 | A1A
00101 |

00102 | B6A
00103 | B9H

00302 | A7R
00403
00404

00309 | B8R
00408 | E7S

I need an helper column (C) to fill down the B column values
Example: 00101 = A1A
00403 and 00404 = A7R

There is sometimes spaces between rows

Appreciate any help
 
Last edited:

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
ABC
1
2100A1AA1A
3101A1A
4102B6AB6A
5103B9HB9H
6302A7RA7R
7403A7R
8404A7R
9309B8RB8R
10408E7SE7S

<tbody>
</tbody>

Formula in Cell C2: =IF(B2="",C1,B2)
Drag down to the end..... Hope this suffice your requirement.
 
Upvote 0
ABC
1
2100A1AA1A
3101A1A
4102B6AB6A
5103B9HB9H
6302A7RA7R
7403A7R
8404A7R
9309B8RB8R
10408E7SE7S

<tbody>
</tbody>

Formula in Cell C2: =IF(B2="",C1,B2)
Drag down to the end..... Hope this suffice your requirement.

If there are blank rows this won't work.
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,517
Members
448,968
Latest member
Ajax40

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