+ Reply to Thread
Results 1 to 7 of 7

Array formula not bringing correct data

  1. #1
    Forum Contributor
    Join Date
    08-04-2010
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    110

    Array formula not bringing correct data

    Hi guys
    It's been a while since my last post, but I've hit a wall and am desperate for help.
    I'm using an array formula to bring through a list of products from one sheet to another.

    Here's the data I am trying to extrapolate:
    Bellway 87.5
    BKG 87.5
    BARC 44.34
    VED 41.76
    BT 44
    BKG 43.61
    VOD 44.07
    CPG 43.58
    IHG 43.6
    BATS 320.66
    STAN 239.77
    VED 179.91
    DGE 83.26
    EMG 45.26
    GFS 212
    UU 79.2

    Now, that data is in 'Sheet1'
    In a sheet labelled Equities, I am using this formula
    Please Login or Register  to view this content.
    This then brings through the list of names in column A.
    However, in column B I am trying to use another array formula to bring through the data in column L. For which, I am using this formula
    Please Login or Register  to view this content.
    It pulls the figures through, but, when it comes to duplicated entries (ie the BKG and the VED), it's only pulling through the first figure, for both the first and second time that item appears.

    Am I missing something really simple to get it to bring through the second item for the second instance something comes up?


    Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Array formula not bringing correct data

    For a start, dont do the whole column it will slow things down, enter a row number in the formula
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor
    Join Date
    08-04-2010
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    110

    Re: Array formula not bringing correct data

    Have tried that. I get a #REF error when I do.

  4. #4
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Array formula not bringing correct data

    If the data you want in column B is from "other sheet" L, and across from data in column A from "other sheet" K, then use the same formula as in A and change the last index function's column offset to 2.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Array formula not bringing correct data

    wherever it is that you start with this formula:

    Please Login or Register  to view this content.
    use the following ARRAY formula instead:

    Please Login or Register  to view this content.
    it is counter-productive to ask for your formula to be fixed without sharing a sample file. as far as i can see, your formulae are sub-optimal. if you share the sample file, efficiency and readability could be improved.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  6. #6
    Forum Contributor
    Join Date
    08-04-2010
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    110

    Re: Array formula not bringing correct data

    This works.
    Not quite how I wanted to do it, but it gets the desired result.

    Thanks.


    Sorry Icest. Normally I do post samples, but was in such a rush as we're short staffed at work that I couldn't provide one without compromising data in it.

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Array formula not bringing correct data

    I shortened the ranges to match the small sample given and changed the cell range references to absolute. This is the revised version of the first formula that I came up with:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The second formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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