Aug 22 2024 12:47 AM - edited Aug 22 2024 01:43 AM
I need to link data from 3 separate worksheets to one, I have used the formula =Sheetname!A1:A10 (example) But when I try and sort this information, I get a pop up saying "You can't change part of an array".
I think that means I need to change the way I link information, but I don't know how to deal with this.
I have been told not to copy and paste the information, it needs to come from a link.
Aug 22 2024 01:34 AM
If you have Microsoft 365 or Office 2021, you can use
=SORT(Sheetname!A1:A10)
If you have an older version, use the formula
=Sheetname!A1
and fill down.
You will then be able to sort.
Aug 22 2024 01:35 AM
That's how dynamic arrays function. But, since this occurs for you it means you can use either the SORT or SORTBY function to do the sorting within the formula.
Let's say you want to sort Sheetname!A1:A10 in descending order use this:
=SORT(Sheetname!A1:A10,,-1)
Aug 22 2024 01:42 AM
Aug 22 2024 01:42 AM
Aug 22 2024 01:52 AM
If you are on Excel for MS365 you can use the VSTACK function. Otherwise, look into Power Query to combine the data from all three sheets (preferably formatted as Excel tables), sort as you wish and load back to Excel.