Sort Table Data Only

Otto79

New Member
Joined
Dec 16, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
  3. Web
I have a multiple steps to take to finish out projects and would like to review the time it takes to complete each step. I need to keep the data in the the example table unsorted, but would like to display an associated bar chart that sorts the last column (days between) from smallest to largest. Creating a standard bar chart does not allow for the sorting of the chart data unless the table data is sorted in a corresponding manner.

I believe this need to be done via a pivot table, which I am not very experienced with. Any help is greatly apprecaited!

LocationProjectStep 1 StartStep 2 StartDays between Step1 to Step 2
WAProject A6/4/247/8/2434
TXProject B2/2/242/25/2423
CAProject C8/7/248/31/2424
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Welcome to the MrExcel board!

Is this what you want?

24 12 17.xlsm
ABCDEFGHIJK
1LocationProjectStep 1 StartStep 2 StartDays between Step1 to Step 2LocationProjectStep 1 StartStep 2 StartDays between Step1 to Step 2
2WAProject A4/06/20248/07/202434TXProject B2/02/202425/02/202423
3TXProject B2/02/202425/02/202423CAProject C7/08/202431/08/202424
4CAProject C7/08/202431/08/202424WAProject A4/06/20248/07/202434
Sort
Cell Formulas
RangeFormula
G2:K4G2=SORT(A2:E4,5)
Dynamic array formulas.
 
Upvote 0
Thanks, but I need to keep the order of the data in the table as it displays. I only want to sort the data in the chart so it displays the "days between" smallest to largest. The current chart output based on the above table looks like the attached image; whereas I only need the data in the chart to sort smallest to largest. I repeated myself there, but I think this makes sense :)
 

Attachments

  • Projects.JPG
    Projects.JPG
    18.5 KB · Views: 5
Upvote 0
I think this makes sense
It isn't entirely clear to me.

I need to keep the order of the data in the table as it displays.
In my post above the data is still in the same order (in columns A:E)

I only want to sort the data in the chart so it displays the "days between" smallest to largest.
I'm not certain what you mean by "data in the chart" as the chart is made from the data, but the data in columns G:K in my previous post is sorted by "days between", smallest to largest. Couldn't you just use the relevant columns from that to make your chart?

Or if you only want the two columns shown in your latest image then is this what you want?

24 12 17.xlsm
ABCDEFGH
1LocationProjectStep 1 StartStep 2 StartDays between Step1 to Step 2ProjectDays between Step1 to Step 2
2WAProject A4/06/20248/07/202434Project B23
3TXProject B2/02/202425/02/202423Project C24
4CAProject C7/08/202431/08/202424Project A34
Sort (2)
Cell Formulas
RangeFormula
G2:H4G2=CHOOSECOLS(SORT(A2:E4,5),2,5)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,112
Members
453,021
Latest member
Justyna P

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