can someone please tell me why this formula is not working?

sneakyla

New Member
Joined
Aug 11, 2021
Messages
23
Office Version
  1. 2016
Platform
  1. Windows
this is giving me a headache.

1707357087608.png


as you can see, the result is giving #N/A.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Your headings look like they are text while S2 looks to be a number.
What happens if you change the S2 part and add Trim to it ?
Excel Formula:
=MATCH(TRIM(S2),$C$1:$M$1,0)

Oops you only need
Excel Formula:
(TRIM(S2)=$C$1:$M$1)

Also I would have thought that was an array formula (CSE) are you really using O 2016 ?
 
Last edited:
Upvote 1
Along with what Alex has pointed out, I would have thought you need to have a match function for the column as well, like
Excel Formula:
=INDEX(C2:M32,MATCH(1,(Q2=A2:A32)*(R2=B2:B32),0),MATCH(S2&"",C1:M1,0))
 
Upvote 1
Solution

Forum statistics

Threads
1,215,092
Messages
6,123,064
Members
449,090
Latest member
fragment

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