Original Message:
Sent: 01-30-2024 12:40
From: J.R. Schulz
Subject: Referencing an Excel Row via a Column
Thanks, Simon. The field I'm trying to access with a macro is also a string. Where would the quotes you've mentioned go in this scenario (in my 'Non-Working' example below, where @Area@ should yield the same result as 'United States')?
Not working:![](https://higherlogicdownload.s3.amazonaws.com/ROSSVIDEO/MessageImages/2e9ee564ddf04802802895eb980a225d.png)
Working:![](https://higherlogicdownload.s3.amazonaws.com/ROSSVIDEO/MessageImages/9760d44b033b4db899c9c73a4001677b.png)
------------------------------
J.R. Schulz
Real-Time Graphics Developer
The E.W. Scripps Company
Original Message:
Sent: 01-30-2024 12:05
From: Simon Redmile
Subject: Referencing an Excel Row via a Column
You should also consider your jersey number may be a string, not an integer so it needs to be in quotes.
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
Original Message:
Sent: 01-30-2024 12:04
From: Matt Finlayson
Subject: Referencing an Excel Row via a Column
I am on version 11.5, but I believe I first started using this at version 10 or 10.5.
I should've mentioned that "WHERE [JERSEY] =" section is referencing the column name of the player number. In my case, the Excel column is called "JERSEY". Yours may be different.
------------------------------
Matt Finlayson
Brigham Young University
Original Message:
Sent: 01-30-2024 11:37
From: J.R. Schulz
Subject: Referencing an Excel Row via a Column
Matt (or anyone paying attention to this thread),
May I ask what version of XPression you are using where this works? I am trying to do the exact same thing you have provided a screen grab of, but it is breaking at the @text object@ macro. I have also tried a %datalinqkey% in that same spot with no success. If I type the referenced string in quotes it works fine, however. I am using XPression Designer v10.0 build 5275.
Thanks for posting,
------------------------------
J.R. Schulz
Real-Time Graphics Developer
The E.W. Scripps Company
Original Message:
Sent: 01-30-2024 10:50
From: Matt Finlayson
Subject: Referencing an Excel Row via a Column
Hi John,
I am attaching a screenshot of how I have datalinq from Excel set up for my baseball stats.
Column = the name of the column exactly how it appears in your spreadsheet.
Row = 1 (always)
Table = SELECT [should match the column field above] FROM [name of table your pulling stats from in Excel] WHERE [JERSEY] = this could be your %datlinqkey% or @textobject@
I hope that helps. Let me know if anything is unclear.
------------------------------
Matt Finlayson
Brigham Young University
Original Message:
Sent: 01-29-2024 12:07
From: John Spitznagel
Subject: Referencing an Excel Row via a Column
I am currently designing baseball graphics and I am trying to use a jersey number to pull stats from multiple columns from this Table. I have the jersey being pulled automatically from Live Stats, and I am trying to tell DataLinq to look at the jersey number and pull a stat from the same row. I have used similar setups to this when referencing XMLs but cannot get it to work with Excel.
![](https://higherlogicdownload.s3.amazonaws.com/ROSSVIDEO/MessageImages/614e12c87c1c4dbb9ba820e4d20bd12c.png)
------------------------------
John Spitznagel
Video Production Engineer
Elon University
------------------------------