Solved

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

Posted on 2014-09-30
5
439 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

758 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

21 Experts available now in Live!

Get 1:1 Help Now