need data using right function

sksanjeev786

Well-known Member
Joined
Aug 5, 2020
Messages
1,010
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Team

I need RCB data after "-" and i have applied the funtion but getting error
RCB_1 "Faf du Plessis - (RCB)"

IPL predict & win LEADERBOARD_2023.xlsm
DEFGHIJKLMNO
1MNDateMatchVenuesTime In ISTResultsMOM55
2131-MarCSK vs GTAhmedabad7:30 PMGT won by 5 wktsRashid Khan154GT_20 "Rashid Khan - (GT)"#VALUE!RCB_1
3201-AprPBKS vs KKRMohali3:30PMPBKS won by 7 runs (DLS)Arshdeep Singh224PBKS_17 "Arshdeep Singh - (PBKS)"
4301-AprLSG vs DCLucknow7:30 PMLSG won by 50 runsMark Wood12LSG_12 "Mark Wood - (LSG)"
5402-AprSRH vs RRHyderabad3:30 PMRR won by 72 runsJos Buttler57RR_3 "Jos Buttler - (RR)"
6502-AprRCB vs MIBengaluru7:30 PMRCB won by 8 wktsFaf du Plessis28RCB_1 "Faf du Plessis - (RCB)"
Player Names
Cell Formulas
RangeFormula
K2:K6K2=MATCH("*"&J2&"*",$A$1:$A$256,0)
L2:L6L2=TRIM(INDEX($A$1:$A$256,MATCH("*"&J2&"*",$A$1:$A$256,0)))
N2N2=RIGHT(INDEX($D$2:$L$75,MATCH(N$1,$D$2:$D$75,0),7),LEN(INDEX($D$2:$L$75,MATCH(N$1,$D$2:$D$75,0),7)-FIND("-",INDEX($D$2:$L$75,MATCH(N$1,$D$2:$D$75,0),7))))
O2O2=LEFT(INDEX($D$2:$L$75,MATCH(O$1,$D$2:$D$75,0),9),FIND("""",(INDEX($D$2:$L$75,MATCH(O$1,$D$2:$D$75,0),9)))-1)
Named Ranges
NameRefers ToCells
'Player Names'!_FilterDatabase='Player Names'!$A$1:$A$743K2:L6
 
here it is with the clean up. But you are only getting ROW 5 for all of these based on your formula using cell N1.

Excel Formula:
=TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(RIGHT(INDEX($D$2:$L$6,MATCH(N$1,$D$2:$D$6,0),9),LEN(INDEX($D$2:$L$6,MATCH(N$1,$D$2:$D$6,0),9))-FIND("-",INDEX($D$2:$L$6,MATCH(N$1,$D$2:$D$6,0),9))),CHAR(34),""),"(",""),")",""))
 
Upvote 1
Solution

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
with 365 you can also use the textbefore and textafter the find/Len/Etc/Right functions.
it is a lot cleaner:

Excel Formula:
=TEXTBEFORE(TEXTAFTER(INDEX($D$2:$L$6,MATCH(N$1,$D$2:$D$6,0),9),"("),")")
 
Upvote 1
with 365 you can also use the textbefore and textafter the find/Len/Etc/Right functions.
it is a lot cleaner:

Excel Formula:
=TEXTBEFORE(TEXTAFTER(INDEX($D$2:$L$6,MATCH(N$1,$D$2:$D$6,0),9),"("),")")
Wow!!!!!!

Simply Awesome!!!

Thank you so much for your help on this:)
 
Upvote 0
You're welcome. Happy to help.

If you think a post here has provided you with a solution to your question, please mark that post as the answer.

Best Wishes.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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