+ Reply to Thread
Results 1 to 7 of 7

Find Next Function with two criteria Help

Hybrid View

wlyon Find Next Function with two... 11-13-2015, 04:26 PM
gmr4evr1 Re: Find Next Function with... 11-13-2015, 05:04 PM
wlyon Re: Find Next Function with... 11-13-2015, 05:30 PM
gmr4evr1 Re: Find Next Function with... 11-13-2015, 05:44 PM
wlyon Re: Find Next Function with... 11-13-2015, 05:55 PM
gmr4evr1 Re: Find Next Function with... 11-13-2015, 06:06 PM
Jacc Re: Find Next Function with... 11-13-2015, 06:17 PM
  1. #1
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Find Next Function with two criteria Help

    Try this...adding Application.ScreenUpdating = True and Application.ScreenUpdating = False like so...
    Sub GoalSeek()
     Dim i As Long
     
     Application.ScreenUpdating = False
     For i = 5 To 75500
     If (Range("Z" & i) = 12 Or Range("Z" & i) = "") Then
     Else
     With Range("Z" & i)
     .GoalSeek Goal:=12, ChangingCell:=Range("X" & i)
     
     End With
     End If
     Next i
     Application.ScreenUpdating = True
     End Sub
    It might help a little bit.
    I have a question though, you have a If Then statement, but after the Then it goes straight to Else. Usually there is something in between.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  2. #2
    Registered User
    Join Date
    11-13-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    3

    Re: Find Next Function with two criteria Help

    I messed around with Screen Updating and Automatic and Manual Calculations this morningand it shaves a few minutes off the 6.25 hours roughly. But it will probably end up being used (anything helps)

    I wrote the if statement that way hoping it would speed up the process (If the cell was blank or equal to 12 it would simply move on to he next row faster before calling on the Goal Seek) it shaved off a few minutes but if I only need to it change 27 cells I can't have it check all 75500 before it saves the file.

+ 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] Find array based on specific criteria to use in SUMPRODUCT function
    By cfrae84 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2015, 09:08 AM
  2. Replies: 3
    Last Post: 02-02-2015, 10:30 AM
  3. [SOLVED] Find a number closest to 30 in a range with one more criteria (criteria includes text)
    By Sarangsood in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-22-2013, 01:16 PM
  4. Replies: 4
    Last Post: 09-18-2012, 10:54 AM
  5. Replies: 6
    Last Post: 07-09-2012, 11:06 AM
  6. function to find out count based on criteria.
    By arnab0711 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-30-2011, 06:45 AM
  7. Find function with additional search criteria
    By Neil07979 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-02-2009, 10:38 AM

Tags for this Thread

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