# VLOOKUP Prices by SKU: Fix 001 vs 1 and Stray Spaces

**Use case:** 

Look up product name and price for each sales line by SKU, like a VLOOKUP. Keys such as 1, ' 002 ', 3 and 4.0 match the price list codes 001, 002, 003 and 004, so there are no #N/A errors from leading zeros or spaces. Lines with an unknown SKU stay in the result and are flagged unmatched. Paste your own tables.

## Input

```json
{
  "leftItems": [
    {
      "line": 1,
      "sku": "1",
      "qty": 2
    },
    {
      "line": 2,
      "sku": " 002 ",
      "qty": 1
    },
    {
      "line": 3,
      "sku": 3,
      "qty": 5
    },
    {
      "line": 4,
      "sku": "4.0",
      "qty": 1
    },
    {
      "line": 5,
      "sku": "7",
      "qty": 9
    }
  ],
  "rightItems": [
    {
      "sku": "001",
      "product": "Widget",
      "price": 9.5
    },
    {
      "sku": "002",
      "product": "Gadget",
      "price": 12
    },
    {
      "sku": "003",
      "product": "Gizmo",
      "price": 3.25
    },
    {
      "sku": "004",
      "product": "Doohickey",
      "price": 40
    }
  ],
  "leftKeys": [
    "sku"
  ],
  "joinType": "left",
  "duplicateMatches": "first",
  "normTrim": true,
  "normCase": true,
  "normAccents": false,
  "normNumeric": true,
  "normPunctuation": false,
  "normRemoveSpaces": false,
  "rightColumns": [
    "product",
    "price"
  ],
  "collisionSuffix": "_right",
  "keepRightKeys": false,
  "addMatchStatus": true,
  "fuzzyMatch": false,
  "fuzzyThreshold": 0.88,
  "fuzzyMethod": "jaro-winkler",
  "fuzzyMaxComparisons": 4000000,
  "exports": [],
  "exportName": "joined",
  "escapeFormulas": true,
  "maxLeftRows": 100000,
  "maxRightRows": 500000,
  "maxOutputRows": 1000000,
  "maxFileSizeMb": 50,
  "csvInferTypes": true
}
```

## Output

```json
{
  "order_id": {
    "label": "Order"
  },
  "email": {
    "label": "Email (left)"
  },
  "amount": {
    "label": "Amount"
  },
  "name": {
    "label": "Name"
  },
  "plan": {
    "label": "Plan"
  },
  "_match_status": {
    "label": "Match",
    "format": "string"
  },
  "_fuzzy_score": {
    "label": "Fuzzy score",
    "format": "number"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The VLOOKUP for Datasets: Join & Match Two Tables Actor is ready to run with the inputs already set for "VLOOKUP Prices by SKU: Fix 001 vs 1 and Stray Spaces". [Sign up or log in](https://console.apify.com/create-task-from-example/6Pf1OIsUayc66ZMv8) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "VLOOKUP Prices by SKU: Fix 001 vs 1 and Stray Spaces" task

The VLOOKUP for Datasets: Join & Match Two Tables Actor will start running based on the input automatically. You can also change all the input fields, like left table: pasted rows, right table: pasted rows, and more, to match your specific use case.

### 3. Receive the "VLOOKUP Prices by SKU: Fix 001 vs 1 and Stray Spaces" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as order, email (left), amount, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "VLOOKUP Prices by SKU: Fix 001 vs 1 and Stray Spaces" task via API](https://apify.com/data-done-right/dataset-join-vlookup.md).

## About this Actor

This example demonstrates how to use [VLOOKUP for Datasets: Join & Match Two Tables](https://apify.com/data-done-right/dataset-join-vlookup.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/data-done-right/dataset-join-vlookup.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/data-done-right/dataset-join-vlookup.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
