Closed Thread
Results 1 to 4 of 4

Calculation of base index (return relative to a first value in array)

  1. #1
    Registered User
    Join Date
    12-15-2014
    Location
    Belgrade, Serbia
    MS-Off Ver
    2003
    Posts
    9

    Lightbulb Calculation of base index (return relative to a first value in array)

    Hi everyone,

    I would like to make the following functions (by selecting all ID's and Values for example) for columns Return and Base Return

    ID Value Return Base Return
    1 20 0 0
    1 -20 -2 -2
    1 -30 -0.50 -2.50
    2 10 0 0
    2 11 0.10 0.10
    2 -2 -1.18 -1.20

    return = (new value-original value) / abs(original value) FOR EACH ID

    Base return = (new value-First value) / abs(First value) FOR EACH ID

    First return or base return (per ID) should let's say be 0

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Calculation of base index (return relative to a first value in array)

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    12-15-2014
    Location
    Belgrade, Serbia
    MS-Off Ver
    2003
    Posts
    9

    Re: Calculation of base index (return relative to a first value in array)

    Hi, the file attached
    the first sheet containts the expected result in columns Return and Base return.
    The function should be used to 1) mark all items in Column ID and column Value in order to produce expected
    result in column Return (Return function), 2) mark all items in Column ID and column Value in order to produce expected result in column Base Return (Base Return function),

    The second sheet contains example, at least how I tried it with the code in module 1, but it is not a function ...just tried...

    Best regards
    Attached Files Attached Files

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Calculation of base index (return relative to a first value in array)

    This is a duplicate post and as same is opened in CS subforum. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Why has Index Match array slowed calculation of spreadsheet to 1.5 hours
    By carrach in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 10-11-2014, 03:15 AM
  2. Return relative position of the largest number in an array
    By DanielMinh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-20-2013, 03:01 AM
  3. Index Match array equation with sub-array calculation
    By glebbo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2012, 03:04 AM
  4. Return index of value in array
    By owainl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-26-2008, 09:51 AM
  5. Return ALL relative positions of a value within an array
    By bekaii in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-19-2007, 07:37 PM

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