krunal123

Board Regular
Joined
Jun 26, 2020
Messages
177
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
image_2021-08-07_133143.png


Between two Slashs "/" Or
Two and more Slashs how to work formula in this condition
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi Krunal123,

Does this work for you?

Krunal123-v2.xlsx
ABCD
1Invoice No.Result
2EXP/052/20-22052
3Dog/88/2-2-2-288
4Goats/888/66/66/99888
5A/1/A1
6INV/12345///12345
7a/2Two / not found
Sheet2
Cell Formulas
RangeFormula
D2:D7D2=IFERROR(MID(A2,FIND("/",A2)+1,FIND("/",A2,FIND("/",A2)+1)-FIND("/",A2)-1),"Two / not found")
 
Upvote 0
Or try:

=TRIM(MID(SUBSTITUTE(A2,"/",REPT(" ",200)),200,200))
 
Upvote 0
If your data is as uniform as those 7 samples, all you would need is
Excel Formula:
=MID(A2,5,3)
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,208
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