Index Match inside a text string

richard1234567891011

Board Regular
Joined
Feb 21, 2018
Messages
91
Hi guys,

I need an index match able to read inside a text. This is the issue.

I have these data:
1575220406344.png


And I have this table:

1575220421949.png


I need a formula index match in order to read the first table and put the data in the second. In this way:

1575220445970.png


The data are working in this way: The first number in sub should give back the amount, starting from the second sub, all the other number should give back sold.

Ps: This is a simplified version, in the original one you have also empty subs, so this cannot be solved with a formula index match <>"" so index match or something similar.

Thank you guys,
I hope it is clear.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
What you want to do with the empty subs?

Try this, formula putted in F:

=IFERROR(IF(INDEX(B:B,MATCH(D2&" Sub "&E2&"*",A:A,0))=0,"Sold",INDEX(B:B,MATCH(D2&" Sub "&E2&"*",A:A,0))),"Sold")
1575229974761.png
 
Upvote 0
What you want to do with the empty subs?

Try this, formula putted in F:

=IFERROR(IF(INDEX(B:B,MATCH(D2&" Sub "&E2&"*",A:A,0))=0,"Sold",INDEX(B:B,MATCH(D2&" Sub "&E2&"*",A:A,0))),"Sold")
View attachment 1092

Dear Mehidy,
No, it is not working. It is not working because the result is always Sold even if there isn't the sub.
If you have for example Roma Sub 1-2 , so two subs not in the list, the result with the formula is sold sold
You are on the issue. But the solution is not correct.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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