+ Reply to Thread
Results 1 to 4 of 4

Cell Value Picked by text in list

  1. #1
    Forum Contributor
    Join Date
    03-27-2022
    Location
    MS, USA
    MS-Off Ver
    Microsoft 365
    Posts
    149

    Cell Value Picked by text in list

    I want a formula that picks either Group 1, Group 2, Group 3. Based on the text under each Group. I attached a practice piece as a reference of what I mean. Any help would be appreciated. Thank you
    Attached Files Attached Files
    Last edited by Ajaxs87; 07-01-2022 at 06:08 PM.

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2505
    Posts
    1,532

    Re: Cell Value Picked by text in list

    Assuming text in F2, try:

    =INDEX(A1:C1,AGGREGATE(15,6,COLUMN(1:1)/(A2:C10=F2),1))

    Good luck!

  3. #3
    Forum Contributor
    Join Date
    03-27-2022
    Location
    MS, USA
    MS-Off Ver
    Microsoft 365
    Posts
    149

    Re: Cell Value Picked by text in list

    Thank you! If you have free time, can you lightly explain how you did this? If not I greatly appreciate you, for the help you have already accomplished!

  4. #4
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2505
    Posts
    1,532

    Re: Cell Value Picked by text in list

    You're welcome. Glad to help.

    Select the argument COLUMN(1:1)/(A2:C10=F2) in the formula bar, press the F9 key and you'll see that Excel creates an array of values and errors like #DIV/0!, #DIV/0!, 3, #NA,... where here, for instance, the third column finds a match (Megaman was selected), so it returns 3, i.e, the value is found in the third column.
    The AGGREGATE function, when its first argument is selected as 15 (SMALL), returns the smallest value that matches criterion.

    Thank you for the feedback and for the reputation added.
    Have a blessed day!

+ 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: 5
    Last Post: 07-01-2019, 02:13 PM
  2. Replies: 6
    Last Post: 02-16-2017, 05:08 PM
  3. Transfer rows to different sheets based on cell picked from list.
    By bbrock316 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2016, 05:26 PM
  4. [SOLVED] Inserting value in a cell when element is picked from a dropdown list in another cell
    By adriano.r.marques in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-25-2015, 04:38 PM
  5. Formula to show an adjacent cell to the one picked in a data validation list
    By sengatwork in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-14-2013, 02:30 PM
  6. How to Lock a cell based on option picked from a data validation list
    By dp0875 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-31-2013, 10:53 AM
  7. How validation dropdown list open when cell is picked?.
    By ron in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-21-2006, 08:45 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