Fill a column

Geo Jul

Board Regular
Joined
Nov 19, 2022
Messages
125
Office Version
  1. 2016
Platform
  1. Windows
Dear All​
I need to fill column C according to what is in Cell B2 and if its comes to C11 to fill according to what's in Cell B10 and so on, and the list is huge​
I need your help with a formula. sorry the number in B2 or others are without ABC This is an example
please note that I am using excel 2016 at work
Many Thanks in advance​
 

Attachments

  • Screenshot (961).png
    Screenshot (961).png
    35.8 KB · Views: 5
Last edited:

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
With Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Removed Columns" = Table.RemoveColumns(Source,{"Column1"}),
    #"Added Custom" = Table.AddColumn(#"Removed Columns", "Custom", each if Text.Length([Due date])>8 then [Due date] else null),
    #"Filled Down" = Table.FillDown(#"Added Custom",{"Custom"}),
    #"Reordered Columns" = Table.ReorderColumns(#"Filled Down",{"Departure date", "Due date", "Custom", "Transaction number"})
in
    #"Reordered Columns"
 
Upvote 0
With Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Removed Columns" = Table.RemoveColumns(Source,{"Column1"}),
    #"Added Custom" = Table.AddColumn(#"Removed Columns", "Custom", each if Text.Length([Due date])>8 then [Due date] else null),
    #"Filled Down" = Table.FillDown(#"Added Custom",{"Custom"}),
    #"Reordered Columns" = Table.ReorderColumns(#"Filled Down",{"Departure date", "Due date", "Custom", "Transaction number"})
in
    #"Reordered Columns"
many thanks on your reply but most of our Co-workers are very familiar with PowerQuery, which is why i requested an excel formula thank you for your responses.
 
Upvote 0
Is this what you mean?

24 01 07.xlsm
ABC
1
2AssetsA 
3datedateA
4datedateA
5datedateA
6datedateA
7datedateA
8datedateA
9datedateA
10AssetsB 
11datedateB
12datedateB
13datedateB
14datedateB
15datedateB
16AssetsC 
17datedateC
18datedateC
19datedateC
20datedateC
21datedateC
22datedateC
23datedateC
24datedateC
Fill C
Cell Formulas
RangeFormula
C2:C24C2=IF(A2="Assets","",IF(A1="Assets",B1,C1))
 
Upvote 1
Solution
Is this what you mean?

24 01 07.xlsm
ABC
1
2AssetsA 
3datedateA
4datedateA
5datedateA
6datedateA
7datedateA
8datedateA
9datedateA
10AssetsB 
11datedateB
12datedateB
13datedateB
14datedateB
15datedateB
16AssetsC 
17datedateC
18datedateC
19datedateC
20datedateC
21datedateC
22datedateC
23datedateC
24datedateC
Fill C
Cell Formulas
RangeFormula
C2:C24C2=IF(A2="Assets","",IF(A1="Assets",B1,C1))
I very much appreciate your help and valuable time (Genius) Thank you very much
 
Upvote 0
Glad it worked for you. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,107
Messages
6,123,126
Members
449,097
Latest member
mlckr

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