Seeking Help on how to write a complex lookup formula

Iccreamann21

New Member
Joined
Sep 25, 2013
Messages
41
Office Version
  1. 365
Platform
  1. Windows
I want to say thank you for clicking on my post and and thank for any help you might be able to provide. What I am trying to accomplish is for an old BBS that I help assist run. I am trying to provide helpful information for the small user base that still continues to play.

Attached below is the excel workbook I am working on.

I wrote a vlookup, but ran into several problems:
1. there are other characters in the cell, I tried to do true instead of false for the range_lookup but was not successful.
2. there are also owners of the same item. So when I tried to do a vlookup it gives me the #NA because it sees multiple items with multi owners.

https://drive.google.com/open?id=17RF12cACS2aEiuTUt5cI50IqDoZZxQ2o

The first worksheet is the nice layout I would like to send to the users. The 2nd tab is the data I am able to copy from a txt file off the server.

Once again thank you for taking your time.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
On the List worksheet i was using:
The vlookup i was using in cell F4 was: =VLOOKUP(B4,'Server List'!A:B,2,TRUE)
The vlookup i was using in cell F26 was: =VLOOKUP(B26,'Server List'!A:B,2,TRUE) .. i was also using this same in G26 and H26, but i receive #NA because it finds the item multiple times with different owners.

On the Server List worksheet:
I couldn't find a formula to put into B1:B220 to only pull out the owner names from A1:A220.

Hopefully this information will help a bit more.

Thank you
 
Upvote 0
vlookup will only work with the first value in a sorted list. Have a read around INDEX / MATCH. Later you can fix the #NA wrapping formulas in =IFERROR( *****,"") but only when you have it working as required
 
Upvote 0
Iccreamann21, Good morning.

mole999, Good morning (Greetings from Brazil)

"
On the Server List worksheet:I couldn't find a formula to put into B1:B220 to only pull out the owner names from A1:A220.

Try to use:
Server List --> B1 -->
=IFERROR(MID(A1,SEARCH("USER ",A1)+5,500),"-----------")

Is that what you want?
I hope it helps.
 
Upvote 0
Solution
Thank you, that was the solution I was looking for to extract the user name from the server data file.
Now I need help with the vlookup portion on the LIST tab. From what mole99 is saying I would need to use and index/match formula. Any suggestions on how to write that?
Attached is the updated workbook.
Thank you all so much for taking your time.

https://drive.google.com/open?id=15--VMxipVKcyd4aVk7CEVTE8eQtUZgf_
 
Upvote 0
After browsing through a few posts I found a post with the similar issue. Here is what I tried, but still not working.

Antlered Helm

<tbody>
</tbody>
Item belt of faith User Sprawl

<tbody>
</tbody>
Belt Of FaithSprawl
Arcane Tome

<tbody>
</tbody>
Item antlered helm User Dread

<tbody>
</tbody>
Antlered HelmDreadDread
Antlered Helm
Item crescent moon staff Map 15 Room 909

<tbody>
</tbody>
Crescent Moon StaffMap 15 Room 909
Bloodstone Ring

<tbody>
</tbody>
Item holy medallion User TheDude

<tbody>
</tbody>
Holy MedallionFrank

<tbody>
</tbody>


A: is list of items
B: is data pulled for text file
C: i tried to do a index/match , but I still get #NA .. i tried =INDEX(A:A,MATCH(B:B,A:A))
D: Works perfectly! I am able to pull the correct data.
E: Keep displaying the very first owner if there are multiple owners. =VLOOKUP(A:A,C:D,2,FALSE)

Sorry for being such a rookie. Any help would be appreciated and I you need more information. I will do my best to provide.

Thank you
 
Upvote 0

Forum statistics

Threads
1,214,821
Messages
6,121,762
Members
449,048
Latest member
excelknuckles

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