MID and FIND using Arrays

seenfresh

Well-known Member
Joined
Jul 12, 2006
Messages
1,141
I am trying to establish the best way to refer to a piece of an array...


For example in cell D2 the value = 4000-KTVQ-0 License Fee - KTVQ

In cell C1 = KTVQ

I tried using an Index and Match Function...

Code:
=INDEX(PLATFORM.xls!$E$1:$E$150,MATCH(LEFT(C1,4),MID(PLATFORM.xls!$D$1:$D$150,FIND("-",PLATFORM.xls!D1:D150,1),4),0))

This however does not work due to my invalid use of an array...

Can anyone suggest a method that will obtain my object...?

Any advice would be greatly appreciated!

Thanks in advance
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
And what object would that be?

And what array are you trying to refer to?
 
Upvote 0
reply

Norie,

The criteria is in Column C ex.. KTVQ

and the match case array in Column D...
MID(PLATFORM.xls!$D$1:$D$150,FIND("-",PLATFORM.xls!D1:D150,1),4)
has above

and the return array is in column E and this column holds Numeric Values...

Does this answer your question...

[/quote]
 
Upvote 0
Try this:

I just added a +1 after your find statement

Code:
=INDEX(PLATFORM.xls!$E$1:$E$150,MATCH(LEFT(C1,4),MID(PLATFORM.xls!$D$1:$D$150,FIND("-",PLATFORM.xls!D1:D150,1)+1,4),0))

Confirm w/ ctrl + shift + enter



HTH
 
Upvote 0
I'll give this a try:

I ended up using a Vlookup with wildcards instead... much easier; at the time I didn't think of using it!

Thanks for your advice everyone...
 
Upvote 0

Forum statistics

Threads
1,215,036
Messages
6,122,794
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