Why is Excel adding @ to my formula?

JeffGrant

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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,215,336
Messages
6,124,332
Members
449,155
Latest member
ravioli44

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