getting ref error

sksanjeev786

Well-known Member
Joined
Aug 5, 2020
Messages
884
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Team

I am using the below formula and getting #Ref!error "=IF(OR(RIGHT(INDIRECT(D2),1)="r", RIGHT(INDIRECT(D2),1)="p", RIGHT(INDIRECT(D2),1)="q"), RIGHT(INDIRECT(D2),1), "")"

Can anyone help me on this
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
why are you using an indirect ?
need to see the data and explain what you are actually trying to do

indirect(d2) will give an ref error

looks like you are just looking for the last character in a string
and only showing the or and not all the IF , there is no FALSE, and the OR is not finished with a bracket and not making sense to me - sorry

this bit as well
RIGHT(INDIRECT(D2),1), "")"
not sure what that is doing
 
Upvote 0
is D2 a table reference list - to output the contents of a table name ???

as shown here - using indirect(d11)
 
Upvote 0
why are you using an indirect ?
need to see the data and explain what you are actually trying to do

indirect(d2) will give an ref error

looks like you are just looking for the last character in a string
and only showing the or and not all the IF , there is no FALSE, and the OR is not finished with a bracket and not making sense to me - sorry

this bit as well
RIGHT(INDIRECT(D2),1), "")"
not sure what that is doing
Thanks for checking on this! i got the solution :)
 
Upvote 0
you are welcome
it may be worth posting the solution here - so anyone searching for a similar issue may see the solution on this forum
 
Upvote 0

Forum statistics

Threads
1,215,245
Messages
6,123,842
Members
449,129
Latest member
krishnamadison

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