+ Reply to Thread
Results 1 to 3 of 3

Compare text columns and return a value based on text

  1. #1
    Registered User
    Join Date
    10-14-2010
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    2

    Compare text columns and return a value based on text

    I have a spreadsheet with 6 text columns in 2 sets. 1st set is column A,B,C. 2nd set is column D,E,F.

    The columns have data populated from a drop down list.

    Column A and D have the drop down options: Yes, No
    Column B,C,E,F have the drop down options: Automated, Advanced, Intermediate, Basic, N/A

    I want to compare column A to D; B to E and C to F and o/p a numeric value based on each comparison in column G, H & I.

    i.e. compare column A to D and o/p in column G
    Compare column B to E and o/p in column H
    Compare column C to F and o/p in column I

    Example:
    A D Value to be outoput
    Yes No 0
    Yes Yes 1
    No Yes 2
    No No 3

    Column B Column E Value to be outoput
    Automated Automated 0
    Automated Advanced 1
    Automated Intermediate 2
    Automated Basic 3
    Automated N/A 4
    Advanced Automated 5
    Advanced Advanced 6
    Advanced Intermediate 7
    Advanced Basic 8
    Advanced N/A 9
    Intermediate Automated 10
    Intermediate Advanced 11
    Intermediate Intermediate 12
    Intermediate Basic 13
    Intermediate N/A 14
    Basic Automated 15
    Basic Advanced 16
    Basic Intermediate 17
    Basic Basic 18
    Basic N/A 19
    N/A Automated 20
    N/A Advanced 21
    N/A Intermediate 22
    N/A Basic 23
    N/A N/A 24

    I have attached the spreadsheet.

    Thanks.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Compare text columns and return a value based on text

    you could build the combinations, so in c1 say have =a1&b1, which would give "CRITERIA1CRITERIA2" and then vlookup off a matrix, which you've pretty much got in your post.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    10-14-2010
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Compare text columns and return a value based on text

    Thanks so much Nathan ... it worked ..

+ 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] How to compare partial text in two columns and return value from adjacent cell
    By Ghys772 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-07-2014, 07:43 AM
  2. [SOLVED] using an if statement to compare 2 columns of data and return text information
    By VanessaF in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-18-2013, 05:47 AM
  3. Replies: 6
    Last Post: 02-28-2013, 11:27 AM
  4. Replies: 3
    Last Post: 08-15-2012, 11:33 AM
  5. Compare values in two columns and return text from adjacent cell
    By MrBorders in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-04-2009, 04:54 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