+ Reply to Thread
Results 1 to 4 of 4

Comparing 2 columns & returning with the corresponing value of 3rd column

  1. #1
    Registered User
    Join Date
    02-05-2016
    Location
    Bengaluru
    MS-Off Ver
    7
    Posts
    4

    Comparing 2 columns & returning with the corresponing value of 3rd column

    I need a help on this following situation;

    I have 3 columns with unique records. Column 1 has 60 rows & 2nd & 3rd Columns have 90 rows. Values in Column 1 are also appearing in the values of 2nd column. I need to find out values of 1st column in 2nd column & arrive at the corresponding value of 3rd column IN COLUMN 4;
    Example:

    A B C D
    1234 1225 A J
    1235 1226 B K
    1236 1227 C L
    1237 1228 D M
    1229 E
    1230 F
    1231 G
    1232 H
    1233 I
    1234 J
    1235 K
    1236 L
    1237 M

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Comparing 2 columns & returning with the corresponing value of 3rd column

    Try

    =IFERROR(IF($A2<>"",VLOOKUP($A2,$B$2:$C$14,2,0),""),"")

  3. #3
    Registered User
    Join Date
    02-05-2016
    Location
    Montgomery, AL
    MS-Off Ver
    2010
    Posts
    1

    Question Re: Comparing 2 columns & returning with the corresponing value of 3rd column

    This is similar to what I would like to accomplish as well, but I don't understand the formula well enough to see if it would work for my spreadsheet. 220 rows x 15 columns

    I tried =IF(A2="*text*",B2,0) but it doesn't work.
    In Column A, I have text.
    In Column B, I have the number of times that string of test appears on a report.
    In Columns C-0, I would like to check the text in Column A to see if it contains a particular word or string of characters. If it does, I would like the number in Column B to appear in the corresponding column that contains that word or string. If not, then it needs to be 0.
    Example
    Example.png

    Would the same or similar formula work in my spreadsheet as well?
    Last edited by luthientinuviel; 02-05-2016 at 12:35 PM.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Comparing 2 columns & returning with the corresponing value of 3rd column

    Hijacked a thread!

    Can you post a sample Excel file?

+ 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: 2
    Last Post: 12-18-2014, 01:56 PM
  2. [SOLVED] Comparing Values in Two Columns and Returning Value from another Column
    By GOPALAKRISHNANGK in forum Excel General
    Replies: 4
    Last Post: 11-12-2014, 01:46 AM
  3. Replies: 3
    Last Post: 04-23-2014, 05:14 PM
  4. [SOLVED] Comparing two columns and returning the number of cells in one column with higher values
    By heresteve2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-08-2014, 01:06 PM
  5. Replies: 19
    Last Post: 03-15-2014, 04:50 PM
  6. Comparing 2 columns and returning a value of a 3rd column
    By usmc0331 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-17-2013, 10:55 AM
  7. Comparing 2 or more columns and returning a true value
    By stujordan in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-10-2009, 08:46 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