Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel table reference difference between [@column] and [column]

I have a table in Excel and some equations in columns for all rows.

I have equation like this: =IF([@C1]=0,[@C2],MIN([@C1], [@C2]))

and then like this: =IF([C1]=0,[C2],MIN([C1], [C2]))

Goal is to check column C1 and if it is not 0, use minimum between C1 and C2.

If I use first option with @, it works ok, while second always returns 0, no matter what is in C1 or C2.

What is the difference between equations?

like image 636
tilz0R Avatar asked Nov 07 '25 08:11

tilz0R


1 Answers

With @ you refer to the same row as where your formula is. Without the @, you make reference to the entire column.

But your formula is confusing as C1 is usually not a column but a cell in Excel. Typical syntax for using structured references with Excel tables is TableName[ColumnName] to refer to a column of a table.

like image 81
Peter K. Avatar answered Nov 10 '25 03:11

Peter K.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!