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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,223,888
Messages
6,175,213
Members
452,618
Latest member
Tam84

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