+ Reply to Thread
Results 1 to 8 of 8

Code couldn't works

  1. #1
    Registered User
    Join Date
    06-06-2012
    Location
    Philippine
    MS-Off Ver
    Excel 2007
    Posts
    16

    Code couldn't works

    Hi All,

    Much appreciated if someone could advise why this code cannot be works in the attached excel.
    =INDEX($B$2:$B$8, SMALL(IF($A$11=$A$2:$A$8, ROW($A$2:$A$8)-ROW($A$2)+1), COLUMN(A1)))

    Thanks.

    Regards,
    Jack
    Attached Files Attached Files
    Last edited by jackyong1985; 08-18-2012 at 05:39 AM.

  2. #2
    Forum Guru Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Code couldn't works

    Its an array formula, make sure you confirm with Ctrl+Shift+Enter and not just Enter
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    06-06-2012
    Location
    Philippine
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Code couldn't works

    Thanks for your info. I've one more question. The data will amend accordingly if i drag horizontally. However, if i drag vertically, it just won't change even i've added the data such as Oranges, Pears etc at row A. My data are quite a lot hence it's impossible for me to edit the code manually. Thanks.

  4. #4
    Forum Guru Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Code couldn't works

    Extend the ranges $A$2:$A$8 and $B$2:$B$8 to include added rows?

  5. #5
    Registered User
    Join Date
    06-06-2012
    Location
    Philippine
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Code couldn't works

    Hi,

    I've attached the file for further details. The figure just won't changed. Please assist and much appreciated your help.

    Regards,
    Jack
    Attached Files Attached Files

  6. #6
    Forum Contributor CheshireCat's Avatar
    Join Date
    10-11-2011
    Location
    Victoria, Canada
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    258

    Re: Code couldn't works

    Still an array formula:

    Please Login or Register  to view this content.
    Docendo discimus.

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,202

    Re: Code couldn't works

    For your title - it's not code it's a formula
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  8. #8
    Registered User
    Join Date
    06-06-2012
    Location
    Philippine
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Code couldn't works

    Sorry for the misleading title. Thanks for your help Cheshirecat. .. much appreciated

+ 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