evenyougreg
New Member
- Joined
- Oct 1, 2020
- Messages
- 26
- Office Version
- 365
- Platform
- Windows
In this example file, sheet1 is called List and sheet 2 is called VMs.
If there is a "Hostname" match between the 2 sheets, I would like to copy the "OS" cell and the "Env" cell over from "VMs" to the "List" sheet. If no match is found then it would be cool if something like "not found" was to fill the empty cells.
Thank you!!
If there is a "Hostname" match between the 2 sheets, I would like to copy the "OS" cell and the "Env" cell over from "VMs" to the "List" sheet. If no match is found then it would be cool if something like "not found" was to fill the empty cells.
Thank you!!
example.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | Hostname | VM/Physical | Power State | OS | Location | Env | ||
2 | l-centtest01 | VM | on | West | ||||
3 | l-ubu01 | VM | on | East | ||||
4 | l-ubu02 | VM | on | West | ||||
5 | l-webapp01 | VM | on | East | ||||
6 | l-webapp02 | VM | on | East | ||||
7 | m-iisapp01 | Physical | on | West | ||||
8 | m-iisapp02 | Physical | on | East | ||||
9 | m-poc01 | VM | on | East | ||||
10 | m-poc02 | VM | on | West | ||||
11 | m-sqldb01 | Physical | on | West | ||||
12 | m-dsc01 | VM | on | East | ||||
13 | m-dsc02 | VM | on | West | ||||
List |
example.xlsx | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Hostname | OS | Env | ||
2 | l-centtest01 | CentOS 7 | prod | ||
3 | l-ubu01 | Ubuntu 20.04 | prod | ||
4 | l-ubu02 | Ubuntu 20.04 | test | ||
5 | l-webapp01 | RHEL 7 | prod | ||
6 | l-webapp02 | RHEL 7 | prod | ||
7 | m-iisapp01 | Windows-2012ServerR2 | prod | ||
8 | m-iisapp02 | Windows-2012ServerR2 | prod | ||
9 | m-poc01 | Windows-2019Server | test | ||
10 | m-poc02 | Windows-2019Server | test | ||
11 | m-sqldb01 | Windows-2016Server | prod | ||
12 | m-sqldbtest | Windows-2016Server | test | ||
VMs |