+ Reply to Thread
Results 1 to 3 of 3

Finding value from a range and if not match then find next

  1. #1
    Registered User
    Join Date
    06-29-2015
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2013
    Posts
    7

    Finding value from a range and if not match then find next

    Hello guys,

    I am having a brain freeze for following task:

    Table 1 example, how the logic should be.

    If(H4=A2 AND E4="D3P" AND F2="Aktiivne";
    THEN B2;
    ELSE if it is passive then takes number from column H and finds it in column A until it gets an active match.
    THEN writes the data from column B and E after the passive device i.e into column M and N.

    Table1 - All devices passive and active
    Table_1_all.png

    In Table 1 you can see that H4 and H5 have a matching active device of A2. So in the column M4 and N4 should be written B2 and E2... If that makes sense.

    Table2 - only passive devices - aka filtered by tyyp D3P and being passive
    Table_2_passive.png

    Structure - might help
    Structure.png
    red and green triangles(like play buttons) are active devices and passive devices(green stars) are connected to them, sometimes through other passive devices(green Y)

    How can it be done? Any examples of the code? OR ideas? OR questions?
    I am assuming it should be in a VBA code? And i cannot code in VBA at all.

    Thank you,

    A

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Finding value from a range and if not match then find next

    You get better help on your question if you add a small excel file, without confidential information.

    Please also add manualy the expected result in your file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    06-29-2015
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Finding value from a range and if not match then find next

    What I did myself was using index-match. I extracted step by step correct active device for passive device. Had to do it like 6 times :D

+ 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. Excel 2013, finding match in cell from range (column)
    By Rob de QUartel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2014, 05:58 AM
  2. Range.Find function fails to find a match but For loop confirms that match exists
    By 6StringJazzer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-08-2013, 03:35 PM
  3. My Range.Find only finding the first Argument
    By DadaaP in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-06-2013, 02:30 PM
  4. [SOLVED] Finding MIN value within range and returning MATCH
    By MaddyG in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-16-2012, 03:50 PM
  5. Replies: 0
    Last Post: 07-11-2012, 11:06 AM
  6. Finding the closest match between two columns within a given range.
    By cfletcher in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-11-2012, 10:37 AM
  7. Range match finding
    By calsexceladel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2008, 08:42 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