+ Reply to Thread
Results 1 to 4 of 4

Using an Array formula within a standard one

  1. #1
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Using an Array formula within a standard one

    Firstly, Im a self confessed Array Formula dimwit!

    Im looking to find the last occurence of a particular item in sheet and display the cell 3 along from it. A quick google gave me an array formula which works fine to return the relevant row number

    Please Login or Register  to view this content.
    So in C8 I have the word "Car" and it correctly returns 8 as the answer because row 8 in the Case Notes is the last row referring to "Car"

    What I want however is to return the Note in column D of row 8 so I figured I could just add in the Offset to return the wanted cell

    Please Login or Register  to view this content.
    however when I do that (and enter it as an Array function) it returns the data from Cell(1,8) ie it doesnt run the array function bit as an array (and I can understand that because the addition of the OFFSET totally changes the array function).

    I can get around this with a hidden column where I'll just have the Array formula and then refer to that in the OFFSET but is that the best way to do this or is there a simple way mix Array and normal formulas?
    If someone has helped you then please add to their Reputation

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

    Re: Using an Array formula within a standard one

    OFFSET's first paramater should be a cell reference.

    Try
    OFFSET(C1,LARGE((('Case Notes'!C:C)=C8)*ROW('Case Notes'!C:C),1),-4)

    You might have to adjust the column/row by 1 to get the value exactly.
    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
    Registered User
    Join Date
    08-10-2012
    Location
    Derby, England
    MS-Off Ver
    2010 (Work) / 2016 (365) (Home)
    Posts
    14

    Re: Using an Array formula within a standard one

    Hi,

    The alternative is to use the INDEX and MATCH functions, which seem to work when I tried a mini-example.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    For performance issues, it is always worth capping your table size rather than using an entire column (i.e.: $C$1:$C$1000 rather than $C:$C).

    Hope this helps,

    ---
    Bernieburnham

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Using an Array formula within a standard one

    So you'd like to search the last "Car" (word in cell C8) in C column then get data in D column?

    =LOOKUP(2,1/('Case Notes'!C:C=C8),'Case Notes'!D:D)
    Quang PT

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Array standard deviaton formula
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-19-2015, 01:54 PM
  2. [SOLVED] Help with Standard Deviation of array
    By johnexceljohn in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-10-2014, 06:21 PM
  3. Standard Deviation Formula
    By techwriter80 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2010, 11:14 AM
  4. Standard Deviation Formula
    By smyeow in forum Excel General
    Replies: 0
    Last Post: 07-17-2007, 09:52 PM
  5. [SOLVED] is there a standard formula for this?
    By keith in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-21-2005, 11:55 PM
  6. Array Formulas for Geometric Standard Deviation and Sharpe
    By Zeelotes in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-19-2005, 02:05 AM
  7. Replies: 0
    Last Post: 07-27-2005, 11:05 AM

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