+ Reply to Thread
Results 1 to 7 of 7

Return Row Title based on critera

  1. #1
    Registered User
    Join Date
    01-31-2018
    Location
    Florida, USA
    MS-Off Ver
    2013
    Posts
    3

    Question Return Row Title based on critera

    Hello!

    I've found much valuable information on this forum, however I am having a hard time applying some examples I've found to accomplish my goal in this particular scenario.

    I have a table that uses data validation lists made from data on different sheets. In other words, the values generated from user-input in cells A2 (208V) & B4 (558.4), should refer to sheet "ABB Disconnects" & return the appropriately sized disconnect to cell B6. Here is the user-inputted data sheet "Disconnect Sizer":
    Sizer.png

    Here is sheet "ABB Disconnects" with the sizing data:
    Disc.png

    In the scenario shown in the first image, 208V & 558.4 (amps), the "OT200" row title should be returned to cell B6 because 962 is the closest greater value to 558.4.
    Final.png


    Notes:
    RED is for user-input sheet "Disconnect Sizer"
    ORANGE is for data sheet "ABB Disconnects"

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Return Row Title based on critera

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Return Row Title based on critera

    If you can sort "ABB Disconnects" based on any value column -> Largest to smallest.

    You can use following:
    =INDEX('ABB Disconnects'!A3:A6,MATCH(B4,INDEX('ABB Disconnects'!B3:F6,,MATCH(A1,'ABB Disconnects'!B2:F2,0)),-1))
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  4. #4
    Registered User
    Join Date
    01-31-2018
    Location
    Florida, USA
    MS-Off Ver
    2013
    Posts
    3

    Re: Return Row Title based on critera

    Thank you for a step in the right direction, CK76. I changed cell A1 to A2 (Voltage Value) in your function and gave it a go, but get N/A returned. See attached
    Much appreciated.
    Attached Files Attached Files

  5. #5
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Return Row Title based on critera

    Note this part.
    sort "ABB Disconnects" based on any value column -> Largest to smallest
    See attached.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-31-2018
    Location
    Florida, USA
    MS-Off Ver
    2013
    Posts
    3

    Re: Return Row Title based on critera

    Thank you very much for your solution CK76. I noticed your comment after hitting that reply button and began editing my comment :P

    You're an Excel hero!

  7. #7
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Return Row Title based on critera

    You are welcome and thanks for the rep

+ 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] ARRAY Formula to return text that meets critera based on a range
    By RoundaboutCJP in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-10-2017, 06:30 AM
  2. [SOLVED] Formula to return column title based on a cell reference
    By AJB611 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-03-2017, 11:59 AM
  3. [SOLVED] Search a sheet for a song title and return Album title
    By A440 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-28-2016, 10:19 AM
  4. [SOLVED] How to Return Title of Row based on Ranking in Table?
    By Invicta084 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-19-2015, 08:37 PM
  5. [SOLVED] Return column title based on smallest value by row?
    By realrookie in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-29-2015, 12:58 PM
  6. Replies: 1
    Last Post: 10-16-2014, 04:29 PM
  7. [SOLVED] Return a Value Based on 3 Critera
    By mvp23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-19-2006, 07:10 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