Why is Excel adding @ to my formula?

JeffGrant

Well-known Member
Joined
Apr 7, 2021
Messages
516
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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,214,635
Messages
6,120,660
Members
448,975
Latest member
sweeberry

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