+ Reply to Thread
Results 1 to 7 of 7

Large Function with Multiple Ranges

  1. #1
    Registered User
    Join Date
    12-30-2009
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    43

    Large Function with Multiple Ranges

    I am trying to use the large function over two ranges. Even though incorrect I will include my original formula that doesn't work to help illustrate.

    if(large((L20:L500,W20:W500),1)=I20,$P$4,if((large((L20:L500,W20:W500),2)=I20,$P$5,0)))

    Does anybody know of an easy way around this?
    Last edited by TYork; 02-01-2010 at 02:55 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Large Function with Multiple Ranges

    Do you mean?

    =IF(LARGE((L20:L500,W20:W500),1)=I20,$P$4,IF(LARGE((L20:L500,W20:W500),2)=I20,$P$5,0))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-30-2009
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Large Function with Multiple Ranges

    Yes, I added one too many sets of parens but that shouldn't interfere with the overall result.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Large Function with Multiple Ranges

    Can you explain then what you want to do exactly and what the result should be?

  5. #5
    Registered User
    Join Date
    12-30-2009
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Large Function with Multiple Ranges

    Attached is a sample file that illustrates the the problem a bit better. Just throw an "=" in front of the formula. Thanks for looking at it. This formula would result in 500 being placed next to the number 1.98 and 250 being placed next to number 1.9 if the formula was copied down.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    08-23-2009
    Location
    Hampshire, UK
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    328

    Re: Large Function with Multiple Ranges

    This should work
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-30-2009
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: Large Function with Multiple Ranges

    I see what the problem was. In my actual sheet it was referencing a cell with a null value so I was getting an error. The formula you provided was the same as mine except for the absolute references. When I apply the original formula on a cell with an actual value it returns the correct result. I just too quickly assumed my formula was wrong. Thanks for the help. If I hadn't have created the example sheet for you to look at I would have been scrating my head for a while.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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