+ Reply to Thread
Results 1 to 8 of 8

How to print value by matching data on two columns..

  1. #1
    Registered User
    Join Date
    04-27-2015
    Location
    Perth
    MS-Off Ver
    office 2010
    Posts
    76

    How to print value by matching data on two columns..

    I have data in column C than I need to print correctly in column G by matching the contents of column E with column A and than matching column F with column B. I know how to do Vlookup on a single column but I couldn't figure out this one. I need the value in column G as shown clearly in image and also attached excel.

    Sample.png
    Attached Files Attached Files

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

    Re: How to print value by matching data on two columns..

    Try pasting the following formula in G2 and then double click the fill handle to copy down:
    Please Login or Register  to view this content.
    Let me 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.

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

    Re: How to print value by matching data on two columns..

    On the off chance that the reason to do this is to get a list sorted (descending) by value. Look at columns I:K where K was created by copying column C and then sorting largest to smallest. The entries in columns I and J are then populated respectively with the formulas:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Here is a copy of your file: Sorted List.xlsx

  4. #4
    Registered User
    Join Date
    04-27-2015
    Location
    Perth
    MS-Off Ver
    office 2010
    Posts
    76

    Re: How to print value by matching data on two columns..

    thank you jetemc for the formula. Actually I add data to the excel everyday so if row number increases from 23 to 455 or any other number then I have to change A$23 to A$455, B$23 to B$455 and C$23 to C$455 every time ?

  5. #5
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2007
    Posts
    352

    Re: How to print value by matching data on two columns..

    Quote Originally Posted by mohit999 View Post
    thank you jetemc for the formula. Actually I add data to the excel everyday so if row number increases from 23 to 455 or any other number then I have to change A$23 to A$455, B$23 to B$455 and C$23 to C$455 every time ?
    no need to update again and again just change once and it will be same.
    If answer helped you say Thanks by Add Reputation

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

    Re: How to print value by matching data on two columns..

    Quote Originally Posted by mohit999 View Post
    Actually I add data to the excel everyday so if row number increases from 23 to 455 or any other number then I have to change A$23 to A$455, B$23 to B$455 and C$23 to C$455 every time ?
    I found an problem with the formulas. The formula that was retrieving the names was getting duplicates such as Down Time for both of the values of 49.5. We need to change both the name retrieval* and date retrieval formulas, respectively, as follows:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    *Note: the name retrieval formula is an array formula meaning that after it is pasted you'll need to press the F2 key and then press the Ctrl, Shift and Enter keys simultaneously to activate it. Also note that both formulas now access whole columns at a time which means that you don't have to change the range when new data is added. This is not my preferred way to write a formula as it slows down calculation and makes it nearly impossible to evaluate the formula if there is an error, however in the circumstance you mention in post #4 it is perhaps the best option.
    Here is a copy of the file with the new formulas applied in columns I and J: Sorted List.xlsx
    Let me know if you have any questions.

  7. #7
    Registered User
    Join Date
    04-27-2015
    Location
    Perth
    MS-Off Ver
    office 2010
    Posts
    76

    Re: How to print value by matching data on two columns..

    Thank you JeteMc.

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

    Re: How to print value by matching data on two columns..

    You're Welcome and thank you for the feedback. If you haven't already please take a moment to mark the thread 'Solved' using the thread tools link above your first post. I hope that you have a good day.

+ 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. Matching Two Columns' Data
    By siralexduke in forum Excel General
    Replies: 3
    Last Post: 03-12-2015, 04:09 AM
  2. Replies: 0
    Last Post: 02-13-2014, 06:41 AM
  3. Replies: 3
    Last Post: 09-14-2013, 06:54 PM
  4. [SOLVED] Align 3 columns with 2 columns of matching data
    By loritee in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2013, 10:36 AM
  5. Replies: 2
    Last Post: 04-18-2013, 05:56 PM
  6. Align 3 columns with 2 columns of matching data
    By bearnbillie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2012, 08:33 AM
  7. [SOLVED] MATCHING DATA IN COLUMNS
    By JohnS in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-21-2005, 11:15 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