+ Reply to Thread
Results 1 to 6 of 6

If row contains value, return x

  1. #1
    Registered User
    Join Date
    06-08-2014
    Posts
    4

    If row contains value, return x

    I'm working with an ancient greek lexicon,
    and I'm trying to get all the parsing to line up.

    I have a table with
    A B C D E
    1 ἀκούω I hear present first person singular
    2 ἀκούεις you hear second person singular present
    3 ἄξω I will lead first person future singular

    I want column F to display "present" if the row contains the word "present", "future" if it contains the word "future" etc

    My problem is rather similar to http://www.excelforum.com/excel-prog...ign-value.html, but I'm trying to search the whole row rather than a single cell.
    Last edited by hypershock; 06-08-2014 at 09:21 PM. Reason: make more clear the diversity of categories

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,929

    Re: If row contains value, return x

    Are you only concerned with Future and Present because you used the term etc and I'm not sure that you have more categories we don't know about.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    06-08-2014
    Posts
    4

    Re: If row contains value, return x

    Yes there are more categories.

    what I've got is
    Please Login or Register  to view this content.
    but that will quickly become awkward because Greek has more tenses than English. What I'm looking for is a shorter formula to achieve the same result

    something like
    Please Login or Register  to view this content.
    but this one returns "#VALUE!"

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: If row contains value, return x

    Based on your explanation in post#3, try this Array Formula. Since this is an array formula so you need to confirm it with Ctrl+Shift+Enter instead of just Enter. (i.e. after placing the formula in the cell, hold down the Ctrl+Shift and then press Enter.)

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Registered User
    Join Date
    06-08-2014
    Posts
    4

    Re: If row contains value, return x

    That worked
    Thanks

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: If row contains value, return x

    You're welcome. Thanks for the feedback and rep.

+ 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. Double click row to return data to userform for edit then return back to sheet
    By MattRSJ in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 01-31-2014, 06:05 AM
  2. Replies: 12
    Last Post: 10-10-2013, 10:02 AM
  3. Replies: 4
    Last Post: 03-13-2013, 12:38 PM
  4. Replies: 6
    Last Post: 10-11-2012, 02:39 PM
  5. Search...Return...give info based on the return address
    By deek1004 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-11-2012, 03:36 PM

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