

For example, if you have one worksheet with names and phone numbers and another sheet with names and email addresses, you can put the email addresses next to the names and phone numbers by using VLOOKUP. Using VLOOKUP, you can not only search for individual values, but also combine two worksheets into one. Otherwise, the INDEX function will return the wrong registrar.Enter the value whose data you're searching for. For instance, if record 1 is in row 2, you will need to substitute ROW($B$2:$B$7) with ROW($B$2:$B$7)-1. However, if your data begins in a different row, you will need to tweak the formula to make this work. This is fine if the table begins in row 1 because record 1 is in row 1. The row number of the record is being used as a stand-in for the records position in the table.INDEX returns the value at a specified position in an array.This is just to guarantee if no matches are found, the INDEX function will return an error. 2000000 is an arbitrary number greater than the number of rows in an Excel sheet.For records that do not meet the criteria, the number 2000000 is stored in the array. For records that meet the criteria (i.e., domain name matches and registrar is not blank) the row number of the record is stored in the array. The IF statements inside the MIN function form an array of numeric values.Paste this into the formula bar and press Ctrl+ Shift+ Enter. You can use an array formula to do this look up. I've experimented a bit with Index & Match but wasn't able to get any closer. Is there a way to get a VLookup (or other formula) to return only a corresponding registrar that is NOT blank?

This causes my vlookup from sheet B, to find the first match of the domain name and return the corresponding registrar, which ends up being blank (returns zero). The problem is that on sheet A, there are multiple instances of the domain where it was with other registrars in the past, but those cells have been erased. I desire to have the registrar in a 4th column of sheet B for each domain. I need to get the registrar name from sheet A, to be next to the corresponding domain name in sheet B.ĬSV example of sheet A: ,9.98,03/24/13ĬSV example of sheet B: ,1200,04/01/14 I have a list of domain names and their registrars on one sheet, and the same list of domains and other data (but not registrars) on another sheet.
