# Vlookup with Running Countif

**Vlookup with Running Countif**&#x20;

This Concept is used for the data where the Lookup values are not unique in Table Array.

**Objective**

To make the Lookup column unique using running countif concept and find out the data when required.

Like in below example, Id is not unique, so a New\_Id is created using the running countif concept. Refer to the attached sheet for detailed explanation.

![](/files/-LRw73wzmjaJa_-qM6SE)

{% file src="/files/-LRw7jxXxDUice7eiEc\_" %}
Vlookup with Running Countif Formula
{% endfile %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://books-gyansetu.gitbook.io/advanced-excel/vlookup-with-running-countif.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
