Extract & Convert String From Multiple Criteria

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,077
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all..

how to extract data like this:
Book1
DEF
1criteria/contains textdata/textExpected Result
2BRI or RakyatPT. Bank Rakyat Indonesia (Persero) Tbk. XxxxxBRI
3BRI or RakyatPT BRI (Persero), Tbk. XxxxxBRI
4BRI or RakyatBRI xxxxxxBRI
5MandiriPT. Bank Mandiri (Persero) Tbk Regional xxxxxxxxMandiri
6MandiriBank MandiriMandiri
7BNIPT. BNI (Persero) Tbk xxxxxxBNI
8NegaraPT. Bank Negara Indonesia (Persero), xxxxxxxBNI
9sssssPT Bank TBN xxxOther
10rrrrrrBSI …….Other
Sheet1


criteria:

1. text contains string BRI or Rakyat ----so convert to be text " BRI"
2. text contains string mandiri----so convert to be text " Mandiri"
3. text contains string BNI or Negara ----so convert to be text " BNI"
4. text contains string other1. other2, other3, etc... ----so convert to be text " Other"
any help, would appreciated..
.sst
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
sorry maybe not clear
criteria:
1. text contains string BRI or Rakyat in Col.E2 down ----so convert/pull to be text " BRI" in Col F2 down
2. text contains string mandiri in Col. E2 down----so convert to be text " Mandiri" in Col F2 down
3. text contains string BNI or Negara in Col.E2 down----so convert to be text " BNI" in Col F2 down
4. text contains string not BRI or Mandiri or BNI etc..in Col.E2 down. ----so convert to be text " blank/empty" in Col F2 down
 
Upvote 0
i think maybe more easy
Book1
EF
1data/textExpected Result
2PT. Bank Rakyat Indonesia (Persero) Tbk. XxxxxBRI
3PT BRI (Persero), Tbk. XxxxxBRI
4BRI xxxxxxBRI
Sheet1


contains text "BRI" or "Rakyat"
 
Upvote 0
i think you can use partial match lookup , like this situation
Book1
EFG
1data/text
2PT. Bank Rakyat Tbk. X
3PT BRI (Persero), Tbk. Xxx
4
5lookup1lookup2Expected Result
6BRIRakyatBRI
7BRIRakyatBRI
Sheet1

note:
data in col E2 down contains text "BRI' or "Rakyat" then maybe can lookup it with lookup1 & lookup2

my desired result in col G6 down..
 
Upvote 0

Forum statistics

Threads
1,215,174
Messages
6,123,451
Members
449,100
Latest member
sktz

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