+ Reply to Thread
Results 1 to 5 of 5

Want to find an alternative formula so calculations don't take so long. INDIRECT Function

  1. #1
    Registered User
    Join Date
    02-08-2015
    Location
    indiana
    MS-Off Ver
    2016
    Posts
    10

    Want to find an alternative formula so calculations don't take so long. INDIRECT Function

    Attached is a sample spreadsheet. Basically I want to try and find another way to gather the data in E6:G55 without using the INDIRECT function. The main spreadsheet I use has over 36,000 indirect function calls and its just taking way to long.

    The way the spreadsheet is arranged, E3:G3(these can't be static as they change daily) determine how far back to gather the data based on date, then its averaged in E6:G55 via finding the row on each team sheet then using indirect.

    The team sheets are constantly updated and the newest date is always on top.

    Thanks.
    Attached Files Attached Files
    Last edited by unrealneoguy; 11-06-2017 at 10:36 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Want to find an alternative formula so calculations don't take so long. INDIRECT Func

    Choose a formula based on sales team name:
    Please Login or Register  to view this content.


    Named Ranges:
    ProdNames =Status!$T$1:$T$3
    Team1 =Team1!$E$4:$G$24
    Team1Dates =Team1!$D$4:$D$24
    Team2 =Team2!$E$4:$G$24
    Team2Dates =Team2!$D$4:$D$24
    Team3 =Team3!$E$4:$G$24
    Team3Dates =Team3!$D$4:$D$24
    Team4 =Team4!$E$4:$G$24
    Team4Dates =Team4!$D$4:$D$24
    Team5 =Team5!$E$4:$G$24
    Team5Dates =Team5!$D$4:$D$24
    TeamNames =Status!$S$1:$S$5
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Want to find an alternative formula so calculations don't take so long. INDIRECT Func

    Helper column J is used.

    In J6, then drag down.

    =MATCH(C6,INDIRECT("'"&D$6&"'!D1:D24"),0)+1

    In E6, then drag Across.

    =IFERROR(IF(E$3/1,IF(INT(E$3)=E$3,AVERAGE(OFFSET(INDIRECT($D6&"!$E"&$J6),0,COLUMNS($E6:E6)-1,E$3,1)))),"N/A")

    Helper column Will drastically reduces time. Helper column can be hidden.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 11-07-2017 at 11:16 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Registered User
    Join Date
    02-08-2015
    Location
    indiana
    MS-Off Ver
    2016
    Posts
    10

    Re: Want to find an alternative formula so calculations don't take so long. INDIRECT Func

    Ok,

    So I was able to switch out all the formulas and test both of the solutions.
    My previous solution was sitting at right around 30 minutes to calculate.
    The solution from protonLeah: got it down to 14 minutes.
    The solution from kvsrinivasamurthy: got it down to 24 minutes.

    I will wait and see if anyone else has a suggestion before I give out rep.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Want to find an alternative formula so calculations don't take so long. INDIRECT Func

    I suggest combining all team data onto 1 sheet. and add a column to designate the team name.

    So I created a tab named All Teams
    Inserted a column between C and D (# and Date)
    Column D is labeled Team
    Copied all data from the 5 team tabs into this new tab and put the relevant team name into column D.

    Now on your status sheet I used
    =AVERAGE(OFFSET('All Teams'!F$4,MATCH(1,INDEX(('All Teams'!$D$4:$D$108=$D6)*('All Teams'!$E$4:$E$108=$C6),0),0),0,E$3))

    My formulas shown in columns I J and K, produce same result as your formulas in E F and G.
    Attached Files Attached Files

+ 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] A faster way to make a long formula work to cut down on calculations?
    By greenfox74 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2017, 05:01 AM
  2. Alternative of INDIRECT function on CLOSED WORKBOOK - No VBA
    By dluhut in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-13-2017, 10:38 AM
  3. [SOLVED] alternative to using long series of ABS functions in a formula
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 01:25 PM
  4. Non-Volatile Alternative: Cell or Indirect and Address for Named Range Formula
    By cmore in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-07-2015, 10:02 AM
  5. Possible to combine FIND Function or any other Alternative
    By Subendu Mukherjee in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-05-2013, 03:39 PM
  6. Replies: 9
    Last Post: 12-18-2012, 04:33 PM
  7. Calculations involving other sheets using INDIRECT function
    By parodytx in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-18-2008, 05:49 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