+ Reply to Thread
Results 1 to 6 of 6

Seeking a Less Resource Intense Lookup Formula

  1. #1
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Seeking a Less Resource Intense Lookup Formula

    Afternoon all,

    I've started to create a model but two of the formulas I've written appear to be resource draining and I'm hoping someone can conjure up a more efficient solution? Attached is an example of the data and structure I'm working with. The 'Services' tab defines which buildings require which services. The 'Rates' tab identifies which services are required against which building and provides an input field to captures the cost. The problem I have is that some estates may be up to 400 buildings and the number of services available is 170+, so the data could span over 70k rows and Excel doesn't like this approach. It's fine whilst the workbook is open but if I save and try to reopen the document later it won't have it. Sometimes I get an error message saying it's too resource intensive, other times it simply closes Excel.

    The formulas I'm looking to improve are in columns C & D of the 'Rates' tab (highlighted orange).

    Thanks in advance,

    Snook

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

    Re: Seeking a Less Resource Intense Lookup Formula

    For col D, how about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Seeking a Less Resource Intense Lookup Formula

    Hi Snook,

    See if my answer using Power Query Unpivot works for you.
    PQ Unpivot 29.05.22 Less Resource Intense Lookup Formula.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Seeking a Less Resource Intense Lookup Formula

    @Fluff13 - Thanks for this, much appreciated. I don't want to count my chickens but your alternative solution appears a lot more palatable to XL. It's opening the workbook with relative ease now. Great shout on the T function, I'd never even heard of it.

    @MarvinP - Thanks MarvinP, I'm always grateful for a PQ solution. Unfortunately in this instance I'm not the sole end user (it's a template for others), otherwise I'd have been happy to use it.

    Snook

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

    Re: Seeking a Less Resource Intense Lookup Formula

    Glad to help & thanks for the feedback.

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Seeking a Less Resource Intense Lookup Formula

    Please try at
    A2:B2
    =INDEX(Services!B$3:B$27,MOD(ROWS(A$2:A2)-1,25)+1)


    D2
    =INDEX(Services!$D$3:$M$27,MOD(ROWS(D$2:D2)-1,25)+1,(ROWS(D$2:D2)-1)/25+1)&""


    or MS365
    =LET(z,Services!$B$2:$M$27,r,ROWS(z)-1,c,COLUMNS(z)-2,s,SEQUENCE(r*c,,0),rs,INDEX(z,(MOD(s,r)+2)^{1,1,0,1},(s/r+3)^{0,0,1,1}+{0,1,0,0})&"",rs)

+ 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. Use LOOKUP to populate a resource allocation summary
    By Jgoodsel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-27-2020, 05:19 PM
  2. seeking a combined 'index' / vertical lookup with two citeria - formula
    By nielsb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-20-2015, 04:54 PM
  3. How to Hyperlink Resource Drive Auto update for Resource File.
    By Saikrishna12345 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-17-2015, 03:19 AM
  4. Resource management - Rule for resource vs date clashing
    By gwoolley0302 in forum Excel General
    Replies: 1
    Last Post: 07-22-2014, 04:48 AM
  5. Replies: 1
    Last Post: 11-22-2013, 12:16 AM
  6. Intense Filtering Issues...
    By jsarsfi2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2010, 12:50 PM
  7. Intense Chart Plot
    By Chiccada in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-23-2007, 06:30 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