Solved

Excel - What does the square bracket and @ sign do?

Posted on 2014-09-30
5
502 Views
Last Modified: 2014-10-15
=IF((fruits[Produce_dpt]=[@Produce_dpt])*(fruits[Target]>0),fruits[Target]))

Can someone explain what the square brackets and @ sign mean?
I've worked with if tests before but never seen this.
0
Comment
Question by:brothertruffle880
  • 3
5 Comments
 
LVL 27

Accepted Solution

by:
Glenn Ray earned 500 total points
ID: 40353475
This is called "structured referencing" and it relates to how data is referred to in Excel Tables.

The square brackets refer to the "column specifier" or, the row headers.  The @ symbol refers to an item on this same row.

-Glenn


Resources (Microsoft)
Using structured references with Excel tables
Use structured references in Excel table formulas
0
 
LVL 25

Expert Comment

by:ProfessorJimJam
ID: 40353493
Glenn you are very good in Excel.  

and faster than others.  you are catching the questions right after few seconds on the fly when it is posted.

:)
0
 
LVL 27

Assisted Solution

by:Glenn Ray
Glenn Ray earned 500 total points
ID: 40353510
So, reading out this formula (corrected syntax):
=IF((fruits[Produce_dpt]=fruits[@[Produce_dpt]])*(fruits[Target]>0),fruits[Target])

Look in the table "fruits."  If any of the values in the column labeled "Product_dpt" are equal to the value of the Produce_dpt item on this same row (as the formula) AND* the number in the Target column is greater than 0, then return the value of the relative Target.

* The multiplication logic is used to derive this.
0
 

Author Comment

by:brothertruffle880
ID: 40378870
GLENN:
WHEN DID THIS FEATURE COME INTO BEING?   I never heard of it and I've been working in Excel for years!
0
 
LVL 27

Assisted Solution

by:Glenn Ray
Glenn Ray earned 500 total points
ID: 40379147
This came about when Excel changed from "Lists" to formal "Tables" when they released Excel 2007.

If you have Excel 2007 or greater and have the option turned off to see table formulas (Excel Menu: File, Options, Formulas - "Working with formulas" section - "Use table names in formulas") then you might not have ever seen this; just cell references.

I've warmed up to their use recently; I find it convenient to refer to data in a manner similar to database tables.

-Glenn
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel conversion issue with Sql server 14 45
Manipulation Macro 28 36
Problem to With line 4 36
Excel Formula 4 28
Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now