Formula doesn't work

Status
Not open for further replies.

rufuxinix

Board Regular
Joined
Jan 23, 2019
Messages
58
Office Version
  1. 2019
Platform
  1. Windows
Can anyone solve this problem? I can't get the following formuls to work. The formula seems to be correct but my Excel doesn't do what it's supposed to do.
The requirement is to extract the value of the cell above those which end in 5. I have enabled RC, Column A is Number, not sure what else to do.
1733235935531.png
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Which row is that first value/formula in?
If it is in row 1, you cannot use "R[-1]", as there are no rows before row 1!

You would either need to move this down at least one row so you start in row 2, or have a different formula to use for row 1.
 
Upvote 0
my Excel doesn't do what it's supposed to do.
What does it do? Showing a formula that doesn't work with no explanation about how it doesnt work, is not much help. ;)
Also what row is that formula on?
 
Upvote 0
I have enabled RC
You mean you activated R1C1 Notation:
1733236989185.png
Why do you need to activate it?

If you decide to use A1 notation, it works:
varios 03dic2024.xlsm
AB
11
2151
36Nothing
4156
57Nothing
614Nothing
71514
Hoja1
Cell Formulas
RangeFormula
B2:B7B2=IF(RIGHT(A2,1)="5",A1,"Nothing")



Either way works, but you should start at least on row 2, as I put it in my example.
 
Last edited:
Upvote 0
You mean you activated R1C1 Notation:
Why do you need to activate it?

If you decide to use A1 notation, it works:
varios 03dic2024.xlsm
AB
11
2151
36Nothing
4156
57Nothing
614Nothing
71514
Hoja1
Cell Formulas
RangeFormula
B2:B7B2=IF(RIGHT(A2,1)="5",A1,"Nothing")
It does not work if the first value and formula are in row 1.
Perhaps that is why they changed it to R1C1 reference style, because they could not use A0!
But doing that does not get around the problem that you cannot look at the previous row if you are in row 1 (that would be a formula logic issue, not a notation one).
When writing a formula that reference the previous row, the first line can present some challenges, and often needs to be handled differently.
 
Upvote 0
Rufinix,

Please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread. If you do not receive a response, you can "bump" it by replying to it yourself, though we advise you to wait 24 hours before doing so, and not to bump a thread more than once a day.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,613
Messages
6,179,894
Members
452,948
Latest member
Dupuhini

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