+ Reply to Thread
Results 1 to 7 of 7

How can I apply "IFS" formula properly here?

  1. #1
    Registered User
    Join Date
    12-14-2022
    Location
    Bucharest
    MS-Off Ver
    365
    Posts
    92

    Exclamation How can I apply "IFS" formula properly here?

    Hello!

    I attached an Excel file and a screenshot with the desired result.

    Would you like to tell me where is my mistake?

    Thank you!
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Zero-Sama; 06-15-2023 at 10:40 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: How can I apply "IFS" formula properly here?

    Maybe:
    =FILTER($G$2:$G$4,ISNUMBER(SEARCH(F$2:F$4,A2)))

    or (dyanmic array):

    =BYROW(A2:A4,LAMBDA(x,FILTER(G2:G4,ISNUMBER(SEARCH(F2:F4,x)))))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    12-14-2022
    Location
    Bucharest
    MS-Off Ver
    365
    Posts
    92

    Re: How can I apply "IFS" formula properly here?

    Thank your for your reply.

    I want to keep the exact columns as I attached in thread.

    Is there another way?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: How can I apply "IFS" formula properly here?

    I have forgotten how to add " in array contants... so returning "test1" is a problem!!

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: How can I apply "IFS" formula properly here?

    Alternative:

    =MAP(A2:A4,B2:B4,LAMBDA(x,y,CHOOSE(SUM({1,2,3}*ISNUMBER(SEARCH({"broad","phrase","exact"},x))),y,CHAR(34)&y&CHAR(34),"["&y&"]")))
    Attached Files Attached Files

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: How can I apply "IFS" formula properly here?

    this seems to get you the result you want...
    =IFS(ISNUMBER(SEARCH("broad",A2)),B2,ISNUMBER(SEARCH("phrase",A2)),CHAR(34)&B2&CHAR(34),ISNUMBER(SEARCH("exact",A2)),"["&B2&"]")
    you missed the quotes around broad
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  7. #7
    Registered User
    Join Date
    12-14-2022
    Location
    Bucharest
    MS-Off Ver
    365
    Posts
    92

    Re: How can I apply "IFS" formula properly here?

    Solved with the answer above.

    Thank you both, I gave you all 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. Replies: 3
    Last Post: 11-19-2020, 08:30 PM
  2. Replies: 3
    Last Post: 03-09-2019, 12:04 PM
  3. Why IF(VLOOKUP(A1,B:B,1,0)=A1,"1","0") doesn't work properly?
    By regresss in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-30-2015, 06:18 PM
  4. Need to apply filter by contain all text as "mathew" in column "D"
    By aleanboy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-16-2014, 08:47 AM
  5. Replies: 1
    Last Post: 01-19-2011, 04:50 AM
  6. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  7. How to remove a space before the "=" sign and make the formula works properly?
    By Leosado in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2010, 03:05 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