Return value and RIGHT

Kerr3189

New Member
Joined
Nov 4, 2021
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hello hope this is easy answer that I’m missing

I’m wanting to use a RIGHT function on a return value
The return value comes from an Xlookup that needs to be active (can’t’ copy and paste values then use RIGHT)
The value that XLOOKUP returns is 360abc I want the 360 gone automatically each time

How would I do this if possible?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Do you always want the last 3 characters specifically, or to skip the first 3 specifically, or some other pattern?
 
Upvote 0
Do you always want the last 3 characters specifically, or to skip the first 3 specifically, or some other pattern?
The number at the start is always 360 and then abc changes - so I always want it to skip 360 and just show last 3 characters
 
Upvote 0
If it's always the last 3, then:

Excel Formula:
=RIGHT(XLOOKUP(...),3)

or to skip the first 3 you can use:

Excel Formula:
=MID(XLOOKUP(...),4,100)

where the 100 is just a number longer than any text you expect as a result.
 
Upvote 0
Thanks Rory will try that
 
Last edited by a moderator:
Upvote 0
You can also include Mid inside the XLOOKUP
=XLOOKUP(lookup value,range to lookup,MID(Range where answer is,4,100))
=XLOOKUP(C11,A3:A6,MID(B3:B6,4,100))
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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