+ Reply to Thread
Results 1 to 5 of 5

Array formula problem.

Hybrid View

  1. #1
    Registered User
    Join Date
    02-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    80

    Array formula problem.

    Hi,

    I have writen the following formula in cell C8 but i don't get any result.

    =IF(ISERROR(INDEX('Consumables In AM Rack'!$B$4:$B$357,SMALL(IF('Consumables In AM Rack'!$A$4:$A$357=$C$3,ROW('Consumables In AM Rack'!$A$4:$A$357),""),ROW()))),"",INDEX('Consumables In AM Rack'!$B$4:$B$357,SMALL(IF('Consumables In AM Rack'!$A$4:$A$357=$C$3,ROW('Consumables In AM Rack'!$A$4:$A$357),""),ROW()))).

    In Basic.
    User enters code in cell C3 (press enter)
    Array formula looksup the value in Consumables In AM Rack sheet column A bring over all the list of location it matches in column B one by one.

    result i should see in Location Search Sheet.

    for code 24959
    cell C8 should have AM351002
    cell C9 should have AM353002
    cell C10 should have AM354002

    For code SW09
    cell C8 should have AM351001
    cell C9 should have AM352002
    cell C10 should have AM353001

    Please can you assist me.

    Many Thanks in advance.

    Regards
    Hitesh
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Array formula problem.

    Try...

    A8:

    =COUNTIF('Consumables In AM Rack'!$A$4:$A$357,$C$3)

    C8, confirmed with CONTROL+SHIFT+ENTER, and copied down:

    =IF(ROWS(C$8:C8)<=$A$8,INDEX('Consumables In AM Rack'!$B$5:$B$356,SMALL(IF('Consumables In AM Rack'!$A$5:$A$356=$C$3,ROW('Consumables In AM Rack'!$A$5:$A$356)-ROW('Consumables In AM Rack'!$A$5)+1),ROWS(C$8:C8))),"")

    See sample file attached...
    Attached Files Attached Files
    Last edited by Domenic; 07-05-2009 at 08:15 AM. Reason: Changed the location of the first formula...

  3. #3
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,868

    Re: Array formula problem.

    Change your array formula,
    =IF(ISERROR(INDEX('Consumables In AM Rack'!$B$4:$B$357,SMALL(IF('Consumables In AM Rack'!$A$4:$A$357=$C$3,ROW('Consumables In AM Rack'!$A$4:$A$357),""),ROW(1:1)))),"",INDEX('Consumables In AM Rack'!$B$4:$B$357,SMALL(IF('Consumables In AM Rack'!$A$4:$A$357=$C$3,ROW('Consumables In AM Rack'!$A$4:$A$357),""),ROW(1:1))))
    HTH,
    windknife

  4. #4
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Array formula problem.

    In C8
    =IF(ROWS($B$8:B8)<=COUNTIF('Consumables In AM Rack'!$C$5:$C$356,'Location Search'!$C$3),INDEX('Consumables In AM Rack'!$B$5:$B$356,SMALL(IF($C$3='Consumables In AM Rack'!$C$5:$C$356,ROW(INDIRECT("1:"&ROWS('Consumables In AM Rack'!5:356)))),ROW(A1))),"")
    In D8
    =IF(ROWS($B$8:C8)<=COUNTIF('Consumables In AM Rack'!$C$5:$C$356,'Location Search'!$C$3),INDEX('Consumables In AM Rack'!$E$5:$E$356,SMALL(IF($C$3='Consumables In AM Rack'!$C$5:$C$356,ROW(INDIRECT("1:"&ROWS('Consumables In AM Rack'!5:356)))),ROW(B1))),"")
    Copy 'em down
    Attached Files Attached Files
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Array formula problem.

    id use
    =IF(ROWS($A$1:A1)>COUNTIF('Consumables In AM Rack'!$A$1:$A$356,$C$3),"",INDEX('Consumables In AM Rack'!$B$1:$B$356,SMALL(IF('Consumables In AM Rack'!$A$1:$A$356=$C$3,ROW('Consumables In AM Rack'!$A$1:$A$356),""),ROWS($A$1:A1))))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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