+ Reply to Thread
Results 1 to 8 of 8

Excel - find values searching rows first, than columns from found row

Hybrid View

  1. #1
    Registered User
    Join Date
    02-26-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    9

    Excel - find values searching rows first, than columns from found row

    As the title says, find values searching rows first, than columns from found row

    I have done this, but I can`t get any numbers out on "Found". I wrote 20 and 25 there just so you could see how it should work.

    Can someone help me?

    screenshot.JPG

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,365

    Re: Excel - find values searching rows first, than columns from found row

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    02-26-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    9

    Re: Excel - find values searching rows first, than columns from found row

    Thank you so much, I just uploaded the file.

    I`m very thankful for your help!
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    04-30-2015
    Location
    The Netherlands
    MS-Off Ver
    office 365
    Posts
    195

    Re: Excel - find values searching rows first, than columns from found row

    Just noticed in your image that you also use the semicolon as your seperation key, so use these instead. Still confirm them by pressing CTRL+SHIFT+ENTER

    Next Lower
    Formula: copy to clipboard
    =MAX(IF(OFFSET(A2;0;$B$25-1;18)<=C25;OFFSET(A2;0;$B$25-1;18)))


    Next Higher
    Formula: copy to clipboard
    =MIN(IF(OFFSET(A2;0;$B$25-1;18)>=C25;OFFSET(A2;0;$B$25-1;18)))


    Ferdy
    Last edited by FerdyHar; 10-04-2018 at 09:41 AM.
    Remember to mark as Solved and give out rep.

  5. #5
    Forum Contributor
    Join Date
    04-30-2015
    Location
    The Netherlands
    MS-Off Ver
    office 365
    Posts
    195

    Re: Excel - find values searching rows first, than columns from found row

    Use the following formula's. Next Lower:

    Formula: copy to clipboard
    =MAX(IF(OFFSET(A2,0,$B$25-1,18)<=C25,OFFSET(A2,0,$B$25-1,18)))


    Next Higher

    Formula: copy to clipboard
    =MIN(IF(OFFSET(A2,0,$B$25-1,18)>=C25,OFFSET(A2,0,$B$25-1,18)))


    Note that these are both array formula's, which means they have to be confirmed by pressing CTRL+SHIFT+ENTER instead of just enter. You will see if you succeeded if you see these "{" "}" curly brackets around the formula. (do not add these manually, this does not work)

    Ferdy
    Last edited by FerdyHar; 10-04-2018 at 09:47 AM. Reason: Didn't calculate for exact matches

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Excel - find values searching rows first, than columns from found row

    Not sure if I get it right, Please try

    E24

    =LOOKUP(C$25,INDEX($A$2:$J$20,0,B$25))

    E25

    =LOOKUP(C$25,INDEX($A$2:$J$20,0,B$25),INDEX($A$3:$J$20,0,B$25))

  7. #7
    Registered User
    Join Date
    02-26-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    9

    Re: Excel - find values searching rows first, than columns from found row

    Thanks for the help, unfortunately I can`t get it to work.
    It would be great if some of you could upload the file here and I could download it from you.

    Thank you very much, I really apprechiate it.

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Excel - find values searching rows first, than columns from found row

    Please see attached
    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] Need to highlight entire rows when duplicate values found in two separate columns
    By terryhenderson in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-29-2018, 07:25 PM
  2. Searching column 1 with data from 2 and reporting found or not found
    By San75 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-15-2016, 05:23 PM
  3. [SOLVED] Find variant matches from two columns and hide rows that are not found in the other
    By thelisa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-28-2013, 11:15 AM
  4. Replies: 1
    Last Post: 04-19-2013, 08:30 PM
  5. VB code to find recurring values and return x columns and x rows from found
    By TravisJB in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-07-2013, 12:28 PM
  6. Replies: 4
    Last Post: 06-28-2012, 07:08 AM
  7. Search a table to find values in rows and columns
    By vixtran in forum Excel General
    Replies: 1
    Last Post: 08-14-2008, 01:21 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