Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Filter pc-names (v-lookup?)

Posted on 2014-07-22
10
Medium Priority
?
134 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 2000 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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

722 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