Formula to get/find require text in given cell

harinsh

Active Member
Joined
Feb 7, 2012
Messages
273
Hi Team,

I hope anyone can help with my question. I have two sheets and in the second sheet from A1 to A10 have some names and this list, not static and dynamic as and when list may increase.

In sheet one from A1 to A1000 (this may increase day by day) has fields which contain sheet two names along with some other information which is not required, I only need to get the same name if that particular name within the field.

For example,
Sheet2
[TABLE="width: 131"]
<tbody>[TR]
[TD]apple
[/TD]
[/TR]
[TR]
[TD]mango
[/TD]
[/TR]
[TR]
[TD]orange
[/TD]
[/TR]
[TR]
[TD]banana
[/TD]
[/TR]
[TR]
[TD]kiwi
[/TD]
[/TR]
[TR]
[TD]graps
[/TD]
[/TR]
[TR]
[TD]pinaple
[/TD]
[/TR]
[TR]
[TD]chikku
[/TD]
[/TR]
[TR]
[TD]watermealon
[/TD]
[/TR]
[TR]
[TD]muskmealon

Sheet1 - along with a required output
[TABLE="width: 368"]
<tbody>[TR]
[TD]Text
[/TD]
[TD]Output
[/TD]
[/TR]
[TR]
[TD]PO4743apple43466
[/TD]
[TD]apple
[/TD]
[/TR]
[TR]
[TD]Return2982mango43466
[/TD]
[TD]mango
[/TD]
[/TR]
[TR]
[TD]PO1358orange43466
[/TD]
[TD]orange
[/TD]
[/TR]
[TR]
[TD]Puchase4290banana43466
[/TD]
[TD]banana
[/TD]
[/TR]
[TR]
[TD]Stockin2285kiwi43466
[/TD]
[TD]kiwi
[/TD]
[/TR]
[TR]
[TD]Stockout4299graps43466
[/TD]
[TD]graps
[/TD]
[/TR]
[TR]
[TD]PO2994pinaple43466
[/TD]
[TD]pinaple
[/TD]
[/TR]
[TR]
[TD]Return2250chikku43466
[/TD]
[TD]chikku
[/TD]
[/TR]
[TR]
[TD]Best1538watermealon43466
[/TD]
[TD]watermealon
[/TD]
[/TR]
[TR]
[TD]Less1476muskmealon43466
[/TD]
[TD]muskmealon
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

I hope this can be done in the formula, please help on the same.


Thank you
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi

Try this, using control+shift+enter, for your fruits in Sheet2, with your text in A3 on Sheet1:

=INDEX(Sheet2!$A$2:$A$11,MATCH(TRUE,ISNUMBER(FIND(Sheet2!$A$2:$A$11,A3)),0))
 
Upvote 0
A B C D
1 Text Output Output Criteria
2 PO4743apple43466 apple apple
3 Return2982mango43466 mango mango
4 PO1358orange43466 orange orange
5 Puchase4290banana43466 banana banana
6 Stockin2285kiwi43466 kiwi kiwi
7 Stockout4299graps43466 graps graps
8 PO2994pinaple43466 pinaple pinaple
9 Return2250chikku43466 chikku chikku
10 Best1538watermealon43466 watermealon watermealon
11 Less1476muskmealon43466 muskmealon muskmealon

Formula - =LOOKUP(2^15,SEARCH($D$2:$D$11,A2),$D$2:$D$11) Paste formula in B2
 
Upvote 0
Hi Mackers,

Thanks for your reply...Its working fine but array formula slow in the calculation as I have 35000 (may go up to 100000) rows ....anything without array formula ...
 
Upvote 0
Hi Nithin,

Thanks for your reply... it is working perfect ..can you please tell me how to read 2^15 ...How does exactly works this? Thanks again
 
Upvote 0

Forum statistics

Threads
1,224,847
Messages
6,181,318
Members
453,032
Latest member
Pauh

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