Have any question?
(+91) 9899366218
info@nurturetechacademy.in
Register Login
No apps configured. Please contact your administrator.

Login with your site account

Lost your password?

Not a member yet? Register now

Nurture Tech Academy Nurture Tech Academy
  • Excel Course
  • Corporate Training
  • Portfolio
  • Blog
  • Excel Assessment
  • Contact
    • Cart

      0
  • Excel Course
  • Corporate Training
  • Portfolio
  • Blog
  • Excel Assessment
  • Contact

Blog Excel

  • Home
  • Excel
  • How to apply Vlookup on duplicate values

How to apply Vlookup on duplicate values

  • Posted by Lokesh Lalwani
  • Categories Excel
  • Date June 4, 2017
  • Comments 0 comment

Ever came across a situation where you need to apply Vlookup on duplicate lookup values?? Like the one below…

 

1

 

Note:- Download the Exercise workbook from here.

Here we have course ID repeating in “Lookup Table”. If we simply apply Vlookup in result table, where course ID “A1005” is appearing multiple times, it will always come up with the first instance i.e.  participant “Aakash”. Now to get rid of this common problem, we have few solutions. In this post I will share one of the easiest ways to do this task.

As you may have noticed, I intentionally kept column “A” blank. Here we will create unique values from column “B”, so that it would be easy to apply Vlookup.

Formula to create unique values:-

=COUNTIF($B$3:B3,B3)&”-“&B3

Just type in the above formula in cell “A3” and copy and paste it till cell “A9”. This formula will count the number of times a course ID coming in the given range as this formula goes down. After that it will join the count with its course ID. This way we will get unique course IDs.

 

2

 

As you may notice, in cell “A7” the course ID “A1005” occurred second time since the beginning of the data, so it is taking this as “2-A1005” and in cell “A9” as “3-A1005” accordingly.

Now in cell “H3” of “Result Table” we can enter the following vlookup formula with a slight change in lookup value. The reason we are not taking lookup value as cell “G3” simply because it has duplicate values, now as per our new field i.e. “Unique Course ID” in “Lookup table” it could be “1-A1005” or “2-A1005” or may be “3-A1005” etc. but not just as “A-1005”.

The formula will be:-

=VLOOKUP(COUNTIF($G$3:G3,G3)&”-“&G3,$A$3:$D$9,4,FALSE)

After putting the above formula in cell “H3”, just copy and paste it down.

 

3

 

Note:- Download the Exercise workbook from here.

411 total views, 3 views today

Tag:Excel, Vlookup

  • Tweet
  • Pinterest
Lokesh Lalwani
    Hey there, I am Lokesh Lalwani. I just love Excel and that is why i am here. We founded Nurture Tech Academy with only one goal in mind to make you SUPERHERO in Excel, Yes and that's true. Here at Nurture Tech Academy we work all day and make some impressive Excel Videos, Blog Posts and other stuff just to take you one step closer to become a Smart Excel user.

    Previous post

    Magic of IFERROR in Excel……
    June 4, 2017

    Next post

    Pasting Data on Filtered Rows
    13 June, 2017

    You may also like

    • Heat Map Chart through Radio Button in Excel
      27 December, 2018
    • How to Create a Histogram Chart in Excel
      22 November, 2018
    • Count Functions in MS Excel
      12 November, 2018

    Leave A Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    Join our Newsletter

    Latest Courses

    Excel – Beginner to Advanced (In-depth)

    Excel – Beginner to Advanced (In-depth)

    ₹5,990.00

    logo-eduma-the-best-lms-wordpress-theme

    (+91) 9899 366 218

    info@nurturetechacademy.in

    Other

    • Blog
    • Corporate Training
    • Portfolio
    • Contact

    Learn MS Excel

    Microsoft Excel Learning
    Learn MS Excel Online

    Corporate Training

    Online Corporate Training Programs
    Corporate Training Companies in Delhi

    Online Training

    MS Excel Training Courses
    MS Excel Online Training
    MS Excel Course Online Training
    MS Excel Online Training in Delhi
    Join our Newsletter
    Why Wait? Start with our awesome Excel updates for free....