Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2014-09-30
5
Medium Priority
?
2,260 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

715 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