Insert cell if found in the sheet (index and match)

Anna657

New Member
Joined
Jul 4, 2022
Messages
3
Office Version
  1. 365
Platform
  1. MacOS
Hi

I have been trying to insert a number, if the village is found in a specific column in another sheet using INDEX and MATCH. However, it only seems to work if I only use one row and not multiple rows.

When I use the entire sheet from A3:X24 the result comes out as #N/A. If I only choose one row in the formula, i.e. A3:X3, the result is 4 (which is correct). However, I need to include all the villages in the column in order to get the correct value for all my cells.

I'm not very used to Excel so maybe there is something I have overlooked. Hope you can help me :)

Screenshot 2022-07-04 at 14.49.59.png
Screenshot 2022-07-04 at 14.55.10.png

Screenshot 2022-07-04 at 14.50.15.png
 

Attachments

  • Screenshot 2022-07-04 at 14.50.15.png
    Screenshot 2022-07-04 at 14.50.15.png
    85.2 KB · Views: 5

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi & welcome to MrExcel.
Will the village only occur once in the Districts sheet?
 
Upvote 0
Ok, how about
Excel Formula:
=MAX(MMULT(--(Districts!$A$3:$X$24=M2),SEQUENCE(24)))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,648
Messages
6,120,725
Members
448,987
Latest member
marion_davis

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