getting ref error

sksanjeev786

Well-known Member
Joined
Aug 5, 2020
Messages
996
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

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
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,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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