+ Reply to Thread
Results 1 to 3 of 3

Excel won't sort my values properly

  1. #1
    Registered User
    Join Date
    05-08-2015
    Location
    AUS
    MS-Off Ver
    MS Office 2013
    Posts
    2

    Excel won't sort my values properly

    So basically I have an assignment where I need to get stock values for 2 different stocks. The next part is where I had to get the log returns for each of the stocks. So the formula was a recursive one where R(t) = ln(S(t)) - ln(S(t-1)), where R(t) is the return for the stock at time t and S(t) is the Stock price at time t. So i've done this and now i have 1260ish values for R(t) over 5 years. All i want to do with these values is sort them from the lowest to the highest. I highlight the entire colume of R(t) which includes negative and positive values between -1 and 1. After highlighting I click on the sort from smallest to largest but it doesn't work properly. I'm not sure if its because the values in these columns are achieved through formulas or not.

    This is the excel file: Assignment Excel File.xlsx.

    If you could go to the 3rd sheet labelled "Normality Test" and look at those 2 columns and tell me why it won't sort the second column (column J in the sheet) from the smallest negative to the greatest positive. If I was to type the numbers -3 -10, 5, -7, 2, 3 and then used the sort function it would give me: -10, -7, -3, 2, 3, 5, which is what I want, but i think since these cells have formula dependent on other cells it won't work. It'd be nice if there's a way around this because i need to sort the values to do the normality test.

    Thanks =]

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Excel won't sort my values properly

    Hi Kosh and welcome to the forum,

    The formula in J5 says to look at H5 and subtract H4. This formula is relative to what cell it is in. Now - you are trying to sort column J. It won't sort because each cell is built based on the values in column H.

    If you were to copy column J and then Paste it using "Values Only" it would sort, as then it wouldn't be formulas any more. See if that is what you need.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    05-08-2015
    Location
    AUS
    MS-Off Ver
    MS Office 2013
    Posts
    2

    Re: Excel won't sort my values properly

    Thank you Marvin. That's exactly what I needed. I did feel as though the formulae were causing some problems. The sort works now.

    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Won't permanently sort properly
    By GigaFluxx in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-14-2015, 11:32 AM
  2. My numbers do not sort properly
    By MiriBella in forum Excel General
    Replies: 7
    Last Post: 06-20-2012, 06:31 PM
  3. Excel 2003 Sort Buttons Not Working Properly
    By crazy1bryan in forum Excel General
    Replies: 2
    Last Post: 08-07-2009, 01:31 PM
  4. Excel 2003 Data Sort & Subtotaling not working properly
    By Roibn L Taylor in forum Excel General
    Replies: 5
    Last Post: 12-08-2005, 02:10 PM
  5. Replies: 4
    Last Post: 02-03-2005, 09:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1