+ Reply to Thread
Results 1 to 22 of 22

Need to understand how Index Large and Column functions working in this formula

  1. #1
    Registered User
    Join Date
    02-07-2019
    Location
    New Delhi
    MS-Off Ver
    2010
    Posts
    80

    Need to understand how Index Large and Column functions working in this formula

    Hello,

    INDEX($B$1:$L$1,0,LARGE(IF(($A$2:$A$8=D15)*($B$2:$L$8="L"),COLUMN($B$1:$L$1),0),1)-1)

    I have this formula which takes me to column number 6. I need to understand how it is reaching to column no 6.

    I'm attaching a excel sheet as a reference.

    Thank you,

    Manish
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-07-2019
    Location
    New Delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: Need to understand how Index Large and Column functions working in this formula

    I used -1 to reach column no 5 to get my answer. but I need to understand how it is reaching to column no 6.

    Thank you

  3. #3
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Need to understand how Index Large and Column functions working in this formula

    From
    INDEX($B$1:$L$1,0,LARGE(IF(($A$2:$A$8=D15)*($B$2:$L$8="L"),COLUMN($B$1:$L$1),0),1)-1)


    INDEX($B$1:$L$1,0,LARGE(IF(($A$2:$A$8=D15)*($B$2:$L$8="L"),COLUMN($B$1:$L$1),0),1)-1)
    This part is refer to column number of B to L (for use in LARGE function)
    {2,3,4,5,6,7,8,9,10,11,12}


    INDEX($B$1:$L$1,0,LARGE(IF(($A$2:$A$8=D15)*($B$2:$L$8="L"),COLUMN($B$1:$L$1),0),1)-1)
    {
    0,0,0,0,0,0,0,0,0,0,0; for Mukesh
    0,0,0,0,0,0,0,0,0,0,0; for Deepak
    0,0,0,0,0,0,0,0,0,0,0; for Raju
    0,0,0,0,0,0,0,0,0,0,0; for Pankaj
    0,0,0,0,0,0,0,0,0,0,0; for Suresh
    0,0,0,0,0,0,0,0,0,0,0; for Hitesh
    0,3,0,0,6,0,0,0,0,0,0 for Amit
    }

    so, maximum number is 6 because come from 5th column in the range (but it is 6th column of worksheet).



    Regards.
    Last edited by menem; 10-15-2019 at 11:21 AM.

  4. #4
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Need to understand how Index Large and Column functions working in this formula

    You could use it like this instead:

    Please Login or Register  to view this content.
    Also enter with Ctrl+Shift+Enter to create an array formula. There's also an AGGREGATE solution if you have that function:

    Please Login or Register  to view this content.
    Note that this doesn't need to be an array formula.

    WBD
    Office 365 on Windows 11, looking for rep!

  5. #5
    Registered User
    Join Date
    02-07-2019
    Location
    New Delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: Need to understand how Index Large and Column functions working in this formula

    @-menem - Perfect! Thank you so much

    @-WideBoyDixon - Awesome, thank you so much

    I have just a follow up question.

    I'm trying to get starting value and ending value from the data for a learning purpose.

    Here is the formula I'm trying to apply to get for starting values: - INDEX($B$2:$B$26,SMALL(IF($A$2:$A$26=$G2,ROW($B$2:$B$26),""),ROW(A1))-1)
    Here is the formula I'm trying to apply to get for ending values : - INDEX($B$2:$B$26,LARGE(IF($A$2:$A$26=$G2,ROW($B$2:$B$26),""),ROW(A1))-1)

    I'm missing a logic here again. Could you please help.

    Thank you.

    Manish

  6. #6
    Registered User
    Join Date
    02-07-2019
    Location
    New Delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: Need to understand how Index Large and Column functions working in this formula

    Further explained

    There is a column A and Column B.

    Column A contain a list of 3 fruits Apple Mango and Orange from A2 to A30
    Column B contain numeric values

    I need to obtain starting value and ending value of apple mango and orange respectively

    Thank you

    Manish

  7. #7
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Need to understand how Index Large and Column functions working in this formula

    That seems to be a different question. Can you post a new workbook with example of what you're trying to achieve?

    WBD

  8. #8
    Registered User
    Join Date
    02-07-2019
    Location
    New Delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: Need to understand how Index Large and Column functions working in this formula

    Hello WBD,

    I really wanted to add a file but I did not get that option. I have copied and pasted the data and its format below:

    Attachment 645641

    Please assist

    Thank you.

    Manish

  9. #9
    Registered User
    Join Date
    02-07-2019
    Location
    New Delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: Need to understand how Index Large and Column functions working in this formula

    You can add more random numbers in price column to get the outcome. Thank you, Manish.

  10. #10
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Need to understand how Index Large and Column functions working in this formula

    Quote Originally Posted by Pawnar View Post
    Hello WBD,

    I really wanted to add a file but I did not get that option. I have copied and pasted the data and its format below:

    Attachment 645641

    Please assist

    Thank you.

    Manish
    That attachment didn't work.

  11. #11
    Registered User
    Join Date
    02-07-2019
    Location
    New Delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: Need to understand how Index Large and Column functions working in this formula

    Oh!!

    I will try to explain this way:

    Column A: Column B:
    Name of Fruits Price

    For Column A - There is a random list of 3 fruits Apple, Mango and Orange (A2:A21)
    For Column B - Column B has a random numeric numbers (A2:A21)

    I need to obtain a Starting Price and a End Price of each fruits in below format:

    Fruits Starting Price End Price
    Apple
    Mango
    Orange

    I have used below formula to get my output. But that's not correct.

    starting values: - INDEX($B$2:$B$26,SMALL(IF($A$2:$A$26=$G2,ROW($B$2:$B$26),""),ROW(A1))-1)
    ending values : - INDEX($B$2:$B$26,LARGE(IF($A$2:$A$26=$G2,ROW($B$2:$B$26),""),ROW(A1))-1)

    Please suggest.

    Thank you.

    Manish

    PS: - cud you also share the steps with me to attach a file. TYSVM

  12. #12
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Need to understand how Index Large and Column functions working in this formula

    You attached a file to your first post.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Don't try to use the Paperclip icon, as it doesn't work on this forum.

    Hope this helps.

    Pete

  13. #13
    Registered User
    Join Date
    02-07-2019
    Location
    New Delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: Need to understand how Index Large and Column functions working in this formula

    Gotcha!!

    Thank you so very much. I was trying to get that option via Quick Reply.

    That worked for me.

  14. #14
    Registered User
    Join Date
    02-07-2019
    Location
    New Delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: Need to understand how Index Large and Column functions working in this formula

    Hello,

    The highlighted part in the attached is the area where I'm trying to get starting value and ending value of each fruit listed in Col A

    Please suggest.

    Thank you.

    Regards,
    Manish Panwar
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    02-07-2019
    Location
    New Delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: Need to understand how Index Large and Column functions working in this formula

    Starting Price Value and Ending Price Value***

  16. #16
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Need to understand how Index Large and Column functions working in this formula

    $H2 and $I2 formulas:

    Please Login or Register  to view this content.
    Enter both with Ctrl+Shift+Enter to create an array formula then copy down to H3:I4.

    Alternatively, if you want to use AGGREGATE:

    Please Login or Register  to view this content.
    These don't need to be entered with Ctrl+Shift+Enter.

    WBD

  17. #17
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Need to understand how Index Large and Column functions working in this formula

    Another way.

    In H2 filled down and across both columns.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  18. #18
    Registered User
    Join Date
    02-07-2019
    Location
    New Delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: Need to understand how Index Large and Column functions working in this formula

    Thank you so very much!!

    I had just one last follow up question in the same regard. I have attached the file and looking for the answer in the same manner as highlighted in the sheet.

    Looking for min starting value and max ending value for each fruits.

    Appreciate the help!!
    Attached Files Attached Files

  19. #19
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Need to understand how Index Large and Column functions working in this formula

    Use these array* formulae in the cells stated:

    I3: =MIN(IF($A$2:$A$26=$H3,$B$2:$B$26))

    J3: =MAX(IF($A$2:$A$26=$H3,$B$2:$B$26))

    *Note that an array formula needs to be committed using the key combination of Ctrl-Shift-Enter, instead of the usual Enter.

    Then copy them down as required.

    Hope this helps.

    Pete

  20. #20
    Registered User
    Join Date
    02-07-2019
    Location
    New Delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: Need to understand how Index Large and Column functions working in this formula

    Yes!! Certainly, Pete.

    Thank you so very much everyone for your support. My queries are resolved.

    Regards,
    Manish

  21. #21
    Registered User
    Join Date
    02-07-2019
    Location
    New Delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: Need to understand how Index Large and Column functions working in this formula

    Thank you WBD

    Thank you menem

  22. #22
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Need to understand how Index Large and Column functions working in this formula

    Glad to hear that your questions have been solved.

    Perhaps nobody has told you, so you might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of any post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] This formula works but I donīt understand why Index(Index) match
    By campelliann in forum Excel General
    Replies: 2
    Last Post: 01-25-2016, 05:55 PM
  2. [SOLVED] Large & Small Functions Not Working If A Column Has Multiples Of The Same Date
    By Philb1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-26-2015, 07:03 PM
  3. Index Match with Large and If Formula - Not Working
    By richoconnor in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-07-2014, 10:37 AM
  4. [SOLVED] Long array formula with INDEX and MATCH quits working when range is too large
    By UncleKevy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-05-2013, 09:42 PM
  5. [SOLVED] Struggling to understand the Index/Match functions
    By PosiJoel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-26-2012, 08:57 PM
  6. LARGE and INDEX functions
    By bob in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-03-2006, 02:15 AM
  7. Don't understand why this formula is not working - Help Please!
    By a in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2005, 05:05 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