Nested VLOOKUP with IF

Status
Not open for further replies.

BobbyG

New Member
Joined
Apr 14, 2010
Messages
6
This one is beating me! :(
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
I have data in 8 worksheets and i am searching the data and summarizing the data for results on a new worksheet, sort of a Dashboard.
<o:p></o:p>
GOAL: <o:p></o:p>
1. To append all ServerNames from different sources into 1 column and remove duplicates.<o:p></o:p>
2. To determine what server are being backed up and what ones are not.<o:p></o:p>
Data Files:<o:p></o:p>
1. ServerNames from 4 different sources from different technical teams. <o:p></o:p>
2. ServerNames from 4 different sources from backup software.
<o:p></o:p>
<o:p></o:p>
Issues 1:<o:p></o:p>
I want to take all ServerNames from all 8 sources and put them in one column and remove duplicates on a new worksheet.<o:p></o:p>
Trouble finding a way to read each worksheet and append them to a new worksheet with duplicates removed.<o:p></o:p>
So, read sheet 1, create new column in a new worksheet until cell is blank, read next sheet and append until blank cell is found, etc… <o:p></o:p>
This new worksheet becomes the master server list (Dashboard).<o:p></o:p>
Sample code I am using for this:<o:p></o:p>
None – just cutting and pasting into new column and removing duplicates by hand.
<o:p></o:p>
Issues 2:<o:p></o:p>
I want to read each ServerName from the master server list then look in each Backup worksheet and see if the name matches. If there is a match put name of backup software in next column next to ServerName. Do this for all 4 backup data sources per ServerName. If ServerName is not in any of the three backup data sources then write “Not Backed up”.
<o:p></o:p>
<o:p></o:p>
Sample code I am using for this:<o:p></o:p>
=(IF(VLOOKUP(B8,BECH,2,FALSE)<>"","BE-CH",IF(VLOOKUP(B8,BENY,2,FALSE)<>"","BE-NY",IF(VLOOKUP(B8,AVADRT,2,FALSE)<>"","AVA-DRT",IF(VLOOKUP(B8,AVAHQ,2,FALSE)<>"","AVA-HQ","Not Backed Up")))))<o:p></o:p>
Results: Just the first VLOOKUP works and returns the correct value. The rest return “Not Backed Up”.<o:p></o:p>
BECH, BENY, AVADRT, AVAHQ are all Group Names assign to the backup data sources.
<o:p></o:p>
Output sample hoping for:<o:p></o:p>
ServerName BE-CH<o:p></o:p>
ServerName BE-NY<o:p></o:p>
ServerName AVA-DRT<o:p></o:p>
ServerName Not Backed UP<o:p></o:p>
ServerName BE-CH<o:p></o:p>
Etc……
<o:p></o:p>
<o:p></o:p>
Thank you in advance for any help you can supply!
<o:p></o:p>
<o:p></o:p>
Bob<o:p></o:p>
 
Last edited:

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Status
Not open for further replies.

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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