Help with excel formula

Caze982

Board Regular
Joined
May 10, 2015
Messages
77
Hi everyone. I have tried to illustrate my problem below with the arrows.

I cell A5 i need a formula that looks i cell C5 and if it is empty then goes up and finds the next cell that is not empty in column C. Then goes one cell left ( in this case cell B3) and then pastes that value in cell
A5. In this case the value in cell A5 would then be 135. Does anyone know how to create a formula like that?

Sincerely
Christian
1665664583208.png
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
What version of Excel are you using? Here is an approach that should work with any version, but if you have Excel 365, there are better ways:
Book1
ABC
1MA-nrNavn
2107107James
3135135Martin
41352358
51352358
6138138John
7138150
8138149
9148148Paul
Sheet1
Cell Formulas
RangeFormula
A2:A9A2=IF(C2<>"",B2,INDEX(B$2:B2,AGGREGATE(14,6,ROW(C$2:C2)/(C$2:C2<>""),1)-ROW(C$2)+1))

...and another idea:
Book1
ABC
1MA-nrNavn
2107107James
3135135Martin
41352358
51352358
6138138John
7138150
8138149
9148148Paul
Sheet1 (2)
Cell Formulas
RangeFormula
A2:A9A2=IF(C2<>"",B2,A1)
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Excel formula problem
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,172
Members
448,870
Latest member
max_pedreira

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