Formula req

vvinod

New Member
Joined
Nov 13, 2024
Messages
12
Office Version
  1. 2019
Platform
  1. Windows
Trans_id:1639660935, Item:320781002202- PROD, Org:180, Batch:242665, Status:CLOSED, Terminated(Y/N):N, Trans.Qty: 90 CTN


from this i want to take output as 320781002202, can you give formula
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Always after Item: and before - ?
 
Upvote 0
It is hard to detect patterns from just a single example.
Is the entry always exactly 12 characters long?
If so, you could use this formula (for an entry in cell A1):
Excel Formula:
=MID(A1,FIND("Item:",A1)+5,12)

If the values you are trying to pull are not always 12 characters long, then we will need to know more details, such as does "- PROD" appear after every number you are pulling?
If not, please post a number of examples, showing the different structure you may have and what you want in each case.
 
Upvote 0
If the value of interest is not always 12 characters but is between "Item:" and the following "-" then you could try

Excel Formula:
=REPLACE(LEFT(A1,FIND("-",A1,FIND("Item:",A1))-1),1,FIND("Item:",A1)+4,"")
 
Upvote 0

Forum statistics

Threads
1,224,876
Messages
6,181,521
Members
453,050
Latest member
Obil

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