+ Reply to Thread
Results 1 to 6 of 6

Vlookup function and write corresponding ID

  1. #1
    Registered User
    Join Date
    05-09-2022
    Location
    Chile
    MS-Off Ver
    365
    Posts
    8

    Vlookup function and write corresponding ID

    Hello!... Im having issues making a Vlookup function to do the following in this image. What I need is to search in Column E for any hit in column A and then write in Column C the corresponding FOLIO of COlumn F, if there is any value found. For example. If the value 302.735 is found in Column E. It should write in cell C2 the value 18759, which corresponds to its FOLIO of that value, if nothing is found, on that cell there should be a N/A or something. THanks for the help
    Capture.PNG

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Vlookup function and write corresponding ID

    Welcome to the forum.

    Try this:

    =VLOOKUP(A2,$£$2:$F$500,2,0)

    If that doesn't work, then there are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-09-2022
    Location
    Chile
    MS-Off Ver
    365
    Posts
    8

    Re: Vlookup function and write corresponding ID

    For some reason it doesn't works, it gives me an error. Excel says there is a problem with the formula
    Last edited by AliGW; 05-09-2022 at 04:24 PM. Reason: PLEASE don't quote unnecessarily

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Vlookup function and write corresponding ID

    Try this:

    =VLOOKUP(A2,$E$2:$F$500,2,0)

    or this:

    =VLOOKUP(A2;$E$2:$F$500;2;0)

  5. #5
    Registered User
    Join Date
    05-09-2022
    Location
    Chile
    MS-Off Ver
    365
    Posts
    8

    Re: Vlookup function and write corresponding ID

    Thank! It works!... but I fail to get it why it works lol. =VLOOKUP(lookup_value;table_array;col_index_num;[range_lookup]).... So col_index_num is 2 and [range_lookup] is 0.. but what those means?
    Last edited by AliGW; 05-10-2022 at 12:35 AM. Reason: PLEASE don't quote unnecessarily

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Vlookup function and write corresponding ID

    Wrong!

    =VLOOKUP(lookup_value;table_array;col_index_num;lookup_type)

    Type 0 or FALSE gives an exact match.

    https://support.microsoft.com/en-us/...8-93a18ad188a1

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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] Need a different way to write this formula VLOOKUP
    By g1terra in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-27-2017, 09:53 PM
  2. How to write VBA code for vlookup function
    By Terressa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2015, 05:36 AM
  3. [SOLVED] How to write Macro that could cut and paste data
    By ims0phie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-06-2013, 11:34 AM
  4. [SOLVED] RE-write if function with isna function for more values
    By funtastic in forum Excel General
    Replies: 6
    Last Post: 07-12-2012, 04:33 AM
  5. macro to write the vlookup
    By ronlau123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-09-2011, 12:17 AM
  6. How to write a macro to replace vlookup function
    By catchme1nce in forum Excel General
    Replies: 0
    Last Post: 07-07-2010, 04:34 AM
  7. [SOLVED] how do I write a vlookup function within an iserror function so t.
    By JBLeeds in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2005, 07:06 AM

Tags for this Thread

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