index and match Mid in a array

nihad

New Member
Joined
Feb 24, 2021
Messages
40
Office Version
  1. 365
Platform
  1. Windows
Hi everyone

is it possible to look for a value based on search value to be Mid and array to be Mid as well?

Excel Formula:
=INDEX(MID(AG6:AG160,6,6),MATCH(AF162,MID(AF6:AF160,6,6),0))

I have tried this but I get #N/A

My search value is column AF162 Mid 6,6 and my array table is AG6:AG160 but Mid 6,6, column index is AG

Many thanks
 
You need to specify an exact match
Excel Formula:
=INDEX($AG$6:$AG$160,MATCH(MID(AF273,6,6),(MID($AF$6:$AF$160,6,6)),0))
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
You beat me to it.
Glad you sorted it & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,445
Messages
6,130,685
Members
449,585
Latest member
Nattarinee

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