+ Reply to Thread
Results 1 to 5 of 5

Number intervals - positive to negative

  1. #1
    Registered User
    Join Date
    03-19-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    41

    Number intervals - positive to negative

    I have six columns and 15,625 rows. My data is working with combinations of +2 to -2.

    In column A, I want to sequence my input data as +2,+1,0,-1,-2 and then repeat until row 15,625

    In column B, I want to sequence it as five +2s, then five +1s, then five 0s, then five -1s, then five -2s.

    In column C, I want to sequence it as 25 +2s, then 25 +1s, then 25 0s, then 25 -1s, then 25 -2s.

    In column D, I want to sequence it as 125 +2s, then 125 +1s, then 125 0s, then 125 -1s, then 125 -2s.

    In column E, I want to sequence it as 625 +2s, then 625 +1s, then 625 0s, then 625 -1s, then 625 -2s.

    In column F, I want to sequence it as 3,125 +2s, then 3,125 +1s, then 3,125 0s, then 3,125 -1s, then 3,125 -2s.

    This will create a permutations matrix of 15,625 outcomes of six questions with 5 answers each.

    I think I need to modify these formulas:
    =MOD(ROWS($A$1:$A1)-1,5)+1
    =MOD((INT((ROWS($A$1:$A1)-1)/5)+1)-1,5)+1
    =MOD((INT((ROWS($A$1:$A1)-1)/25)+1)-1,5)+1
    =MOD((INT((ROWS($A$1:$A1)-1)/125)+1)-1,5)+1
    =MOD((INT((ROWS($A$1:$A1)-1)/625)+1)-1,5)+1
    =MOD((INT((ROWS($A$1:$A1)-1)/3125)+1)-1,5)+1


    Hope you can help!

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Number intervals - positive to negative

    attach a sample file with expected result
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    03-19-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: Number intervals - positive to negative

    See attached.Book 4.xlsx

  4. #4
    Registered User
    Join Date
    03-19-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: Number intervals - positive to negative

    Try wrapping each of your formulas within a LOOKUP() as follows:
    =LOOKUP(YourFormula,{1,2,3,4,5},{-2,-1,0,1,2})

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Number intervals - positive to negative

    See the attached file
    Attached Files Attached Files

+ 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. [SOLVED] SUMIF positive and negative numbers - take double a negative number?
    By Zordrail in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2014, 08:34 AM
  2. Move Negative Number and Change to a Positive Number
    By Alvin Hunter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-04-2013, 08:36 PM
  3. Convert negative to positive in sheet containing both positive/negative numbers
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2010, 07:52 PM
  4. Replies: 1
    Last Post: 11-20-2008, 01:52 AM
  5. Replies: 2
    Last Post: 11-13-2008, 12:35 AM

Tags for this Thread

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