+ Reply to Thread
Results 1 to 5 of 5

VLookup 2 instances in a table with 2 instances horizontal and vertical

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    VLookup 2 instances in a table with 2 instances horizontal and vertical

    Hi

    Please help on the attached,

    I have a table of kms from one location to another

    I would like to verify kms(Distance) from one location to another

    E.g From ALN to ROS is 676 kms

    Tables of KMs (Kms Tabs)
    Verify Kms (Loads Tabs)

    I am looking for a formula to verify on Column D

    Thank you in advance
    Attached Files Attached Files

  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,778

    Re: VLookup 2 instances in a table with 2 instances horizontal and vertical

    Try this:

    =INDEX(Kms!$B$3:$D$5,MATCH(Loaded!A3,Kms!$A$3:$A$5,0),MATCH(Loaded!B3,Kms!$B$2:$D$2,0))=C3
    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
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: VLookup 2 instances in a table with 2 instances horizontal and vertical

    Another option:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-03-2013
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    82

    Re: VLookup 2 instances in a table with 2 instances horizontal and vertical

    Thank you, it works.

    Is there a tweak in the formula, where I can bring back the digits from the table, so as to do a variance check

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,552

    Re: VLookup 2 instances in a table with 2 instances horizontal and vertical

    To get the numeric value omit the "=C3" from either of the formulas.
    i.e. =INDEX(Kms!$B$3:$D$5,MATCH(Loaded!A3,Kms!$A$3:$A$5,0),MATCH(Loaded!B3,Kms!$B$2:$D$2,0))
    Or =SUMPRODUCT(--(A3=Kms!$A$3:$A$5)*(--(Loaded!B3=Kms!$B$2:$D$2)),Kms!$B$3:$D$5)
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. return all instances matching criteria acrros/vertical
    By donnIeDorian in forum Excel General
    Replies: 3
    Last Post: 06-14-2017, 05:31 AM
  2. [SOLVED] Vlookup query - looking up from a horizontal table to deliver numbers to a vertical table
    By adam_d_john in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-21-2017, 09:43 PM
  3. [SOLVED] Horizontal and vertical VLOOKUP in a table
    By Bax in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-27-2014, 07:10 AM
  4. [SOLVED] Complex VLOOKUP, multiple instances vertical, return subsequent instances horizontally
    By Miles_2804 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-12-2013, 11:54 AM
  5. Replies: 0
    Last Post: 04-11-2013, 10:18 AM
  6. [SOLVED] How to create vertical list based on horizontal instances
    By escobf in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-03-2013, 10:31 AM
  7. Replies: 3
    Last Post: 07-18-2012, 11:53 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