+ Reply to Thread
Results 1 to 6 of 6

Get the value of a column based on the value of another column

  1. #1
    Registered User
    Join Date
    11-03-2020
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2019
    Posts
    18

    Get the value of a column based on the value of another column

    Hello,

    I have a large Table of various data. Column C is a text string, and Column F is a number.

    How do I get the value of Column C, if Column F matches a particular cell reference/number.

    I cannot use VLOOKUP as the columns are not to the left.

    Thank you.

  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
    79,416

    Re: Get the value of a column based on the value of another column

    Use INDEX MATCH:

    =INDEX(C:C,MATCH(lookup_value,F:F,0))
    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
    11-03-2020
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2019
    Posts
    18

    Re: Get the value of a column based on the value of another column

    Many thanks!

  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
    79,416

    Re: Get the value of a column based on the value of another column

    Thanks for the rep.

  5. #5
    Registered User
    Join Date
    11-03-2020
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2019
    Posts
    18

    Re: Get the value of a column based on the value of another column

    Quote Originally Posted by AliGW View Post
    Use INDEX MATCH:

    =INDEX(C:C,MATCH(lookup_value,F:F,0))
    Hi again,

    Thank you for that. Is it possible to add another condition to this?

    For example, How do I get the value of Column C, if Column F and Column B matches two different cell references?

  6. #6
    Registered User
    Join Date
    11-03-2020
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2019
    Posts
    18

    Re: Get the value of a column based on the value of another column

    This worked for me: =INDEX(rng1,MATCH(1,INDEX((A1=rng2)*(B1=rng3)*(C1=rng4),0,1),0))

    Found the solution at exceljet.net.

+ 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. VBA - Creating new column (Columns M) with values based on previous column (Column L)
    By will12321 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2020, 03:36 AM
  2. Replies: 1
    Last Post: 04-12-2019, 08:15 PM
  3. Replies: 3
    Last Post: 08-27-2017, 05:20 PM
  4. [SOLVED] Sum values in Column A, based on dates in Column B & if value in Column C = True
    By rtcwlomax in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-25-2016, 12:03 PM
  5. Replies: 3
    Last Post: 03-22-2014, 08:35 AM
  6. Replies: 2
    Last Post: 06-06-2013, 08:29 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