+ Reply to Thread
Results 1 to 5 of 5

Need assistance to make Formula cal faster

  1. #1
    Forum Contributor
    Join Date
    03-17-2013
    Location
    USA, IL
    MS-Off Ver
    Excel 2010
    Posts
    121

    Need assistance to make Formula cal faster

    Good morning,

    This formula works but takes an excessive amount of time for one caluclation, and I need this for multiple row critera. So, can this calculation be changed in order to get the same result with faster calculation time? I am using Excel 2010.

    =IF(COUNTIFS(A:A,A2,N:N,"2000002487/")+COUNTIFS(A:A,A2,N:N,"507/BFM901292")=2,"CABINET",IF(COUNTIFS(A:A,A2,N:N,"APXV9ERR18-C-A20")+COUNTIFS(A:A,A2,N:N,"APXVSPP18-C-A20")=2,"ANTENNA",IF(COUNTIFS(A:A,A2,N:N,"KRC131146/1")=1,"TOWER",IF(COUNTIFS(A:A,A2,N:N,"KRC161287/2")=1,"TOWER",IF(COUNTIFS(A:A,A2,N:N,"GPS-TMG-HR26NCM")=1,"GROUND MOUNT",IF(COUNTIFS(A:A,A2,N:N,"RPM2532891/10M")=1,"CIVIL GROUND",IF(COUNTIFS(A:A,A2,Y:Y,25070003)=1,"CLAIMS")))))))

    Regards,

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Need assistance to make Formula cal faster

    Do you really need to use full-column references? Do you really have a million rows of data that you need to check through?

    Pete

  3. #3
    Forum Contributor
    Join Date
    03-17-2013
    Location
    USA, IL
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Need assistance to make Formula cal faster

    Preferably since the specific Part numbers I'm looking for could appear multi times in >300K lines of data.

    It's a huge report. However I'll take any suggestions you may have.

    I appreciate your quick responce. ty

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Need assistance to make Formula cal faster

    I might suggest seeing if there is a different way to tackle the problem. In this thread, http://www.excelforum.com/excel-form...41#post3111341, benishiryo and I looked at a specific example he had created for testing calculation speed. I came up with a different approach using a helper column, that dramatically decreased the time needed for calculation (30 s for the array formulas to near 1-2 s using a helper column).

    I'm not very good with these kind of single cell array formulas. It looks like your formula is looking in column A for whatever is in A2 (single occurrence???) and for different text strings in N, then trying to return some related text when it finds A2 in A combined with each text string in N. Perhaps there is a better way to structure the database and/or query (perhaps combined with a lookup table) that could dramatically reduce the number of operations needed by the function.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Forum Contributor
    Join Date
    03-17-2013
    Location
    USA, IL
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Need assistance to make Formula cal faster

    Will do. I appreciate your suggestion.

+ 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