Formula to Fill Blanks

acool

Board Regular
Joined
Feb 10, 2023
Messages
117
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I am currently trying to create an excel formula which states that if a cell is blank, then use the value value above. While I know that there is a fill blank function, I would like to create a formula that accomplishes this. I am attaching an image below of what I am trying to accomplish. Column C represents the current values, while Column D represents what I am trying to achieve. Any help would be greatly appreciated-thank you!
1684936200949.png
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
How about
Excel Formula:
=IF(C2<>"",C2,D1)
 
Upvote 1
There a couple of steps
-select column A
-hit F5 and click Special cells...
-select blanks and OK
blank cells will be selected
-type "=" to enter the formula(do not select any cells or formula bar)
-hit the up arrow and press Ctrl + Enter to enter the formula in all selected cells

1684936845140.png

1684936863344.png
 
Upvote 0
Solution
Another means is to bring your data to Power Query (Get and Transform Data) on the Data Tab. Once in the PQ Editor, right click on the column in question. Select Fill and Fill Down. Close and Load back to Native Excel.
 
Upvote 0

Forum statistics

Threads
1,216,073
Messages
6,128,641
Members
449,461
Latest member
kokoanutt

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