Give me the formula to grab data from an excel spreadsheet and use it in another. Take…
- User
Give me the formula to grab data from an excel spreadsheet and use it in another. Take into account that the office version is 365.
- Assistant
The following formula will take the data from "Source.xlsx" in worksheet "Sheet1" columns A to C and rows 1 to 10:
=[Source.xlsx]Sheet1!$A$1:$C$10You can also generate similar code by typing an "
=" into the formula bar of the destination spreadsheet and then selecting the relevent part of the source spreadsheet. - User
Does that other file have to be in the same folder? How can I give an absolute path?
- Assistant
No, the other file does not have to be in the same folder. You can link to a file located anywhere on your computer or on a network by specifying the file path in the formula.
For example, if the source file is located at "C:\Users\UserName\Documents\", the formula would look like this:
='C:\Users\UserName\Documents\[Source.xlsx]Sheet1'!$A$1:$C$10Note that if you move or rename the source file, the link will break and you'll need to update the file path in the formula.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)