Excel formula - How to find pending text

TH123

New Member
Joined
Nov 15, 2022
Messages
25
Office Version
  1. 365
Platform
  1. Windows
Hi guys,

Sorry that I don't know how to upload under excel format so that pls help to review this image.
I'd like to get result in column C = "c" following below logic however don't know which excel formula is workable. Kindly help to solve issue. Thanks.
  1. Requirement: a/b/c
  2. Approved: a/b
  3. Pending: c haven't been approved yet.
 

Attachments

  • Untitled.png
    Untitled.png
    3.1 KB · Views: 15

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Try

Book2
ABCD
1RequirementApprovedPending
2A/b/ca/bc
3
4
Sheet1
Cell Formulas
RangeFormula
C2C2=TEXTAFTER(LOWER(A2),LOWER(B2)&"/")
 
Upvote 0
Another option
Fluff.xlsm
ABC
1RequirementApprovedPending
2a/b/ca/bc
3a/b/cc/ab
4c/a/bca/b
Main
Cell Formulas
RangeFormula
C2:C4C2=LET(a,TEXTSPLIT(A2,"/"),TEXTJOIN("/",,FILTER(a,ISNA(XMATCH(a,TEXTSPLIT(B2,"/"))))))
 
Upvote 0
Try

Book2
ABCD
1RequirementApprovedPending
2A/b/ca/bc
3
4
Sheet1
Cell Formulas
RangeFormula
C2C2=TEXTAFTER(LOWER(A2),LOWER(B2)&"/")
Hi Sufiyan,

Thanks for your support. Your suggestion is correct in case a/b or a is approved while I tried with b is approved then pending is shown c only.
Hope to get support on next posts. :)
 
Upvote 0
Another option
Fluff.xlsm
ABC
1RequirementApprovedPending
2a/b/ca/bc
3a/b/cc/ab
4c/a/bca/b
Main
Cell Formulas
RangeFormula
C2:C4C2=LET(a,TEXTSPLIT(A2,"/"),TEXTJOIN("/",,FILTER(a,ISNA(XMATCH(a,TEXTSPLIT(B2,"/"))))))
Hi Fluff,

If all are approved then can I insert with using IFERROR(your formula,"No pending")? Cause I tried with all are approved then formula show #CALC!
 
Upvote 0
Rather than using iferror, you can use
Excel Formula:
=LET(a,TEXTSPLIT(A2,"/"),TEXTJOIN("/",,FILTER(a,ISNA(XMATCH(a,TEXTSPLIT(B2,"/"))),"No Pending")))
 
Upvote 1
Solution
Rather than using iferror, you can use
Excel Formula:
=LET(a,TEXTSPLIT(A2,"/"),TEXTJOIN("/",,FILTER(a,ISNA(XMATCH(a,TEXTSPLIT(B2,"/"))),"No Pending")))
Thanks Fluff. Your formula woks well & this is what I need exactly. ;)
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,954
Messages
6,175,603
Members
452,660
Latest member
Zatman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top