Lookup text or number string inside cell Excel 2010

Oz-Six-Oz

New Member
Joined
Nov 21, 2012
Messages
6
Hello everyone,

Okay, I'm new here and have no experience in Excel. I have tryed the forum, internet and Excel help without luck (Maybe don't know how to search), I want to do the normal lookup but searching a number or text string inside a row full of text.

For Example, I have in Sheet1:

ABCDE
1p6769705Lot# * 2-3182 ID lot 50643000="FORMULA HERE"
2p6769713** 2-3166 Filled with lot-50642992="FORMULA HERE"
3p6769756* 2-3182 LOT 50642917="FORMULA HERE"

<tbody>
</tbody>

Now in sheet2:

ABCDEFG
12-318211
22-318614
3322154511

<tbody>
</tbody>



I want to lookup value in Sheet2 A1 inside Sheet1 column B:B and then return in Sheet1 C:C the content in Sheet2 column B:B, is this possible?

For example for the first row in sheet1 C1 the result should be 11, since B1 has inside the cell value noted in Sheet 2 A1 "2-3182".

Please if you have the formula please explain it to me in detail how it works to understand it and apply it in the future, don't want just the formula to resolve this but to learn how to do it in the future understanding each part of the formula.

Tried Lookup and VLookup but these only search for exact cell, true? sorry if my question is dumb but i have tried everything and i'm frustrated with a headache now!

If a code is required then send me a link on how to make a code for dummies to not explain everything to me:)

Any help will be greatly appreciated

Thanks,

Oz
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
I'll go with Biff here,

For all practical purposes 99^99 can be used rather than 9.99999999999999E+307

Unless of course somebody knows a real situation, in Excel, where it fails ... ;)
 
Upvote 0
I'll go with Biff here,

For all practical purposes 99^99 can be used rather than 9.99999999999999E+307

Unless of course somebody knows a real situation, in Excel, where it fails ... ;)
Every time I put out that challenge all I get is crickets! :)
I understand, although for me the point is about being consistent rather than any practical risk of failure because a smaller 'huge' number is selected. Anything large - 100^99 or 99^98 or 1E100 - is equally appropriate, but 9.99999999999999E+307 seems like a good natural choice as the largest allowed positive number.

Used consistently, the number becomes a self-documenting feature. It abstracts away the need to come up with a suitable big number for every situation, and perhaps some confusion is avoided down the line.

In my opinion, choosing arbitrarily large numbers every time you come across the same class of problem might save a few keystrokes but introduces unnecessary complexity. For me, keeping it simple, means sticking to 9.99999999999999E+307.
 
Upvote 0
unnecessary complexity ... 9.99999999999999E+307.
Hmmm...

And the AVERAGE user doesn't think 9.99999999999999E+307 is unnecessary complexity? :eek:

Quick, without counting them how many 9s do I have to type?

If I want to return my last bowling score from column A...

Take your pick.

=LOOKUP(301,A:A)
=LOOKUP(9.99999999999999E+307,A:A)

Both will return the correct result. I know which one I'll use!
 
Upvote 0
Hmmm...

And the AVERAGE user doesn't think 9.99999999999999E+307 is unnecessary complexity? :eek:

Quick, without counting them how many 9s do I have to type?

If I want to return my last bowling score from column A...

Take your pick.

=LOOKUP(301,A:A)
=LOOKUP(9.99999999999999E+307,A:A)

Both will return the correct result. I know which one I'll use!
Unfortunately, I am not convinced - my pick is:
=LOOKUP(9.99999999999999E+307,A:A)

I don't think the speed at which you can deliver the formula to the cell is really an issue here. As the function is being exploited in a non-standard and non-documented way, I think either version will be confusing to the average user, more so version one. A quick Google search of the latter brings up a host of relevant results. A Google search of the former leaves you none the wiser.
 
Upvote 0
the function is being exploited in a non-standard and non-documented way.
Yet you want to convince us that we should use some sort of "standard" lookup value?

What sanctioning committee has established this "standard" ?

Well, like I said...

I prefer to keep things simple!

I also don't like typing! The more you type the greater the chance of making errors.
 
Upvote 0
Yet you want to convince us that we should use some sort of "standard" lookup value?
Yes, I think that would be wise.

Well, like I said...

I prefer to keep things simple!
Me too!

I also don't like typing! The more you type the greater the chance of making errors.
True, and I have made those errors - but I don't think that should override the other points.

Anyway, I guess we all have our preferences and maybe one day I will be convinced by your argument. I should also say that I do really appreciate all your wonderful help on this forum, as I have learnt a great deal from many of your posts.
 
Upvote 0
Yes, I think that would be wise.


Me too!


True, and I have made those errors - but I don't think that should override the other points.

Anyway, I guess we all have our preferences and maybe one day I will be convinced by your argument. I should also say that I do really appreciate all your wonderful help on this forum, as I have learnt a great deal from many of your posts.
When I first learned about that LOOKUP application I also used a bazillion 9s as the lookup value but I am much wiser now-a-days!
 
Upvote 0

Forum statistics

Threads
1,221,596
Messages
6,160,719
Members
451,666
Latest member
GCS1998

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