Fill Down Until Next Value in Excel

Cyphas

New Member
Joined
Oct 23, 2021
Messages
12
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Hi Guys,

Do you know how to (Loom | Send a video. Not a thousand words.)
Fill the First Field with data from same row in another column (eg B and then fill second row etc with data in the same row from another column (eg D) all the way until sequence changes in the reference column (C)

Do you know a quick VBA or Macro , Query or formula to do this?

See minisheet of a simplified version
So:
Based on checking sequence of repeated values in Column C (ParentID)
Column A will need to return the values of cells referenced in the example.
So basically The first value in Row A2 should be that in B2 and the next (A3) should be from D3 and so on until it gets to the next sequence in column C (ParentID) where it changes to AKS112 A7 will be the value of B7 = 'Insane Man' where the next row (A8) will be that of D8 =Insane Man Pan and so forth
Hopefully you can assist soon. Thank you

FillDataSheet.xlsx
ABCD
1Title Parent NameParent IDVariant Name
2 = B2Mr PerfectABC1Mr Perfect Show
3 = D3Mr PerfectABC1Mr Perfect Hat
4 = D4Mr PerfectABC1Mr Perfect Cat
5 = D5Mr PerfectABC1Mr Perfect Bat
6 = D6Mr PerfectABC1Mr Perfect Rat
7 = B7Insane ManAKS112Insane Man Van
8 = D8Insane ManAKS112Insane Man Pan
9 = D9Insane ManAKS112Insane Man Bones
10 = D10Insane ManAKS112Insane Man Homes
11 = B11Super ManSPMMSuper Man Costume
12 = D12Super ManSPMMSuper Man Hoodies
13 = D13Super ManSPMMSuper Man Booties
14 = D14Super ManSPMMSuper Man Car
15 = D15Super ManSPMMSuper Man Bikes
16 = B16BombasticBMBombastic Tastic
17 = D17BombasticBMBombastic Plastic
18 = D18BombasticBMBombastic Paper
19 = B19Rough NeckRNRough Neck Food
FillDataSheet



Best regards Devereaux
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
People on here are unlikely to watch linked videos, they will often be blocked by security software. Looks like a simple task from the mini sheet anyway.
Book1
ABCD
1Title Parent NameParent IDVariant Name
2Mr PerfectMr PerfectABC1Mr Perfect Show
3Mr Perfect HatMr PerfectABC1Mr Perfect Hat
4Mr Perfect CatMr PerfectABC1Mr Perfect Cat
5Mr Perfect BatMr PerfectABC1Mr Perfect Bat
6Mr Perfect RatMr PerfectABC1Mr Perfect Rat
7Insane ManInsane ManAKS112Insane Man Van
8Insane Man PanInsane ManAKS112Insane Man Pan
9Insane Man BonesInsane ManAKS112Insane Man Bones
10Insane Man HomesInsane ManAKS112Insane Man Homes
11Super ManSuper ManSPMMSuper Man Costume
12Super Man HoodiesSuper ManSPMMSuper Man Hoodies
13Super Man BootiesSuper ManSPMMSuper Man Booties
14Super Man CarSuper ManSPMMSuper Man Car
15Super Man BikesSuper ManSPMMSuper Man Bikes
16BombasticBombasticBMBombastic Tastic
17Bombastic PlasticBombasticBMBombastic Plastic
18Bombastic PaperBombasticBMBombastic Paper
19Rough NeckRough NeckRNRough Neck Food
Sheet3
Cell Formulas
RangeFormula
A2:A19A2=IF(C1=C2,D2,B2)
 
Upvote 0
Solution
People on here are unlikely to watch linked videos, they will often be blocked by security software. Looks like a simple task from the mini sheet anyway.
Book1
ABCD
1Title Parent NameParent IDVariant Name
2Mr PerfectMr PerfectABC1Mr Perfect Show
3Mr Perfect HatMr PerfectABC1Mr Perfect Hat
4Mr Perfect CatMr PerfectABC1Mr Perfect Cat
5Mr Perfect BatMr PerfectABC1Mr Perfect Bat
6Mr Perfect RatMr PerfectABC1Mr Perfect Rat
7Insane ManInsane ManAKS112Insane Man Van
8Insane Man PanInsane ManAKS112Insane Man Pan
9Insane Man BonesInsane ManAKS112Insane Man Bones
10Insane Man HomesInsane ManAKS112Insane Man Homes
11Super ManSuper ManSPMMSuper Man Costume
12Super Man HoodiesSuper ManSPMMSuper Man Hoodies
13Super Man BootiesSuper ManSPMMSuper Man Booties
14Super Man CarSuper ManSPMMSuper Man Car
15Super Man BikesSuper ManSPMMSuper Man Bikes
16BombasticBombasticBMBombastic Tastic
17Bombastic PlasticBombasticBMBombastic Plastic
18Bombastic PaperBombasticBMBombastic Paper
19Rough NeckRough NeckRNRough Neck Food
Sheet3
Cell Formulas
RangeFormula
A2:A19A2=IF(C1=C2,D2,B2)
Thank you so much Jason for the solution.. I was overthinking the solutions. And much appreciate the advice with video.

Have a great weekend!


Best regards
Devereaux
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,841
Members
449,193
Latest member
MikeVol

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