Matching Number To Number In text

bwlytkr

Board Regular
Joined
Jun 8, 2012
Messages
175
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Anyone know of a way to match a number in one column to a number inside random text in another column, then populate the match in the formula column. See Below ex.

Column I Column J Column K
Formula column Search Column Column Trying to Match To Text In Column J

Result

Ticket # Description Ticket#


120815
1208015
POLE: NJUNS 1208015 TRANSFER @ NJUNS REQUEST @ POLE BETWEEN 13082 & 13092 BETHANY RD TERM #13050
<colgroup><col width="99" style="width: 74pt; mso-width-source: userset; mso-width-alt: 3620;"> <col width="477" style="width: 358pt; mso-width-source: userset; mso-width-alt: 17444;"> <tbody> </tbody>
 
I tried this formula but, it didn't work. Column has the identical Ticket Numbers as column Q

=INDEX(R:R,MATCH("*"&J2&"*",Q:Q,0))
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Sorry, it looks like my reply didn't post. I need the formula to match any ticket number in column Q to the corresponding number in the description in column j and populate that number in Column I. Sorry I didn't explain it well.
Doesn't that just return the number in Q or an error if there's no match? Wouldn't you want to know the location of the description in col J that matches the number in Q?
 
Upvote 0
I tried this formula but, it didn't work. Column has the identical Ticket Numbers as column Q

=INDEX(R:R,MATCH("*"&J2&"*",Q:Q,0))
If the description is in col J then that formula trys to return the value in col R for which there is a match in col Q to the entire description in col J. That's not going to work.
 
Upvote 0
That's right it doesn't work. I'l try to explain different way. If the number in the description matches a ticket number in column Q, I need the matched ticket # to appear in column I where the formula is.
 
Upvote 0
That's right it doesn't work. I'l try to explain different way. If the number in the description matches a ticket number in column Q, I need the matched ticket # to appear in column I where the formula is.
Can you provide some more example data (with col letters above the headers) so we can see the range of descriptions and look for consistent placement and length of the ticket numbers within the description? For example, is the first digit of the ticket number in the description always the 13th character in the description? is the ticket number always followed by " TRANSFER"? What do you want the formula in col I to return if the ticket number in the description can't be found in col Q?
 
Upvote 0
I don't have any further examples tonight as the spreadsheet is a t work. However, the ticket # in the desc column is not always in the same place in the string of text. It appears random in each cell which is my problem. I'll send more examples tomorrow if you still need them. I appreciate you sticking with me oaths and trying helping me out
 
Upvote 0
The ticket # doesn't always follow TRANSFER and if the ticket # can't be found then N/A is fine or whatever it defaults to.
 
Upvote 0
The ticket # doesn't always follow TRANSFER and if the ticket # can't be found then N/A is fine or whatever it defaults to.
Send some more data which illustrates the breadth of ways in which the ticket number appears in the description. If it's random that may make a formula solution problematic. Are you willing to use VBA in that case?
 
Upvote 0
Will do. Never used VBA before but, will to try it.
 
Upvote 0
That's right it doesn't work. I'l try to explain different way. If the number in the description matches a ticket number in column Q, I need the matched ticket # to appear in column I where the formula is.

=IFERROR(IF(SEARCH(Q1,J1)>0,Q1),"")
Paste this into column I
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,718
Members
448,986
Latest member
andreguerra

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