need data using right function

sksanjeev786

Well-known Member
Joined
Aug 5, 2020
Messages
884
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
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
you are not giving Column A so it it will be very difficult for the forum to figure your problem out. Can you post a more comprehensive mini worksheet, please?
 
Upvote 0
you are not giving Column A so it it will be very difficult for the forum to figure your problem out. Can you post a more comprehensive mini worksheet, please?

Hi,

I need data for Column "N2" Cell and for that cell array Starts from D column onwards I need only all data including bracket i.e."(RCB)" with the Right function as of now i am getting an error
by using the below formula

=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))))

But using LEFT Function in "O2" cell got the correct solution.

I hope this information helps you :)

Regards
Sanjeev
 
Upvote 0
Okay, i looked at your formula in cell L2. The FIND Function is searching for a "-" in the 7th column in the INDEX range which is column J. all of the text strings in column J do not have a "-". I changed it to 9, I still got #VALUE error. So, can you explain what you are trying to get.. what word from what column? Please give some examples.
 
Upvote 0
also, your index range includes column L, but you have formulas that reference column L in the index, that can lead to circular reference errors.
nevermind, that formula is not in column L. my bad.
 
Upvote 0
please post the expected results for ROWS 2-6 in your example?
 
Upvote 0
also, your index range includes column L, but you have formulas that reference column L in the index, that can lead to circular reference errors.
nevermind, that formula is not in column L. my bad.
Hi,

Now i have added all the data from "A to O" column and i need all data which are in Brakcet i,e(GT))

Book2
ABCDEFGHIJKLMNO
1 LSG_1 "KL Rahul - (LSG)"MNDateMatchVenuesTime In ISTResultsMOM55
2 LSG_2 "Manan Vohra - (LSG)"131 March 2023CSK vs GTAhmedabad0.8125GT won by 5 wktsRashid Khan154GT_20 "Rashid Khan - (GT)"#VALUE!RCB_1
3 LSG_3 "Quinton de Kock - (LSG)"201 April 2023PBKS vs KKRMohali3:30PMPBKS won by 7 runs (DLS)Arshdeep Singh224PBKS_17 "Arshdeep Singh - (PBKS)"
4 LSG_4 "Ayush Badoni - (LSG)"301 April 2023LSG vs DCLucknow0.8125LSG won by 50 runsMark Wood12LSG_12 "Mark Wood - (LSG)"
5 LSG_5 "Deepak Hooda - (LSG)"402 April 2023SRH vs RRHyderabad0.645833333RR won by 72 runsJos Buttler57RR_3 "Jos Buttler - (RR)"
6 LSG_6 "Krishnappa Gowtham - (LSG)"502 April 2023RCB vs MIBengaluru0.8125RCB won by 8 wktsFaf du Plessis28RCB_1 "Faf du Plessis - (RCB)"
7 LSG_7 "Karan Sharma - (LSG)"
8 LSG_8 "Krunal Pandya - (LSG)"
9 LSG_9 "Kyle Mayers - (LSG)"
10 LSG_10 "Marcus Stoinis - (LSG)"
11 LSG_11 "Avesh Khan - (LSG)"
12 LSG_12 "Mark Wood - (LSG)"
13 LSG_13 "Mayank Yadav - (LSG)"
14 LSG_14 "Mohsin Khan - (LSG)"
15 LSG_15 "Ravi Bishnoi - (LSG)"
16 LSG_16 "Jaydev Unadkat - (LSG)"
17 LSG_17 "Yash Thakur - (LSG)"
18 LSG_18 "Romario Shepherd - (LSG)"
19 LSG_19 "Nicholas Pooran - (LSG)"
20 LSG_20 "Amit Mishra - (LSG)"
21 LSG_21 "Daniel Sams - (LSG)"
22 LSG_22 "Swapnil Singh - (LSG)"
23 LSG_23 "Prerak Mankad - (LSG)"
24 LSG_24 "Naveen Ul Haq - (LSG)"
25 LSG_25 "Yudhvir Singh - (LSG)"
Sheet1
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)
 
Upvote 0
so in your examples for column N is this what you want:
GT
PBKS
LSG
RR
RCB
?

with or without the parentheses(I guess you call these brackets, i call square brackets: just brackets :) ) ?
 
Upvote 0
also, 4 of the 5 examples are not in the column A that you provided. Can you confirm there are spaces or other non visible space characters in the list?
 
Upvote 0
you have a close parenthesis (bracket) in the wrong spot:

Excel Formula:
=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)))
 
Upvote 1

Forum statistics

Threads
1,216,082
Messages
6,128,713
Members
449,464
Latest member
againofsoul

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