+ Reply to Thread
Results 1 to 2 of 2

Row & Large Function

  1. #1
    Registered User
    Join Date
    07-30-2004
    Posts
    20

    Row & Large Function

    What I'm trying to do is this: I have a list of numbers in A1:A100, I need to find the largest number in A15:A30 and subtract from it the number in the cell immediately above it. Ex:

    10
    15
    17
    2
    20
    5

    I would want my formula to give a result of 18. (20 - 2).
    I started with large(A15:30,1) but not sure how to capture the row that 20 falls in?

    Thanks,
    Moe

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    This is one way to do it:

    =LARGE(A1:A5,1)-INDEX(A1:A5,MATCH(LARGE(A1:A5,1),A1:A5,0)-1)

    Regards,
    Ron

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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