Why is Excel adding @ to my formula?

JeffGrant

Board Regular
Joined
Apr 7, 2021
Messages
186
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have this formula which is pasted from a VBA module:

=IFERROR(INDEX('All Classes'!$AR$1:$AR$124,MATCH($BV4,INDEX('All Classes'!$B$1:$AQ$124,0,MATCH(1,($BS4=@'All Classes'!$B$1:$AQ$1)*($BT4=@'All Classes'!$B$2:$AQ$2)*($BU4=@'All Classes'!$B$3:$AQ$3),0)),0)),"No Record Found")

You will see there are 3 occurrences of the @ symbol that Excel automatically inserts.

From everything I have read, it shouldn't affect my formula. But it does.

With the @ symbol included, the formula gives the failure result of "No Record Found".

Take the @ symbol out and the Index/Match works the way it is supposed to and returns the values required.

Q1. Why does excel add the @ symbol?
Q2. How can I stop it?
Q3. Do I need to adjust the formula so that it works with the @ symbol?

Thanks
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

maabadi

Well-known Member
Joined
Oct 22, 2012
Messages
2,316
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Please upload VBA Code.
 

Forum statistics

Threads
1,141,060
Messages
5,704,041
Members
421,324
Latest member
Devo182

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
Top