Sean15
Well-known Member
- Joined
- Jun 25, 2005
- Messages
- 719
- Office Version
- 2010
- Platform
- Windows
Hello:
I want to extract all text to the right of the last remaining dash in a string.
Sheet1 lookup values in column F are:
2854261-160-587-P00791
758524-176-365-P00807.09
Sheet2 required values in range G2:G100 are:
P00791
P00807.09
In M2 sheet1 I have the following formula:
=INDEX(sheet2!$G$2:$G$100,MATCH(RIGHT(F2,FIND("-",F2)-1),sheet2!$E$2:$E$100,0))
Formula is returning required value P00791 for lookup value 2854261-160-587-P00791.
Formula is returning #N/A for lookup 758524-176-365-P00807.09.
It should have returned P00807.09
Could you help please?
Sean
I want to extract all text to the right of the last remaining dash in a string.
Sheet1 lookup values in column F are:
2854261-160-587-P00791
758524-176-365-P00807.09
Sheet2 required values in range G2:G100 are:
P00791
P00807.09
In M2 sheet1 I have the following formula:
=INDEX(sheet2!$G$2:$G$100,MATCH(RIGHT(F2,FIND("-",F2)-1),sheet2!$E$2:$E$100,0))
Formula is returning required value P00791 for lookup value 2854261-160-587-P00791.
Formula is returning #N/A for lookup 758524-176-365-P00807.09.
It should have returned P00807.09
Could you help please?
Sean
Last edited: