PandaKing66
New Member
- Joined
- Jul 18, 2016
- Messages
- 4
Hello,
I have a program that queries large amounts of data from a server depending on what dates the user inputs. I have to plot this data from largest to smallest comparing it to a percentage which is in the column the left. The data returned has a variable number of points so the percentage column is created using a series from 100/n to 100. This creates a duration curve telling us for how long the queried data is above a certain point.
Where I'm having trouble is sometimes the query returns "No Data" instead of a value. With the sort I'm using (descending) all of these cells are placed at the top of the column. My question is how do I get the "No Data" cells to the bottom but still have the other cell sorted from largest to smallest?
My sort function is the following:
Range(Column & "4:" & Column & (Size + 3)).sort key1:=Range(Column & "4:" & Column & (Size + 3)), _
order1:=xlDescending, Header:=xlNo
Underlined = variable that is passed into the sub
I have a program that queries large amounts of data from a server depending on what dates the user inputs. I have to plot this data from largest to smallest comparing it to a percentage which is in the column the left. The data returned has a variable number of points so the percentage column is created using a series from 100/n to 100. This creates a duration curve telling us for how long the queried data is above a certain point.
Where I'm having trouble is sometimes the query returns "No Data" instead of a value. With the sort I'm using (descending) all of these cells are placed at the top of the column. My question is how do I get the "No Data" cells to the bottom but still have the other cell sorted from largest to smallest?
My sort function is the following:
Range(Column & "4:" & Column & (Size + 3)).sort key1:=Range(Column & "4:" & Column & (Size + 3)), _
order1:=xlDescending, Header:=xlNo
Underlined = variable that is passed into the sub