+ Reply to Thread
Results 1 to 3 of 3

Transforming data to lie between 0 and 1

  1. #1
    Registered User
    Join Date
    02-16-2006
    Posts
    39

    Transforming data to lie between 0 and 1

    I have a spreadsheet with approximately 1000 rows. For column A, the range of values runs from 2.91 to 5.9 and column B has values from 1.12 to 2.99. Is there a formula or a series of formulas that I can use so that each value is translated to a score between 0 and 1? For instance, in column A, 2.91 would be scored as 1 and 5.9 would be 0 with all values in between lying between 0 and 1 depending on their relation to the min and max values of 2.91 and 5.9. A similar approach would be used for column B. Thanks for the help.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Transforming data to lie between 0 and 1

    If the data is in A1:A1000, compute the min =MIN(A1:A1000) and span (=MAX(A1:A1000) - min) in some convenient cells, and then the scaled value in B1 and down is

    =(A1 - min)/ span

    To reverse the order, calculate instead max and span, then in B1 and down,

    =(max - A1) / span
    Last edited by shg; 03-19-2010 at 07:01 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    02-16-2006
    Posts
    39

    Re: Transforming data to lie between 0 and 1

    Perfect. Thanks so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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