Formula to extract a specific line item name from different cell

shahid5788

Board Regular
Joined
May 24, 2016
Messages
88
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>
 

UniMord

Active Member
Joined
May 6, 2002
Messages
309
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:

Forum statistics

Threads
1,082,323
Messages
5,364,580
Members
400,809
Latest member
formulasataglance

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top