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.
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
5
4
15
5
3
23
45
23
6
7
4
8
9
10
35
10
43
76
25
76
Thank you for your efforts, to all who helped with this, much appreciated.
Regards.
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:
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.