+ Reply to Thread
Results 1 to 5 of 5

Unique formula killing my machine

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Unique formula killing my machine

    Hi,

    I am using the formula

    =IFERROR(INDEX(Veco!$B$2:$B$2229,MATCH(0,INDEX(COUNTIF($N$6:N7,Veco!$B$2:$B$2229),0,0),0)),0)

    However it isn’t working as I intended for 2 reasons.

    1. The first item it pulls in is a zero – can this be prevented?
    2. The Formula is VERY slow and kills my machine – is there any way to speed it up?

    What I need to do is pull in (column N), Unique Serivice order numbers from the tab “Veco” column B.

    There will be blank rows and I need these ignored if possible.

    Is there a quicker way to do this? I know I could use an advanced filter but I would need it to be a formula (or macro) as I need it automated as much as possible.

    Paul
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Unique formula killing my machine

    try a helper column insert a new column E on velco sheet
    in e2 put
    =IF(B2="","",IF(COUNTIF($B$2:B2,B2)=1,MAX($E$1:E1)+1,"")) fill down
    then on data sheet in n7 put
    =INDEX(Veco!$B$2:$B$2262,MATCH(ROWS($1:1),Veco!$E$2:$E$2262,0)) fill down (you can put iferror around that)
    also
    for example
    =INDEX(Veco!$A:$AH,MATCH(Data!$N7,Veco!$B:$B,0),MATCH(Data!$E$6,Veco!$1:$1,0))
    try not to use whole column refs use A2:$AH5000 or something that is the max youll need
    oh btw this bit in E7 should be
    =INDEX(Veco!$A:$AH,MATCH(Data!$N7,Veco!$B:$B,0),MATCH(Data!E$6,Veco!$1:$1,0)) filled across then down
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Unique formula killing my machine

    see the attached file, created one supporting column
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Unique formula killing my machine

    Thank you!! This method made the model much faster.

    Thanks for the heads up on the "$"

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Unique formula killing my machine

    deleted duplicate post
    Last edited by martindwilson; 08-07-2014 at 05:26 AM.

+ 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. Formula killing one laptop, not the other
    By Jacc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-13-2013, 04:00 PM
  2. Working code on my machine is returning out of range error on another machine.
    By je.suis.ketan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2012, 11:51 PM
  3. Macro runs fine on my machine; won't run on another user's machine
    By brl8 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-29-2010, 03:16 PM
  4. Replies: 2
    Last Post: 03-01-2006, 12:25 AM
  5. Replies: 6
    Last Post: 02-28-2006, 01:20 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