Counting from Right side

abhishukla15

New Member
Joined
May 12, 2015
Messages
31
Hi,

I want to eliminate everything in left after a word.
Example: Suppose I have below number

a) 123 # 456
b) 12 # 21
c) 1234567 # 7654321

The output which I require is everything after #, as :

a) 456
b) 21
C) 7654321

Could you please help?
Thanks in advance.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi,

I want to eliminate everything in left after a word.
Example: Suppose I have below number

a) 123 # 456
b) 12 # 21
c) 1234567 # 7654321

The output which I require is everything after #, as :

a) 456
b) 21
C) 7654321

Could you please help?
Thanks in advance.


Try This:

=TRIM(RIGHT(A1,LEN(A1)-SEARCH("#",A1)))

Note:Replace A1 with required cell reference
 
Upvote 0
Thanks. actually in real scenario I have below values from :
[TABLE="width: 209"]
<tbody>[TR]
[TD]a) 6 days 2.18 hours [/TD]
[/TR]
[TR]
[TD]b) 11 days 8 hours
c) 1111111 days 8.00000004 hours
from which I want to extract

a) 2.18
b) 8
c) 8.00000004

I have below formula in place
RIGHT(SUBSTITUTE(LEFT(AD136,(LEN(TRIM(AD136))-5)),"days","#"),LEN(SUBSTITUTE(LEFT(AD136,(LEN(TRIM(AD136))-5)),"days","#"))-FIND("#",SUBSTITUTE(LEFT(AD136,(LEN(TRIM(AD136))-5)),"days","#"),1)))

it will be good if you can help me with something good.
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 
Upvote 0
Adjust the cell reference and try:
Code:
=TRIM(SUBSTITUTE(MID(A1,FIND("days",A1)+5,LEN(A1)), "hours", ""))
 
Last edited:
Upvote 0
Give this formula a try...

=TRIM(LEFT(RIGHT(SUBSTITUTE(A1," ",REPT(" ",100)),200),100))
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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