+ Reply to Thread
Results 1 to 9 of 9

Vlookup based on cell having data

  1. #1
    Forum Contributor
    Join Date
    11-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    200

    Vlookup based on cell having data

    I have a sheet (attached) in which data will be entered in columns A-G. And H is a vlookup value which will be locked and users will not be able to edit. This is a running sheet with several users and since I don't want to monitor this on a daily basis and don't want to copy/paste the vlookup formula into hundreds of empty lines to stay out in front of it, I want column H to populate with the Vlookup formula ONLY when there is a value entered in column G of that same row. In addition and separately, when a value is typed in column A, I want it to put ALL BORDERS on the next row (columns A-H). Thanks.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-15-2017
    Location
    kanata, ontario, canada
    MS-Off Ver
    MS 365
    Posts
    37

    Re: Vlookup based on cell having data

    Here's one solution. Do an If condition

    =IFNA(VLOOKUP(G6,Sheet2!A:B,2,FALSE),"")

  3. #3
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Vlookup based on cell having data

    In sheet1 module code put next code
    Please Login or Register  to view this content.
    Attached Files Attached Files
    - Battle without fear gives no glory - Just try

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,299

    Re: Vlookup based on cell having data

    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  5. #5
    Forum Contributor
    Join Date
    11-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    200

    Re: Vlookup based on cell having data

    This worked great but I forgot one thing. I added 3 more columns (I, J, & K) and I also need the formula populated in column Kx: (Ix-Jx)/Ix in which x is the current row #. Thanks.
    Attached Files Attached Files
    Last edited by backyardfun; 01-14-2024 at 05:31 PM.

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Vlookup based on cell having data

    See next code
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Vlookup based on cell having data

    Another one a bit nicer from sintek's code
    Please Login or Register  to view this content.

  8. #8
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,299

    Re: Vlookup based on cell having data

    Please Login or Register  to view this content.

  9. #9
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Vlookup based on cell having data

    I also need the formula populated in column Kx: (Ix-Jx)/Ix
    Please try in K2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Replies: 4
    Last Post: 02-18-2023, 10:18 AM
  2. Need Help figuring out - vLOOKUP to Extract Data Based on a Value in a Cell
    By jtang128 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-19-2022, 12:01 AM
  3. [SOLVED] Trying to use IF OR with VLOOKUP to pull cell data based on one of two conditions
    By jsagolf in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-12-2020, 10:58 PM
  4. Getting cell content based on multiple columns of data (Vlookup? IndexMatch?)
    By markhooten in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-11-2017, 04:48 PM
  5. Replies: 7
    Last Post: 07-21-2014, 12:10 AM
  6. Auto Populate cell based on Drop Down list in another cell (VLookup)
    By alialmoore in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-27-2013, 04:07 PM
  7. Replies: 2
    Last Post: 04-04-2013, 10:32 AM

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