Fix an Excel IF and VLOOKUP Formula for Photo Status
Question details
Check whether custom identification numbers appear on another worksheet and return a photo status for each ID.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains IDs that need to be checked against the Silhouette Master List worksheet.
- Observed behavior
- The VLOOKUP formula is missing the required column index argument, so it cannot return the intended Yes Photo or No Photo result.
Confirm that the ID to check is in D1 and that the reference IDs are in cells C1:C1082 on the Silhouette Master List worksheet. Check that IDs use consistent text or number formats, especially when they contain leading zeros.
Add the Missing VLOOKUP Argument and Check for a Match
Use this exact-match formula to return Yes Photo when an ID exists in the master list and No Photo when it does not.
VLOOKUP needs a column index number; use 1 to return a value from the first and only column in the lookup range. FALSE requests an exact match, and ISNA detects the #N/A result when no match is found.
On the worksheet containing the ID in D1, click the cell where you want the photo status to appear.
In the formula bar, enter =IF(ISNA(VLOOKUP(D1,'Silhouette Master List'!$C$1:$C$1082,1,FALSE)),"No Photo","Yes Photo") and press Enter.
Drag the result cell's fill handle down to check additional IDs in column D. Adjust the worksheet name or lookup range in the formula if your master list is different.

Check Photo IDs with VLOOKUP in WPS Spreadsheets
Open your workbook in WPS Spreadsheets and use the same IF and VLOOKUP formula to check IDs against the master list.
- 1. Open the workbook: In WPS Spreadsheets, select Open and choose the workbook containing the IDs and master list.
- 2. Select a result cell: On the ID worksheet, click the cell where you want the status for D1 to appear.
- 3. Enter the lookup formula: Enter =IF(ISNA(VLOOKUP(D1,'Silhouette Master List'!$C$1:$C$1082,1,FALSE)),"No Photo","Yes Photo") in the formula bar and press Enter.
- 4. Fill and save: Drag the cell's fill handle down for the remaining IDs, then select Save to keep the changes.

Frequently Asked Questions
Why does VLOOKUP need the number 1 in this formula?
The third VLOOKUP argument specifies which column of the lookup range to return. Because C1:C1082 is a one-column range, the column index must be 1.
What does FALSE do in VLOOKUP?
FALSE tells VLOOKUP to find an exact match for the ID rather than an approximate match.
Why does an existing ID return No Photo?
Check that the ID and its counterpart in the master list have matching formats and values. A number stored as text or an ID with missing leading zeros may not match.
Can I use a different worksheet or lookup range?
Yes. Replace 'Silhouette Master List'!$C$1:$C$1082 in the formula with the worksheet name and range containing your IDs. Keep the column index at 1 for a single-column range.




