Re-sorting the order of real-time data?

danjuma

Active Member
Joined
Sep 21, 2008
Messages
251
Hello,

I have some columns of data of any number of rows updating every few seconds. The data is returned in ascending order based on the date/time (i.e. oldest at the top and newest at the bottom). Is there a way I could display this in descending order (i.e. the newest at the top and oldest at the bottom) automatically? Many thanks
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
How is the data being refreshed? Where is the data coming from?

Currently the data comes from a stock quote datafeed and it is imported into excel when I manually click a button in excel to activate this. However, I intend to find a way to automatically request this so it automatically gets imported into excel at specified times, hence reason I want it sorted automatically. Thanks
 
Upvote 0
It sounds like the import is automated via VBA.
If so, you can add a sort routine to the end to sort it however you want to.
Record a macro sorting your data and you should be able to edit it to do exactly as you want.
 
Upvote 0
It sounds like the import is automated via VBA.
If so, you can add a sort routine to the end to sort it however you want to.
Record a macro sorting your data and you should be able to edit it to do exactly as you want.

Ok, will give this a try. Many thanks
 
Upvote 0
Ok, I have had a look at the VBA code, unfortunately VBA is not one of my strongest points, and struggling a bit to understand. Is there a way in excel to sort of automatically re-display the values in different columns in the order I want if you know what I mean. i.e. formula to display values in say columns A, B, C, D, E, F in the descending order in columns G,H,I,J,K,L based on the date/time in column A?

Thanks
 
Upvote 0
You shouldn't need to move the data items to different columns if the sort works correctly.

Sorry, looks like I have not explained myself properly. I have not done the sort yet as I do not know how to integrate the recorded macro code with the VBA code for the data request. I am not very good with VBA and don't understand the VBA code for the data request to be able to integrate my recorded macro code. So, I was asking if there was a way I could achieve this just using excel formula? Thanks
 
Upvote 0
Can you post your current code with some sample data?
Adding the sort routine to your current feed should not be too difficult.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,729
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top