Lookup within a Character String...?

PM1

Board Regular
Joined
Oct 28, 2005
Messages
192
Right, this is a puzzle that I have been trying to get my head around all week and I've gotten to the point that my head is splitting.

Scenario:- 2 Spreadsheets, No 1 records all Purchases:
Purch Orders BP²I.xls
ABCDEF
1PSPONoDetailsQtyUnitCost(GBP)Expense/AssetAssetValue
280RackServer1:pSeries650Model6M2CEC12,753.25924,929
380I/ODrawer3:ModelD20I/ODrawer12,637.0095,181
480I/ODrawer2:ModelD20I/ODrawer22,637.0098,981
5807014-T42:Rack1:IBMRS/6000RackModelT4211,798.5092,689
680IBM7316-TF3Rack-MountedFlatPanelConsoleKit11,605.5092,059
780ProLiantDL580G2R02XeonMP2.7GHz-2MB,2P,2GB35,528.0097,952
880ProLiantDL380(G3)Xeon3.2GHz-1MB,1GB111,331.0093,859
980SunFireV480Server312,464.00924,345
Sheet1


No contains the Asset No;s:
Purch Orders BP²I.xls
HIJK
1AssetCodePSPONoAssetTypeNameAssetValue
2LN06522980HPProliantDL580G2R0224,929
3LN06523180HPProliantDL580G2R0224,929
4LN06523280SunFireV48024,929
5LN06523380SunFireV48024,929
6LN06523480SunFireV44024,929
7LN06523580SunFireV48024,929
8LN06523680HPDL380(G3)24,929
9LN06523780HPDL380(G3)24,929
10LN06523880HPDL380(G3)24,929
11LN06523980HPDL380(G3)24,929
12LN06524080HPDL380(G3)24,929
13LN06524180HPDL380(G3)24,929
14LN06524280HPDL380(G3)24,929
15LN06524380HPDL380(G3)24,929
16LN06524480HPDL380(G3)24,929
17LN06524580HPDL380(G3)24,929
18LN06532080SunFireV44024,929
Sheet1


When I look for the PO No from Sheet 2 in Sheet 1 it finds the first instance and records the value stored in Col "F". However I need it to look for a character string in Sheet 2 Col "J" (DL380) and search for that in Sheet 1 Col "B" and then return the correct value, which in this case should be £3859

Any ideas.?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
I'm not quite sure I understand, do you want to search for the PO number in column A AND "DL380" in column B or is it just the latter?

How do you determine which part of your entries in column J you want to search for?

In the case of J8 "DL380" is the middle "word" of 3, i.e. it is preceded by the first space and followed by the second but for which part of J7 do you want to search? I note, for instance, that J7 is "SunFire V480" but in sheet 1 Sun and Fire are separated by a space. This may make it difficult to get a match without some sort of "fuzzy matching"
 
Upvote 0
Barry, I know it's confusing, I have to try and translate it :rolleyes:

You are correct in what you say, is there a way to just look for the numeric digits in the field (ie 380, 44, 580, etc) and use that along with the PO No in Col "A" . So in sheet 2 it would look for PO No 80 + 580 in sheet 1
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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