Solved

Filter pc-names (v-lookup?)

Posted on 2014-07-22
10
129 Views
Last Modified: 2014-07-24
Hi,

I have an Excel with 2 sheets. Each sheet has a list of pc-names (in a column).

First sheet has all pc-names with owner, department etc. Second sheet contains pc-names which needs to be matched to first sheet. In other words: we need to know which pc (of second sheet) belong to who (data on first sheet).

Hope this is clear. Plase advise.


J.
0
Comment
Question by:janhoedt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
10 Comments
 
LVL 24

Expert Comment

by:Steve
ID: 40211433
Could you post a simple example file in a format similar to your file.

It will be easier to create the required formula with this.

As you may need VLOOKUP or an INDEX&MATCH.

ATB
Steve.
0
 
LVL 24

Expert Comment

by:Steve
ID: 40211439
Attahced is a ver simple example of a VLOOKUP.
Having your file layout will make life a lot easier to get a tailored solution.
C--Users-shall-Desktop-Vlookup-Example.x
0
 
LVL 19

Expert Comment

by:helpfinder
ID: 40211442
basically VLOOKUP, but it depends on the data structure. Do you have, in 1st sheet, pc names in separate cell or it is combined with other data in one cell?
Check my sample how to use VLOOKUP applied to your request
sample.xlsx
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

Author Comment

by:janhoedt
ID: 40211750
0
 
LVL 19

Expert Comment

by:helpfinder
ID: 40211922
Based on your screenshots it is possible.
As I understand it yoi will check if hostname in tab2 (column A) exists in tab1 (column E).
Result of this comparison could be in column B of tab2. Do you want to match some value from tab1 as result or som text like OK and MISSING or?
0
 
LVL 24

Expert Comment

by:Steve
ID: 40213566
OK, looking at the two immages you will need to use INDEX and MATCH together rather than a VLOOKUP.
This is due to the computer name looked up being in a more right column than the name being retreived.

The formula would look like:
=INDEX(Sheet1!$C$2:$C$999,MATCH(Sheet2!A3,Sheet1!$E$2:$E$999,0))
(the 999 may need to be increased or decreased based upon the number of rows on sheet 1)

I have also written the following, which checks for existence of the Computername in the list before doing the search:
=IF(COUNTIF(Sheet1!E:E,Sheet2!A2)>0,INDEX(Sheet1!$C$2:$C$999,MATCH(Sheet2!A3,Sheet1!$E$2:$E$999,0)),"Not in list")

The attached file show these as working examples.
Hoefully this will get you in the right direction.

ATB
Steve.
C--Users-shall-Desktop-IndexMatch.xlsx
0
 

Author Comment

by:janhoedt
ID: 40213767
Thanks! But I'm not fully getting it.
In att. the Excelsheet as example. Goal is to match  the sheet "pc's to be migrated"  to their owner (=sheet "ALL pc's and their owners).
lookup.xlsx
0
 

Author Comment

by:janhoedt
ID: 40213918
I hope I was clear in last update. Hereby a screenshot from what I'm trying to achieve.
lookup.jpg
0
 
LVL 19

Expert Comment

by:helpfinder
ID: 40213926
no problem to do it like you want, but for VLOOKUP you should have lookup values in tab1 in front of data you want to enter when positive match. That´s why I moved column with hostnames (E) infron of Account name and department.
See sample in attachment
lookup-sample.xlsx
0
 
LVL 24

Accepted Solution

by:
Steve earned 500 total points
ID: 40214346
The two formula you need are:

=IF(COUNTIF('ALL PC''s and their owners'!E:E,A6)>0,INDEX('ALL PC''s and their owners'!$C$2:$C$999,MATCH(A6,'ALL PC''s and their owners'!$E$2:$E$999,0)),"Not in list")

and

=IF(COUNTIF('ALL PC''s and their owners'!E:E,A6)>0,INDEX('ALL PC''s and their owners'!$D$2:$D$999,MATCH(A6,'ALL PC''s and their owners'!$E$2:$E$999,0)),"Not in list")

Plase see attached.
28481079lookup-sample.xlsx
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Paste Table from Excel VBA to the PowerPoint 2010 18 57
Excel Auto-Complete lines 4 32
Userform to show a range in excel. 3 34
multiple unique values in different columns 15 37
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question