+ Reply to Thread
Results 1 to 4 of 4

Adding a conditional IF to a VLOOKUP function formula

  1. #1
    Forum Contributor
    Join Date
    04-18-2011
    Location
    Jeddah
    MS-Off Ver
    Excel 2007
    Posts
    362

    Post Adding a conditional IF to a VLOOKUP function formula

    Hi everyone,

    Reference to the attached workbook, I have a formula in range G3:G58 that uses the VLOOKUP function to extract and return the data from the Data sheet, by matching the number in range C3:C58 with the number in A column of the Data sheet.

    My project sometimes requires that I overwrites one of the cell names in range E3:E58 with the same name as in range D3:D58 cells.

    I need please to edit the formula in range G3:G58 to return an equal time value in the respective row of range M3:M58 cells in the case that the name in range E3:E58 cell is the same as in the row of range D3:D58 cells.

    Example; reference to the attached workbook, E5 name was manually overwritten with the same name as in D5, therefore the expected new formula in G5 should return an equal time value as in M5 which happen to be in this case 1:21 instead of (1:25).

    Any help is highly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Adding a conditional IF to a VLOOKUP function formula

    is this what you want?
    =IFERROR(IF(D5=E5,M5,VLOOKUP(C5,DATA!$A:$E,5,0)),"")
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    04-18-2011
    Location
    Jeddah
    MS-Off Ver
    Excel 2007
    Posts
    362

    Re: Adding a conditional IF to a VLOOKUP function formula

    Yes it is, Many thanks

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Adding a conditional IF to a VLOOKUP function formula

    Great, glad I could help, AND thank you 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. How do you add a COPY function into a HYPERLINK/VLOOKUP?
    By rhelmig7 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-20-2019, 08:30 AM
  2. Help with adding ISBLANK to a VLOOKUP function
    By llubelczyk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2014, 02:10 PM
  3. [SOLVED] Adding a Conditional Item to VLOOKUP
    By sajanpatel15 in forum Excel General
    Replies: 2
    Last Post: 06-13-2013, 12:36 PM
  4. Conditional IF Function with a Vlookup
    By StormieL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-07-2013, 08:03 AM
  5. Replies: 2
    Last Post: 04-03-2012, 08:51 AM
  6. function for conditional adding
    By tanvir in forum Excel General
    Replies: 2
    Last Post: 06-30-2009, 12:14 PM
  7. [SOLVED] Adding a Macro to a VLookup Function
    By Wanda H. in forum Excel General
    Replies: 1
    Last Post: 08-16-2005, 04:05 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