+ Reply to Thread
Results 1 to 10 of 10

Dynamic Range For "SMALL" Function Then Offset LookUp

Hybrid View

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    9

    Dynamic Range For "SMALL" Function Then Offset LookUp

    Hi,

    I have an annual budget that contains all the days in year, and various formulas calculating values.

    That bottom row of the table has a simple indicator to show if the day is in the past.

    Please see the attached demo of the layout...

    demo.xlsx

    I want a formula to create a dynamic range from "tomorrow" to the end of the sheet (J:V in the example) but this will move as the date changes.

    I will then use that range to return the 3 smallest values (A7:A9 in the example as today is 8th July), but I also want it to return the date that small value occurs on (B7:B9 in the example). If the small value occurs more than once, that it just needs to return the first and associated date.

    Row 1 contains the date to report, row 4 contains the balance to check and row 5 contains the day indicator.

    Many thanks.
    Last edited by david.nicholls; 07-09-2013 at 07:34 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,605

    Re: Dynamic Range For "SMALL" Function Then Offset LookUp

    Hi

    I don't understand how these smallest values are obtained. Are they the smallest in each category, Profit, Loss, Balance?

  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Dynamic Range For "SMALL" Function Then Offset LookUp

    The smallest values are calculated using the SMALL() function, testing the balance line, but only J4:V4 as these are the columns in the future.

    I realised there was a slight mistake in the demo SMALL() function included - I've update the demo file and attached below.

    demo.xlsx
    Last edited by david.nicholls; 07-08-2013 at 05:47 AM.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Dynamic Range For "SMALL" Function Then Offset LookUp

    1 way using this ARRAY formula.

    =SMALL(IF($B$5:$BT$5<>"x",IF($B$4:$BT$4>0,$B$4:$BT$4)),ROW(A1))

    Copy down.

    -- Array(CSE) { }, formulae are confirmed with Control+Shift+Enter.
    Not just Enter.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    03-07-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Dynamic Range For "SMALL" Function Then Offset LookUp

    Hi,

    OK, that's great for half the solution, but I now need to concatenate the date that "SMALL" value is coming from, in the example, it find £6.00 as the low value at column "U", so it should return "£6.00 on 20/07/2013"

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Dynamic Range For "SMALL" Function Then Offset LookUp

    Array formula.

    =SMALL(IF($B$5:$BT$5<>"x",IF($B$4:$BT$4>0,$B$4:$BT$4)),ROW(A1))&" On "&TEXT(INDEX($B$1:$BT$1,MATCH(SMALL(IF($B$5:$BT$5<>"x",IF($B$4:$BT$4>0,$B$4:$BT$4)),ROW(A1)),$B$4:$BT$4,0)),"dd/mm/yyyy")

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Dynamic Range For "SMALL" Function Then Offset LookUp

    Duplicate post....

  8. #8
    Registered User
    Join Date
    03-07-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Dynamic Range For "SMALL" Function Then Offset LookUp

    That's great - much appreciated...

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Dynamic Range For "SMALL" Function Then Offset LookUp

    ........................

  10. #10
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,605

    Re: Dynamic Range For "SMALL" Function Then Offset LookUp

    A non array solution for B7 ( and pull down)
    =TEXT(SMALL(INDEX($4:$4,MATCH(TODAY()+1,$1:$1,0)):INDEX($4:$4,MATCH(9.9999E+307,$4:$4)),ROW()-6),"£#.00")&" on "&TEXT(INDEX($1:$1,MATCH(SMALL(INDEX($4:$4,MATCH(TODAY()+1,$1:$1,0)):INDEX($4:$4,MATCH(9.9999E+307,$4:$4)),1),$4:$4,0)),"dd/mm/yyyy")

+ 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