Finding the value of a cell above a cell that meets a condition in a column

rufuxinix

Board Regular
Joined
Jan 23, 2019
Messages
58
Office Version
  1. 2019
Platform
  1. Windows
In an Excel column I need to find the value of a cell that is immediately above.
Example: If I have cell values that end in 5, I want to extract the value of the cell above them.
 
Make your workbook available and someone will have a check on it.
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Finally got it right.
Contacted MS they halped repair the app but it was still not working, after that.
Changed commas to semi-colons, now it works.
=IF(RIGHT(RC[-1]; 1) = "5"; R[-1]C[-1]; "")

2
4
54
155
3
23
4523
6
7
4
8
9
10
3510
43
76
2576


Thank you for your efforts, to all who helped with this, much appreciated.
Regards.
 
Upvote 0
Some regional settings use commas as argument separators in formulas, and others use semi-colons.
It is often assumed that the person posting the question knows which one applies to them and their system.

The weird thing is if you use the wrong one, you usually get errors instead of it returning unexpected results.

For example, if I enter your final version which uses commas and not semi-colons, I do not get any results. I get this error:
1733402184587.png
 
Upvote 0

Forum statistics

Threads
1,224,620
Messages
6,179,925
Members
452,949
Latest member
beartooth91

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