Wildcards nested within LARGE or SMALL and IF functions.

Mainiac

New Member
Joined
Jun 3, 2013
Messages
1
Hello all,

First post here as I have finally run out of places to search.

I am using a formula to lookup the largest (or kth largest/smallest) value on another sheet {these are entered as arrays}:

=INDEX(SHEET1!$H$2:$H$827, LARGE(IF($C1=SHEET1!$G$2:$G$827, ROW(SHEET1!$G$2:$G$827)-MIN(ROW(SHEET1!$G$2:$G$827))+1, ""), COLUMN($A$1)))

I wanted to add a wildcard to the value being searched such as $C1&"*" as I've done with INDEX MATCH functions before but that didn't work (I assume because the IF function)and after searching forums arrived at this below, which still hasn't worked:

=INDEX(SHEET1$H$2:$H$827, LARGE(IF(ISNUMBER(SEARCH(SHEET1$G$2:$G$827,$C1)), ROW(SHEET1!$G$2:$G$827)-MIN(ROW(SHEET1$G$2:$G$827))+1, ""), COLUMN($A$1)))

Any suggestion on adding a wild card to the cell being searched (C1) since the cells in Sheet1 col H have additional characters on the end? Help much appreciated.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,215,461
Messages
6,124,957
Members
449,200
Latest member
indiansth

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