Formula to extract a specific line item name from different cell

shahid5788

Board Regular
Joined
May 24, 2016
Messages
91
Hi,

I have alot of random data. I am trying to find a formula that will extract the "PO" from my memo cells. A formula that will look into the cell and find that specific PO and extract to my other column? Can anyone please assist?


MEMOWhat I want
Invoice - California - California University of: PF 547548 Sales Orders Billing - PO573PO573
Invoice - AFLAAC (U.S. Air Force Academy): 200hdi, dariW2 PO201PO201
Invoice - Oklahoma State University: 300drt, htfJW2, vertical orientation (w/tircero kemur top plate) PO630PO630
Invoice - New York State University: PL 874541 Sales Orders Billing - PO847PO847

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
2 assumptions:
  1. The first character after PO is a digit. Otherwise, we run the risk of pulling Poland, Portland, and Pomona as PO numbers.
  2. The PO number isn't always 3 digits long, as you have in your example. If that were so, we could just enter =RIGHT(A2, 5).

=MID(A2, AGGREGATE(14, 6, SEARCH("PO" & {1,2,3,4,5,6,7,8,9,0}, A2), 1), 255)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,907
Messages
6,122,181
Members
449,071
Latest member
cdnMech

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