+ Reply to Thread
Results 1 to 5 of 5

Calcuated Value by comparing previous value - Match Index ?

  1. #1
    Forum Contributor
    Join Date
    06-12-2009
    Location
    Banglore
    MS-Off Ver
    Excel 2007
    Posts
    128

    Calcuated Value by comparing previous value - Match Index ?

    Hi -

    Need a help in getting a calculated value by comparing the previous presence.

    Please look at the example excel:

    Column "H" is my expected values
    Whenever column "C" and "D" are 1, Column H should have same value as Column "F"
    Whenever column "C" is higher than 1, value in column H should be calculated.
    H column should be determined by subtracting the corresponding N+1 value with Nth value
    Attached Files Attached Files
    Shan

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Calcuated Value by comparing previous value - Match Index ?

    "Whenever column "C" is higher than 1, value in column H should be calculated.
    H column should be determined by subtracting the corresponding N+1 value with Nth value"

    Can you explain this part in more detail with several examples of the result and how you achieve each result?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

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

    Re: Calcuated Value by comparing previous value - Match Index ?

    h2=IF(D2=1,F2,IF(F2=F1,F2,F2-F1))
    try this and copy towards down - it will give result as expected by you.
    But you result in column H is not as you explained.
    Samba

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

  4. #4
    Forum Contributor
    Join Date
    06-12-2009
    Location
    Banglore
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Calcuated Value by comparing previous value - Match Index ?

    It has to compare the Item-- Column E are the items and I have calculated Column A to get the Unique Items concatenating the Nth Presence.
    Please evaluate my expected results in H column. Thanks

  5. #5
    Forum Contributor
    Join Date
    06-12-2009
    Location
    Banglore
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Calcuated Value by comparing previous value - Match Index ?

    The excel I have given Item column is Sorted and the formula you have given is just comparing the above row. How do we handle if the items are not sorted and values in different rows ?

+ 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. Trying to Index match from the results of a previous index match
    By vitt4300 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2017, 09:12 AM
  2. Comparing the multiple values returned against index/match
    By agraham in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-18-2015, 07:18 AM
  3. INDEX MATCH IF Between Two Dates - Comparing Two Tables
    By #N/A in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-21-2015, 09:32 AM
  4. Index and Match - comparing cells based on max price?
    By ffxdean in forum Excel General
    Replies: 1
    Last Post: 05-11-2015, 05:48 PM
  5. Replies: 0
    Last Post: 11-05-2014, 01:04 PM
  6. Replies: 2
    Last Post: 01-12-2012, 07:02 AM

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