+ 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

    Wow, over 6 hours! I'm not sure I know of a way to make it quicker. Hopefully someone else with more knowledge will have a solution. Oddly though, I would think that with only 75500 checks it wouldn't take that long at all. Have you tried adding Exit Sub after Then and before Else? Hmm....maybe change your code to this instead....
    Sub GoalSeek()
     Dim i As Long
     
     Application.ScreenUpdating = False
     For i = 5 To 75500
     If (Range("Z" & i) <> 12 Or Range("Z" & i) <> "") Then
     With Range("Z" & i)
     .GoalSeek Goal:=12, ChangingCell:=Range("X" & i)
    
     Else
     Exit Sub
    
     End With
     End If
     Next i
     
     Application.ScreenUpdating = True
     End Sub
    Edit* Not sure if this code will work at all...in my head it works perfectly.
    Last edited by gmr4evr1; 11-13-2015 at 05:46 PM. Reason: Added edit
    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

+ 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