+ Reply to Thread
Results 1 to 17 of 17

How to give specific text result in excel table?

  1. #1
    Registered User
    Join Date
    02-20-2021
    Location
    US
    MS-Off Ver
    2019
    Posts
    49

    How to give specific text result in excel table?

    Dear Experts,

    I have an excel table which I want to give the text note "Yes" in unique based the the table of sequence number without duplicate.
    Column D is the result of txt note that I want. And column G is the reference of the sequence number that use for giving the text note.
    And I hope the formula can be used in excel 2019.

    Thank you!
    Attached Files Attached Files
    Last edited by Manith; 03-15-2024 at 12:07 AM.

  2. #2
    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,916

    Re: How to give specific text result in excel table?

    So you have shown all rows containing 38 with Yes against them - is that the result you want? Because I don't quite see how that matches your description.

    Please explain the logic again.

    To get what you have shown:

    =IF(INDEX($F$2:$F$6,MATCH(C2,$G$2:$G$6,0))=1,"Yes","")
    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.

  3. #3
    Registered User
    Join Date
    02-20-2021
    Location
    US
    MS-Off Ver
    2019
    Posts
    49

    Re: How to give specific text result in excel table?

    Dear Ali,

    Thank you so much for your response. And My apologies for not giving a clear explanation.
    If u see the column "G" is the sequence number which is 38 is the first priority to show "Yes", if there is no size "38" in the list, then following by 39. And each code has different colors, each color and size show only "Yes" one time which based on the sequence number in column G.

    Thank you!
    Last edited by AliGW; 03-15-2024 at 03:37 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

  4. #4
    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,916

    Re: How to give specific text result in excel table?

    That didn't make any sense to me. Sorry. Give a few concrete examples.

  5. #5
    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,916

    Re: How to give specific text result in excel table?

    For example, this one:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    A
    B
    C
    D
    348
    1NSA0439671 Dark Blue
    36
    Yes
    Sheet: Sheet1

    36 isn't even on the lookup list ...

    Are your expected results correct?

  6. #6
    Registered User
    Join Date
    02-20-2021
    Location
    US
    MS-Off Ver
    2019
    Posts
    49

    Re: How to give specific text result in excel table?

    Quote Originally Posted by AliGW View Post
    That didn't make any sense to me. Sorry. Give a few concrete examples.
    Dear Ali,

    I hope this formula can explain.

    E2=LET(f,FILTER(C$2:C$1831,(A$2:A$1831=A2)*(B$2:B$1831=B2)),IF(C2=INDEX(SORTBY(f,MATCH(f,G$2:G$6,0)),1),"Yes",""))

    But I need the formula in office 2019

    Thank you!

  7. #7
    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,916

    Re: How to give specific text result in excel table?

    I'm not going to reverse engineer a formula - sorry. If you can't explain it clearly and answer my specific question, then I am not gouing to be able to help.

  8. #8
    Registered User
    Join Date
    02-20-2021
    Location
    US
    MS-Off Ver
    2019
    Posts
    49

    Re: How to give specific text result in excel table?

    Yes could be as there is no 36 in the list for that code, color and size

  9. #9
    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,916

    Re: How to give specific text result in excel table?

    What does that mean?

    Why would you get Yes on that row when 36 is not in the lookup list? The answer is NOT "could be" - I would need a clear explanation. Is that row correct or not - yes or no?

  10. #10
    Registered User
    Join Date
    02-20-2021
    Location
    US
    MS-Off Ver
    2019
    Posts
    49

    Re: How to give specific text result in excel table?

    ok, then say if the size is not in the list, then just show blank.
    Thank you!
    Last edited by AliGW; 03-15-2024 at 04:02 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

  11. #11
    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,916

    Re: How to give specific text result in excel table?

    So the expected results are not correct? OK.

    With that admitted, I now understand what needs to happen, but I can't offer a 2019-friendly version of the formula - sorry. Someone else will, hopefully.

  12. #12
    Registered User
    Join Date
    02-20-2021
    Location
    US
    MS-Off Ver
    2019
    Posts
    49

    Re: How to give specific text result in excel table?

    ok, then say if the size is not in the list, then just show blank.
    Size 38 is the first priority to show "Yes" remark, then other size in the same code, color will not appear "Yes"
    size 39 is the 2nd priority to show "Yes" if there is no size "38" in the list.

  13. #13
    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,916

    Re: How to give specific text result in excel table?

    I can do it with a helper column (could be hidden).

    Helper:

    =IFNA(INDEX($F$2:$F$6,MATCH(C2,$G$2:$G$6,0)),"")

    Formula:

    =IFNA(IF(INDEX($G$2:$G$6,MATCH(MINIFS(I:I,A:A,A2,B:B,B2),$F$2:$F$6,0))=C2,"Yes",""),"")
    Attached Files Attached Files

  14. #14
    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,916

    Re: How to give specific text result in excel table?

    Seen, but no reply ...

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  15. #15
    Registered User
    Join Date
    02-20-2021
    Location
    US
    MS-Off Ver
    2019
    Posts
    49

    Re: How to give specific text result in excel table?

    Hi Ali,

    My sincere apologies as I was busy.
    Thank you for much for your solution. And it's helped me lots.
    Thank you!
    Have a good day!
    Last edited by AliGW; 03-15-2024 at 06:34 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

  16. #16
    Registered User
    Join Date
    02-20-2021
    Location
    US
    MS-Off Ver
    2019
    Posts
    49

    Re: How to give specific text result in excel table?

    Thank you so much!
    It works perfectly.
    Last edited by AliGW; 03-15-2024 at 06:34 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

  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,916

    Re: How to give specific text result in excel table?

    You're welcome.

    Administrative Note re. Forum Guideline #2:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter and rarely necessary.

    If you are responding out of sequence, it is usually enough just to mention the helper's user name (e.g @AliGW).

    If you do need to quote, limit the quoted section just to the section to which you wish to draw your helper's attention or a direct question to which you wish to respond.

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.

+ 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. give me result only if text in another cell is xyz
    By tlacloche in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-24-2022, 12:52 PM
  2. [SOLVED] Calculate formula in text box, then give the result.
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2020, 02:04 PM
  3. Replies: 2
    Last Post: 08-07-2017, 02:15 AM
  4. Replies: 1
    Last Post: 08-07-2017, 12:17 AM
  5. [SOLVED] check for specific word and give result
    By saravanan1981 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-12-2016, 10:36 PM
  6. VBA to lookup for a specific value and give result
    By winmaxservices in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-13-2015, 04:29 AM
  7. Replies: 4
    Last Post: 12-20-2012, 04:33 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