+ Reply to Thread
Results 1 to 12 of 12

Shorten Array Results To Relevant Range

  1. #1
    Forum Contributor
    Join Date
    02-09-2009
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    380

    Shorten Array Results To Relevant Range

    I would like to shorten the results returned to the relevant red columns only. Obviously these will be different all over the place. Is it possible to do this with index, match. I know it is possible with offset but I cannot do this because of the processing overhead. Is what I'm after achievable? Great article on de-referencing results from index, match which I have to share for the hell of it.



    1.png
    Attached Files Attached Files
    If it's been helpful please mark as helpful

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Shorten Array Results To Relevant Range

    This seems to do it:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Shorten Array Results To Relevant Range

    I read your question 3 times and looked at the workbook, but I don't understand what you want.
    I must be overlooking something crucial.
    Would you like to fill in manually what a formula should calculate and explain that based on the other data on your sheet.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Shorten Array Results To Relevant Range

    @Hans: I’m guessing he just wants to lose all the #REF errors. That's what I addressed. Seems to work rather than producing a column full of errors.

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Shorten Array Results To Relevant Range

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

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Shorten Array Results To Relevant Range

    Quote Originally Posted by TMS View Post
    @Hans: I’m guessing he just wants to lose all the #REF errors. That's what I addressed. Seems to work rather than producing a column full of errors.
    If that is the case please try in J2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Shorten Array Results To Relevant Range

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

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Shorten Array Results To Relevant Range

    Thanks for the rep.



    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  9. #9
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,783

    Re: Shorten Array Results To Relevant Range

    j4=IFERROR(SUMIF($B$5:$B$115,$I$3,INDEX($C$5:$G$115,,MATCH(SUBSTITUTE($I4,$C$3,"")+0,$C$4:$G$4,0))),"")

    copy down

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Shorten Array Results To Relevant Range

    Thx. for the rep .

  11. #11
    Forum Contributor
    Join Date
    02-09-2009
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    380

    Re: Shorten Array Results To Relevant Range

    Quote Originally Posted by HansDouwe View Post
    Thx. for the rep .
    Thanks for your input more. Amazes me how incredibly malleable the functions are. Also it's a double-edged sword as i remember the 90's the info was not out there. It still is lacking in some areas from Microsoft where they don't provide the info to work this out. Thankfully these forums are so helpful.

    Workbook attached with all solutions from kind guru's for help of poor tortured souls in the future.
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Shorten Array Results To Relevant Range

    Glad to help & thanks for the feedback.

+ 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. Producing tool help (IF greater than x kg, give me relevant results)
    By HarryDS14 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-04-2020, 10:21 AM
  2. Replies: 11
    Last Post: 07-12-2019, 07:05 PM
  3. [SOLVED] How to shorten the array formula
    By sweetfriend9 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-12-2017, 10:13 AM
  4. Filter not returning all relevant results
    By hnhorner in forum Excel General
    Replies: 3
    Last Post: 07-11-2015, 05:34 AM
  5. Reporting results against the relevant company
    By snappytim in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-29-2013, 09:10 PM
  6. Run macro on many cells pull data from web paste results next to relevant cell
    By elpettey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-08-2012, 01:44 PM
  7. Formula/Array to return results in a certain range
    By B_Riz in forum Excel General
    Replies: 7
    Last Post: 01-31-2011, 02:12 PM

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