A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Yep - VLOOKUP and HLOOKUP return the value found - you want to return the address of the cell containing that value.
If your data is in A1:ZZ1000 and you want every cell containing "x", the easiest approach in modern Excel is FILTER combined with ADDRESS and ROW/COLUMN:
=FILTER(ADDRESS(ROW(A1:ZZ1000),COLUMN(A1:ZZ1000),4),A1:ZZ1000="x")
This will return a spilled list such as:
T41 Z102 AB306 ...
The ADDRESS function generates the cell reference for every cell in the range, while FILTER keeps only the references where the corresponding cell contains "x".
If you want to search the entire worksheet, you shouldn't use the entire worksheet as the range because that can be very large and inefficient. Instead, specify the actual area containing your data, such as A1:ZZ1000.
If you are using an older version of Excel that doesn't have FILTER, there are other formulas that can do this, but the formula is considerably more complicated.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin