+ Reply to Thread
Results 1 to 3 of 3

formula to index

  1. #1
    Registered User
    Join Date
    06-26-2020
    Location
    romania
    MS-Off Ver
    2019
    Posts
    2

    formula to index

    Hi there.
    I have list of two columns random number with random distance between them.i want formula in column C :
    1. find nearest value from Col.A and put it on =C1
    2. find nearest value from Col.B while his ROW be bigger than Previous value(step 1)=C2
    3. find nearest value from Col.A while his ROW be bigger than Previous value(step 1)=C3
    4. and so on...

    q.png

    In other words, start from col.A , find nearest value and ignore all blew number until the col.B have a value; then reverse the process.


    I'm trying find nearest value with this code
    Please Login or Register  to view this content.
    But i have no idea to how can I limit Indexing to Previous step.

    I'm not even sure that my description is the best way to solve this problem. In attached file specified wanted cell with red color.

    Any help is appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: formula to index

    I would be inclined to simplify, a little, by identifying the rows in one column, and then just use INDEX etc to retrieve the associated values in another, so:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    the above would return 1,3,4,7,5,1,8,9 -- which I believe to be correct based on fact these are red in your file

  3. #3
    Registered User
    Join Date
    06-26-2020
    Location
    romania
    MS-Off Ver
    2019
    Posts
    2

    Re: formula to index

    simple,pretty and easiest way! thank you XLent

+ 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] Index Match not cycling through entire index. Formula not updating when values change...
    By nordxnortheast in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2020, 10:44 AM
  2. [SOLVED] Index/Aggregate formula calculates correct row but does not yield name from Index array
    By FivestarMac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2019, 05:07 PM
  3. Replies: 1
    Last Post: 08-17-2019, 01:11 PM
  4. Index Match formula changing my Index daily
    By vitt4300 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2017, 02:19 PM
  5. [SOLVED] This formula works but I donīt understand why Index(Index) match
    By campelliann in forum Excel General
    Replies: 2
    Last Post: 01-25-2016, 05:55 PM
  6. Index Match Formula, can index be fixed?
    By herschen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2015, 08:28 PM
  7. Index Match Index Formula work slow
    By avk in forum Excel General
    Replies: 9
    Last Post: 03-07-2012, 02:19 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