+ Reply to Thread
Results 1 to 6 of 6

Need function to find row and column based on cell values

  1. #1
    Registered User
    Join Date
    08-27-2014
    Location
    Lisboa, Portugal
    MS-Off Ver
    2007
    Posts
    24

    Need function to find row and column based on cell values

    Hello
    I am trying to come up with a couple of formulas
    Basically I have a summary sheet with lots of samples and different assays for each sample.
    I then have another sheet called sample, which works as a more specific way to analize the samples.
    Each sample has a number and each assay a designation (i.e: NLT).
    I need to come up with some formulas to get the result of an assay done to a specific sample, which will be shown in the sample sheet.
    For that, the sample sheet has a Cell called Sample (in which the user inputs the number) and a combobox for the assays .Once the user has written the sample number and selected the assay, the worksheet should get the values for some specific cells by running a sort of a vlookup and a hlookup at once, using the sample number to find the row (lets call it x) and the assay to find the column(lets call it y) (both from the sumary sheet, thus reaching the result in cell (x,y) and copying it to the sample sheet.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need function to find row and column based on cell values

    The function you want is INDEX(MATCH(torow), MATCH(tocolumn))

    You can Google a million examples of INDEX/MATCH/MATCH, or post your workbook showing your source data, your selections cells and your desired results mocked up manually, then I can show you exactly how it would apply to your data.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-27-2014
    Location
    Lisboa, Portugal
    MS-Off Ver
    2007
    Posts
    24

    Re: Need function to find row and column based on cell values

    Please Login or Register  to view this content.
    This is giving an error , could you help me figuring out what I'm doing wrong please?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need function to find row and column based on cell values

    I would think:

    =INDEX(RESUMO!$D$27:$EA$4000, MATCH(AMOSTRAS!B4;RESUMO!$C$27:$C$4000; 0), MATCH(AMOSTRAS!K7;RESUMO!$D$26:$EA$26;0))

  5. #5
    Registered User
    Join Date
    08-27-2014
    Location
    Lisboa, Portugal
    MS-Off Ver
    2007
    Posts
    24

    Re: Need function to find row and column based on cell values

    Quote Originally Posted by JBeaucaire View Post
    I would think:

    =INDEX(RESUMO!$D$27:$EA$4000, MATCH(AMOSTRAS!B4;RESUMO!$C$27:$C$4000; 0), MATCH(AMOSTRAS!K7;RESUMO!$D$26:$EA$26;0))
    It is still giving an error message and highlighting in black
    Please Login or Register  to view this content.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need function to find row and column based on cell values

    Change that comma to a semicolon

+ 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. Replies: 2
    Last Post: 02-14-2014, 03:04 PM
  2. Replies: 2
    Last Post: 12-30-2013, 08:15 AM
  3. [SOLVED] Find last value in one column based on values in another (text only)
    By slash_gnr3k in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2012, 11:37 AM
  4. Replies: 5
    Last Post: 09-29-2011, 06:39 AM
  5. [SOLVED] Find and sum values based on a column search
    By Chocolate-Thunder in forum Excel General
    Replies: 4
    Last Post: 08-09-2006, 12:20 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