+ Reply to Thread
Results 1 to 5 of 5

Vlookup with condition

  1. #1
    Forum Contributor
    Join Date
    02-15-2012
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2019
    Posts
    431

    Vlookup with condition

    Hi,

    Need a formula to lookup with condition.

    An excel file attached with details.

    Pl. help.

    Thanks,
    Nagesh.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: Vlookup with condition

    If the list is always in order of the Job-No, then that should do: =IF(F3<>F2,VLOOKUP($F3,$B$3:$C$6,2,0),0)
    If the Job-No are mixed, then another approach with countif may work.

  3. #3
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: Vlookup with condition

    If the Job-No are not sequential, try: =IF(COUNTIF($F$3:F3,F3)=1,VLOOKUP($F3,$B$3:$C$6,2,0),0) in J3 and pull down.

  4. #4
    Forum Contributor
    Join Date
    02-15-2012
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2019
    Posts
    431

    Re: Vlookup with condition

    Thank you ORoos.

    Since my Job No. column is not sorted, your 2nd formula is working fine.

    Thanks a Ton.

    Nagesh.

  5. #5
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: Vlookup with condition

    You are welcome Nagesh.
    Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Vlookup with If Condition - Help
    By GemBox in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-24-2016, 11:49 PM
  2. IF condition with Vlookup
    By LOVE2ALL in forum Excel General
    Replies: 3
    Last Post: 11-12-2015, 07:20 AM
  3. VLookup + If condition
    By denniswtlx in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-12-2013, 04:36 PM
  4. If condition with vlookup
    By excel5111987 in forum Excel General
    Replies: 2
    Last Post: 03-20-2012, 11:26 AM
  5. VLookup with condition
    By toclare84 in forum Excel General
    Replies: 3
    Last Post: 08-20-2010, 08:58 AM
  6. two condition for vlookup?
    By shital shah in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2006, 05:15 PM
  7. [SOLVED] VLOOKUP used only when IF condition is met
    By Bradley in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-22-2005, 01:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1