+ Reply to Thread
Results 1 to 17 of 17

Excel - How to check a specific Text in multiple column cells and return a text

  1. #1
    Registered User
    Join Date
    05-30-2020
    Location
    Basel, Switzerland
    MS-Off Ver
    Office 2016
    Posts
    11

    Excel - How to check a specific Text in multiple column cells and return a text

    I have have 4 columns (E, G, I, & K - note each have a column in-between). Cell in Row 7 in these columns contain a text as follow:

    E7=Complete G7=Complete I7=Complete K7=Complete

    All I want to do is to check is the text in all the four cells is the same (i.e. "Complete").
    If its TRUE, then in cell (L7 = Complete) is displayed.

    Can someone help, thx!

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

    Re: Excel - How to check a specific Text in multiple column cells and return a text

    In L7 =if(and(E7=G7,E7=I7,E7=K7),"Complete", "")
    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
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Excel - How to check a specific Text in multiple column cells and return a text

    or
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-30-2020
    Location
    Basel, Switzerland
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Excel - How to check a specific Text in multiple column cells and return a text

    Works like a Charm much appreciated, Thx!
    I was not using the AND function.....

  5. #5
    Registered User
    Join Date
    05-30-2020
    Location
    Basel, Switzerland
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Excel - How to check a specific Text in multiple column cells and return a text

    It works Thanks!
    But when I copied it across, when the text is matching but is not "Complete" its still showing Complete.
    Is there a way to only check for "Complete" across the 4 column cells.
    Thanks

  6. #6
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Excel - How to check a specific Text in multiple column cells and return a text

    Use the $ sign to fix the columns. Otherwise place the file. Or an example of it.

  7. #7
    Registered User
    Join Date
    05-30-2020
    Location
    Basel, Switzerland
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Excel - How to check a specific Text in multiple column cells and return a text

    Hi Alan,
    I used the formula and it works for the example (row 7) above.
    When its copied down, though if the cells have a the same text (not "Complete") it prints "Complete" in L7.
    e.g. E8=Open G8=open I7=Open K7=Open - in this case L7 should be blank.
    I'm new to the form so sorry for the repetition!

  8. #8
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Excel - How to check a specific Text in multiple column cells and return a text

    If you only focus on 1 helper, then you have to wait for the answer.

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

    Re: Excel - How to check a specific Text in multiple column cells and return a text

    Please read the yellow banner at the top of this page on how to attach a file.

  10. #10
    Registered User
    Join Date
    05-30-2020
    Location
    Basel, Switzerland
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Excel - How to check a specific Text in multiple column cells and return a text

    Sample file attached.
    Attached Files Attached Files

  11. #11
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Excel - How to check a specific Text in multiple column cells and return a text

    Well, reading is not your best art. See # 3 1st option.

  12. #12
    Registered User
    Join Date
    05-30-2020
    Location
    Basel, Switzerland
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Excel - How to check a specific Text in multiple column cells and return a text

    Doesn't work as the there are other columns. Please see attached file!

  13. #13
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Excel - How to check a specific Text in multiple column cells and return a text

    Have you tried it?
    Attached Files Attached Files
    Last edited by Vraag en antwoord; 05-30-2020 at 11:44 AM.

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

    Re: Excel - How to check a specific Text in multiple column cells and return a text

    My amended code based upon your latest post

    =IF(AND(B2="Completed",D2="Completed",F2="Completed",H2="Completed"),"Completed", "")

  15. #15
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Excel - How to check a specific Text in multiple column cells and return a text

    Please try at I2
    =REPT("Completed",COUNTIF(B2:H2,"Completed")=4)
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    05-30-2020
    Location
    Basel, Switzerland
    MS-Off Ver
    Office 2016
    Posts
    11

    Re: Excel - How to check a specific Text in multiple column cells and return a text

    Thanks Alan, it works.
    Have a nice day!

  17. #17
    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
    80,418

    Re: Excel - How to check a specific Text in multiple column cells and return a text

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    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.

+ 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: 3
    Last Post: 05-25-2016, 11:36 AM
  2. Replies: 3
    Last Post: 05-25-2016, 11:34 AM
  3. Replies: 2
    Last Post: 05-25-2016, 11:32 AM
  4. [SOLVED] Formula to return specific text based on multiple cells meeting a single criteria
    By missydanni in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-13-2013, 09:48 AM
  5. [SOLVED] Return specific text if a different text is contained anywhere in a range of cells
    By ciayers in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2013, 05:54 PM
  6. Replies: 7
    Last Post: 09-18-2012, 04:17 PM
  7. [SOLVED] Find Specific Text in Text String and Return Value in Adjacent Column
    By watchouse in forum Excel General
    Replies: 2
    Last Post: 07-11-2012, 03:53 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