Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-09-30
5
Medium Priority
?
2,921 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 2000 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 27

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 2000 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
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 using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

783 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