Forum Discussion
Lookup
- Jun 28, 2023
Hi Mike_in_Apex this function should work =IFNA(VLOOKUP(lookup range;lookup value;result column;FALSE);0)
Regards
https://www.upwork.com/freelancers/~01cf0fc8446b00f44c
If you are using excel 2016, you can use the combination of VLOOKUP and IFERROR functions to get your desired result.
Here is an example formula for implementation:
=IFERROR(VLOOKUP(location_number, lookup_array, column_index, FALSE), 0)
Replace the following parts in the formula:
- location_number: The cell reference or value representing the location number you want to search.
- lookup_array: The range of cells where you have the locations and their corresponding results. Make sure the location numbers are in the leftmost column of this range.
- column_index: The column number in the lookup_array from which you want to retrieve the result. Adjust this number based on your actual setup.
The formula will perform a VLOOKUP to search for the location number in the lookup_array. If a match is found, it will return the corresponding result. If there is no match, the IFERROR function will capture the error and return a "0" instead.
Using IFERROR in conjunction with VLOOKUP is a good approach in this scenario, as it simplifies the formula and handles the error condition effectively.
The steps were processed with the help of AI.