Jun 26 2023 01:06 PM
So I am a big proponent for structured table references and wish we could use them in more places. That said I was wondering if there is any absolute/relative designator comparable to the $ for sheet references. Basically I have to remember drag vs fill to get what I want according to:
So if I WANT the columns to move/shift then I drag the bottom-right fill dot. If I do NOT want the column references to change then I use fill right or copy and paste. And if I want t a combination of staying the same and moving I'm SOL.
So does anyone know if there is something I'm missing or some trick I can use? For example:
=IF(Table1[Date]<TODAY(), Table1[Column10], 0)
and I want to apply that to Columns 10-20 and have each refer back to the Date column (i.e. drag right to autoincrement columns but keep [Date] fixed/absolute.
Jun 26 2023 01:13 PM - edited Jun 26 2023 01:18 PM
OK after writing all that I had an idea and it does work!! I would still love any other option if anyone knows any. But using Table1[[Id]:[Id]] does force it to be 'absolute' and not shift:
drag right | 68 | 68 | =COUNTA(Table1[[PrimaryDI]:[PrimaryDI]],Table1[PrimaryDI]) | =COUNTA(Table1[[PrimaryDI]:[PrimaryDI]],Table1[publicDeviceRecordKey]) |
fill right ctrl+R | 68 | 68 | =COUNTA(Table1[[PrimaryDI]:[PrimaryDI]],Table1[PrimaryDI]) | =COUNTA(Table1[[PrimaryDI]:[PrimaryDI]],Table1[PrimaryDI]) |
copy-paste | 68 | 68 | =COUNTA(Table1[[PrimaryDI]:[PrimaryDI]],Table1[PrimaryDI]) | =COUNTA(Table1[[PrimaryDI]:[PrimaryDI]],Table1[PrimaryDI]) |
so in my example above it would be:
=IF(Table1[[Date]:[Date]]<TODAY(), Table1[Column10], 0)
and drag right would change Column10 to 11, 12, ... but [Date]:[Date] would not change
Jun 26 2023 01:17 PM - edited Jun 26 2023 01:17 PM
This is why I opt for defined names or even explicit references because I do not like having to do this! If F4 worked in this context it would be a welcomed innovation.
Jun 26 2023 01:21 PM