INDEX using INDIRECT with OR function

brooksc29

Active Member
Joined
Jul 25, 2010
Messages
333
I am trying to use the INDEX function to refer to a range on another sheet and look for either of two criteria for a result.

This is my current formula and I'm off, just can't figure out where.

=INDEX(INDIRECT(C27),MATCH(OR("RHP-S","LHP-S"),INDEX(INDIRECT(C27),0,2),1))

Feel like I should be able to get this but I'm stuck.

Any help?
 
also, do you think there is any way to set a pre condition on the sheet that there cannot be any duplicate names returned, and if the formula results in a name that already appears on the sheet, automatically return the next occurrence of the criteria?
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Can you provide a small sample of the data (10, 15 or maybe 20 rows), along with the actual results that you expect?
 
Upvote 0
TEAM YEAR TOTAL
NYM2014 $ 73,775,000 LFGranderson, Curtis $ 13,000,000
CFLagares, Juan $ 500,000
RFYoung, Chris $ 7,250,000
OFLagares, Juan $ 500,000
SSTejada, Ruben $ 1,100,000 2BMurphy, Daniel $ 5,700,000
SSTovar, Wilfredo $ 500,000 2B -
3BWright, David $ 20,000,000 1BDavis, Ike $ 3,500,000
3BLutz, Zach $ 500,000 1B -
SS - SPColon, Bartolo $ 9,000,000 CLParnell, Bobby $ 3,700,000
SS - SPNiese, Jon $ 5,050,000 RPEdgin, Josh $ 500,000
3BLutz, Zach $ 500,000 SPGee, Dillon $ 3,625,000 RPFamilia, Jeurys $ 500,000

<tbody>
</tbody><colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup>
 
Last edited:
Upvote 0
MLB New York NL 14 : MLB New York NL 14.xls
.NEW YORK NLMLS thru '13 seasonUpdated 1/14salary + p-r bonus
.Pos'nML SrvAgentLength / Total Value2014
.TOTAL - NYM$73,775,000
.Wright, David3b9.075Levinsons ACES8 yr/$138M (13-20)$20,000,000
.Granderson, Curtislf-cf8.077Matt Brown4 yr/$60M (14-17)$13,000,000
.Colon, Bartolorhp-s15.061Adam Katz WMG (prev Mitch Frankel)2 yr/$20M (14-15)$9,000,000
.Young, Chrisrf7.045CAA (Jeff Berry)1 yr/$7.25M (14)$7,250,000
.Murphy, Daniel2b4.109Levinsons ACES1 yr/$5.7M (14)$5,700,000
.Niese, Jonlhp-s4.107O'Connell Sports5 yr/$25.5195M (12-16)+opts$5,050,000
.Parnell, Bobbyrhp-c4.132Levinsons ACES1 yr/$3.7M (14)$3,700,000
.Gee, Dillonrhp-s3.028Select Sports1 yr/$3.625M (14)$3,625,000
.Davis, Ike1b3.155Octagon1 yr/$3.5M (14)$3,500,000
.Young Jr., Ericlf3.123Dan Lozano1 yr/$1.85M (14)$1,850,000
.Tejada, Rubenss2.171Peter Greenberg1 yr/$1.1M (14)$1,100,000

<tbody>
</tbody><colgroup><col><col><col><col><col><col><col></colgroup>
 
Upvote 0
The first pic is the sample MLCLUBS sheet that will pull the data from the second sheet.


The second pic is the data set for NYM. There are 30 different data sets, all of different sheets. The Drop down box in A2 on MLCLUBS chooses the range. The data is all sorted by first by col G (salary) on each individual sheet, and then sorted again by col D (ML Srv). There is a macro that runs that auto sorts the data.


I would like to be able to create a sort of "depth chart" that will not have duplicates on the page. I need to be able to look for the first examples of certain data in Col C on each individual data page.
 
Upvote 0

Forum statistics

Threads
1,215,036
Messages
6,122,796
Members
449,095
Latest member
m_smith_solihull

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