+ Reply to Thread
Results 1 to 16 of 16

Need help with Index Small formula

  1. #1
    Registered User
    Join Date
    10-17-2022
    Location
    toronto
    MS-Off Ver
    2021
    Posts
    40

    Question Need help with Index Small formula

    practice1.xlsx


    Hi,

    Thanks for your guidenace in advance! I have attaced my excel for review. I want a working formula to generate the "expected result" in the excel file.

    I got this: =IFERROR(INDEX($A$2:$A$4, SMALL(IF(ISNUMBER($B$2:$D$4), ROW($B$2:$D$4)-ROW($B$2)+1), ROW()-ROW($A$1))), "")

    from chatgpt, but it didn't produce the answers in the order I want. I would like to have it from top to bottom in first 2nd column, then from top to bottom again in 3rd column and so on , thx
    Last edited by AliGW; 06-17-2023 at 10:34 AM. Reason: SOLVED tag applied - no need to edit the thread title!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,929

    Re: Need help with Index Small formula

    Are you still using Excel 2016 or something newer?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-17-2022
    Location
    toronto
    MS-Off Ver
    2021
    Posts
    40

    Re: Need help with Index Small formula

    I am using excel 2021, thx

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,929

    Re: Need help with Index Small formula

    Your profile needs updating, please. Do this NOW. Thanks.

    Should cell D5 be 1 or 12?

    Will the numbers in the table section be unique (appearing once only)?

  5. #5
    Registered User
    Join Date
    10-17-2022
    Location
    toronto
    MS-Off Ver
    2021
    Posts
    40

    Re: Need help with Index Small formula

    thx, updated my excel version.


    Basically, I want the formula to check from B2 to B5, then C2 to C5, then D2 to D5 if it is a number, if it is number then output the row label. If it is blank then skip it to the next cell and check. thx
    Last edited by fatkinglet; 06-17-2023 at 01:54 AM.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,929

    Re: Need help with Index Small formula

    That didn't answer EITHER of my questions! I understand what you are trying to do.

    I asked:

    1. Is D5 meant to be 1 or is that a typo? Should it be 12? If not, explain why melon appears at the bottom of the list.
    2. In columns B to D, is the data realistic? Will it be numbers and will each of the numbers be unique (i.e. not repeated)?

    Please answer the questions.

  7. #7
    Registered User
    Join Date
    10-17-2022
    Location
    toronto
    MS-Off Ver
    2021
    Posts
    40

    Re: Need help with Index Small formula

    That didn't answer EITHER of my questions! I understand what you are trying to do.

    I asked:

    1. Is D5 meant to be 1 or is that a typo? Should it be 12? If not, explain why melon appears at the bottom of the list. - it is 1 and a makeup number , not a typo. The cell can be either blank or 1 to 999...
    2. In columns B to D, is the data realistic? Will it be numbers and will each of the numbers be unique (i.e. not repeated)? I have de-sized the table for illustration and changed all the labeling and numbers. each number is not unique, can be repeated. thx

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,929

    Re: Need help with Index Small formula

    In the absence of a response to either question, I am assuming that 1 in D5 is a typo and that the numbers will be unique. If so, you can try this:

    =IFERROR(INDEX($A$2:$A$5,SUMPRODUCT(($B$2:$D$5=AGGREGATE(15,6,($B$2:$D$5)/($B$2:$D$5<>""),ROWS($A$1:A1)))*(ROW($A$2:$A$5)-1))),"")
    Attached Files Attached Files

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

    Re: Need help with Index Small formula

    And on the assumption that the numbers are NOT unique, use this: (just enter... not an array formula):

    =IFERROR(INDEX(A:A,10^6*MOD(AGGREGATE(15,6,(ROW($B$2:$D$5)/10^6+COLUMN($B$2:$D$5))/($B$2:$D$5<>""),ROWS(L$2:L2)),1)),"")

    See file. Adjust the bit in red to equal the FIRST cell in which the formula is used. In the file it's in L2....
    Attached Files Attached Files
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Need help with Index Small formula

    Another approach, same result, please try and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Note: Thanks to Trevor and wildknife, from which I learned an important part of this trick yesterday.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    10-17-2022
    Location
    toronto
    MS-Off Ver
    2021
    Posts
    40

    Re: (resolved) Need help with Index Small formula

    Thx everyone for your patient and help, the formula works.

    I will need study the formula now :D

  12. #12
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: (resolved) Need help with Index Small formula

    Thanks for your feedback and rep . Glad to have helped.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,929

    Re: (resolved) Need help with Index Small formula

    Which formula works? There were several!

    Thanks for the rep.

  14. #14
    Registered User
    Join Date
    10-17-2022
    Location
    toronto
    MS-Off Ver
    2021
    Posts
    40

    Re: Need help with Index Small formula

    =IFERROR(INDEX(A:A,10^6*MOD(AGGREGATE(15,6,(ROW($B$2:$D$5)/10^6+COLUMN($B$2:$D$5))/($B$2:$D$5<>""),ROWS(L$2:L2)),1)),"")

    The one from Glenn works for me, because the numbers are not unique, but I do appreciate everyone's effort and help, so I can see other possibilites.

    This formula is really complex to me atm, i will need time and chatgpt to understand it :D

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,929

    Re: Need help with Index Small formula

    i will need time and chatgpt to understand it :D
    Why not just ask Glenn about the bits you don't understand?

  16. #16
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,439

    Re: Need help with Index Small formula

    Cell G2 formula , Drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Index SMALL formula help
    By MammuB in forum Excel General
    Replies: 5
    Last Post: 06-12-2023, 03:46 AM
  2. [SOLVED] Index Small Formula?
    By lalahaedong_excel in forum Excel General
    Replies: 3
    Last Post: 10-24-2017, 11:14 AM
  3. [SOLVED] ask formula index+small + if
    By daboho in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-12-2015, 04:29 AM
  4. Index Small Row Formula
    By davidcharis16 in forum Excel General
    Replies: 3
    Last Post: 04-16-2015, 04:40 AM
  5. if, index, small - formula issue
    By jw01 in forum Excel General
    Replies: 6
    Last Post: 10-24-2012, 01:21 AM
  6. if(small(index...formula issue
    By jw01 in forum Excel General
    Replies: 7
    Last Post: 01-26-2012, 12:05 PM
  7. INDEX SMALL ROW Formula #REF! error.
    By elcasey125 in forum Excel General
    Replies: 3
    Last Post: 12-10-2008, 12:41 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