Excel Help with related to Left Right Mid function

Jyotirmaya

Board Regular
Joined
Dec 2, 2015
Messages
216
Office Version
  1. 2019
Platform
  1. Windows
The sample text data in my sheet are like the following,

example

Peter England, * Shirt / UK
in a single cell. I need Peter England in a different cell Shirt in a different cell UK in a different cell.

I am using the following function
B1 =LEFT(A1,FIND(",",A1)-1) for getting Peter England in B1

I need two more functions to get Shirt in C1 & Uk in D1

I am trying =RIGHT(A1,LEN(A1)-FIND("*",A1)*1) but with that code I am getting Shirt/UK
I need Shirt in different cell and UK in different cell.

<colgroup><col width="115"></colgroup><tbody>
[TD="width: 115"]
[TABLE="width: 115"]
<colgroup><col></colgroup><tbody>[TR]

</tbody>
[/TD]
[/TR]
</tbody>[/TABLE]
 
Part of the problem is because "*" is used for wildcards in Excel so it isn't actually finding *.
My code assumes the original text is in A1...
in B1 place:
Code:
=LEFT(A1,SEARCH(",",A1)-1)
in C1 place:
Code:
=SUBSTITUTE(MID(A1,SEARCH(", * ",A1),SEARCH("/", A1)-SEARCH(", * ",A1)),", * ","")
in D1 place:
Code:
=TRIM(MID(A1,SEARCH("/",A1)+1,99))
 
Upvote 0

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