Filling data in blank cells based on the cell above and below a blank cell

pinkpanther6666

Board Regular
Joined
Feb 13, 2008
Messages
194
Office Version
  1. 365
Platform
  1. Windows
Good Moring to all

i need to Auto fill data into blank cells based on the cell above and below the blank cell

Cell A1 contains the value 01/01/2024
Cell A2 contains the value 01/02/2024
and filled down until Cell A365 is 31/12/2024


Cell B1 contains the value of 100
Cell B2 is blank
Cell B3 is Blank
Cell B4 contains the value 130

How can i get Cells B2 and B3 filled with the Value 110 and 120 respectively

However sometimes the Values may go down
Cells B5,B6,B7 are blank and Cell B8 is 90

See attached Image as an example


Hope anyone can help on this please

Many Thanks in Advance

Steve
 

Attachments

  • Capture Excel.JPG
    Capture Excel.JPG
    20.8 KB · Views: 6

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
The following probably is too heavy (but hopefully somebody will post something lighter):

Excel Formula:
=LET(
array,B1:B9,
a,FILTER(array,array<>""),
b,VSTACK(DROP(a,1),0),
c,IF(a<b,10,-10),
d,SCAN(0,--(ISNUMBER(array)=TRUE),LAMBDA(a,b,a+b)),
e,UNIQUE(d),
f,IF(ISNUMBER(array),0,XLOOKUP(d,e,c)),
g,SCAN(0,f,LAMBDA(x,y,IF(y=0,y,x+y))),
h,SCAN("",array,LAMBDA(a,b,IF(b<>"",b,a))),
g+h)
 
Upvote 0

Forum statistics

Threads
1,224,971
Messages
6,182,090
Members
453,088
Latest member
Chaoxite

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