Depending on the version of Excel you are using, you can also do this through the TEXTJOIN() function. This is the one I have been using recently:
="'"&TEXTJOIN("','",TRUE,A2:A10)&"'"
It doesn't require a copy down, which I have enjoyed. You just select the desired range within the formula.
Jeffrie
On Wed, Jan 22, 2025 at 3:13 PM Christopher Pokorny via Higher Education User Group <
Mail@heug.org> wrote:
I've done the various apostrophe/quote hacks in the past in Excel with Student IDs too for lists; I used to think, 'I'm probably the only fool...
| Re: In List - | | | | | | I've done the various apostrophe/quote hacks in the past in Excel with Student IDs too for lists; I used to think, 'I'm probably the only fool doing this and I'm missing something more efficient.' It's fun to see that it's the approach many others are using too!
------------------------------ Christopher Pokorny Manager, IT Services Cleveland State University ------------------------------
Message from the HEUG Marketplace: ------------------------------ Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the HEUG Marketplace. ------------------------------ | | | Reply to Community Reply to Sender via Email View Thread Recommend |
Original Message: Sent: 01-22-2025 09:55 AM | |
| |
-- Jeffrie Brooks | BUSINESS SYSTEM ANALYST UNIVERSITY OF MICHIGAN | INFORMATION AND TECHNOLOGY SERVICES | |
Original Message:
Sent: 1/22/2025 3:13:00 PM
From: Christopher Pokorny
Subject: RE: In List -
I've done the various apostrophe/quote hacks in the past in Excel with Student IDs too for lists; I used to think, 'I'm probably the only fool doing this and I'm missing something more efficient.' It's fun to see that it's the approach many others are using too!
------------------------------
Christopher Pokorny
Manager, IT Services
Cleveland State University
------------------------------
Message from the HEUG Marketplace:------------------------------
Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the
HEUG Marketplace.
------------------------------
Original Message:
Sent: 01-22-2025 09:55 AM
From: Robert Fogarty
Subject: In List -
Michele,
I love ="'"&B2&"'," ... easier than the excel magic I was using!!!I
also, found that by adding in D2, =CONCAT(C2:C1001), where C2:C1001 is the result for 1000 rows of "'"&B2&"',". The advantage of the CONCAT is that is just lessens the size of the criteria. Copy and paste D2
Bob
--
Bob Fogarty
LionPATH - Reporting Team Lead
The Pennsylvania State University
rtf12@psu.edu Original Message:
Sent: 1/22/2025 8:47:00 AM
From: Michelle Jackson
Subject: RE: In List -
Thank you all for the additional great tips! Here is the formula I use in excel to assist in adding the quotes and commas to make it a lot easier:
To format the numbers in excel, if your IDs are in column B and there is a header row, you can enter the following formula in column A and copy down:
="'"&B2&"',"
------------------------------
Michelle Jackson
Director of Operations for Financial Aid
University of Pittsburgh
------------------------------
Message from the HEUG Marketplace:------------------------------
Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the
HEUG Marketplace.
Original Message:
Sent: 01-22-2025 08:24 AM
From: Brandon Nadeau
Subject: In List -
Michelle,
That is a great suggestion, thanks for sharing it with the community!
I have actually employed this same strategy recently, and it's so much easier, especially when you have a long list.
Here's a tip: if you have a lengthy list and your formatting is incorrect-like missing single quotes around individual items or delimiting commas-you can use a bit of code in Notepad++ or other programs like Excel or Python to quickly correct the formatting. This way, you can easily copy and paste it into the expression without having to edit each item manually. My list of 100 or so emplids required this and this trick made life a whole lot easier!
------------------------------
Brandon Nadeau
Manager of Data Operations and Campus Relations
University of Maine System
------------------------------
Message from the HEUG Marketplace:------------------------------
Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the
HEUG Marketplace.
Original Message:
Sent: 01-21-2025 09:56 AM
From: Michelle Jackson
Subject: In List -
Good Morning,
Sharing a way in Query Manager to use expressions in the where clause that allows you to paste lists of data into your queries. This has been very useful for when we are asked to provide data from PeopleSoft based on a list of IDs. In my example below, I have a list of IDs that I want to pull the Primary Academic Program and Plan from STDNT_FA_TERM. Thought I would share in the hopes of helping someone else.



Thank you,
Michelle
------------------------------
Michelle Jackson
Director of Operations for Financial Aid
University of Pittsburgh
------------------------------
Message from the HEUG Marketplace:------------------------------
Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the
HEUG Marketplace.
------------------------------