Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!
    0
  •   was successfully added to your cart.
  • Home
  • Buy proxies
  • Extra features
  • Help
  • Contact
  • Login
  • 50% OFF
    BUY NOW!
    50
    PROXIES
    $19
    --------------------
    BUY NOW!
    BUY NOW!
    BUY NOW!
    BUY NOW!
    BUY NOW!
    $29
    $49
    $109
    $179
    $299
    --------------------
    --------------------
    --------------------
    --------------------
    --------------------
    PROXIES
    PROXIES
    PROXIES
    PROXIES
    PROXIES
    100
    200
    500
    1,000
    2,000
    TOP SELLER
    BEST VALUE
    For All Private Proxies!

I have two large worksheets that I need to consolidate select data into one worksheet. Both worksheets contain about 80K+ rows, the output is expected to be in that range as well. At this point in time, the code works, but it is extremely slow. I don’t actually know how long it actually takes to run on the full data set. I have let is run for 8+ hours without having it finish.

The procedure uses a for each loop to move through all the rows of the primary worksheet wsICD10 and selects all rows of concern (based on the criteria in the if statement) and logs the LOS_Group for use later in the VBA autofilter of the wsDUNST15 worksheet. I use two nested for loops to exhaustively extract all the data from the wsDUNST15. Once all my variables are full I write them to my new workbook and move on to the next record of interest in my wsICD10 with the for each loop.

My guess is the combination of nested loops and auto-filtering the large worksheets is an inefficient way to complete my task. But I’m unaware of another way to select a worksheet row using multiple criteria.

Public Sub ICD10DataSet()   ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 'Create ICD-10-CM/PCS data set ' 'ICD10_Type | ageCategory | DiagnosisProcedure_Category | ICD10_Code | LOS_Group | AVG_Stay ' ' ' This will use Truven October, 2017 data files ' ' By Trevor Pye ' ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''  Dim wb As Workbook Dim wbData As Workbook Dim ICD10_Data As Worksheet Dim wsICD10 As Worksheet Dim wsDUNST15 As Worksheet Dim ICD_Cell As Range Dim ICD_Range As Range Dim ICD10_Type As String Dim AgeCat As Integer Dim diagProced_Cat As Integer Dim ICD10_Code As String Dim LOS_Group As String Dim AVG_Stay As Double  Dim startTime As Double  Application.ScreenUpdating = False startTime = Time    Set wb = Workbooks("LOS_WorkBookICD-10_201710.xlsm") Set wbData = Workbooks.Add Set wsICD10 = wb.Worksheets("ICD10Full") Set wsDUNST15 = wb.Worksheets("DUNST15") Set wsOUNST15 = wb.Worksheets("OUNST15")  Set ICD_Range = wsICD10.Range("A2", wsICD10.Range("A1048576").End(xlUp)) Set ICD_Cell = wsICD10.Range("A2")  Set ICD10_Data = wbData.Sheets(1) ICD10_Data.Range("A1") = Format(startTime, "HH:MM:SS")  '---- Start Header with block ------- With ICD10_Data     .Cells(2, 1).Value = "ICD10_Type"     .Cells(2, 2).Value = "ageCategory"     .Cells(2, 3).Value = "DiagnosisProcedure_Category"     .Cells(2, 4).Value = "ICD10_Code"     .Cells(2, 5).Value = "LOS_Group"     .Cells(2, 6).Value = "AVG_Stay" End With '---- Header Header with block -------  t = 3 '<--- starting row number  ' define ICD_Type, ICD10_Code, LOS_Group '-----Start ICD10 Code loop ----  For Each ICD_Cell In ICD_Range      If ICD_Cell.Offset(, 4) = "@" Or ICD_Cell.Offset(-1, 2) = ICD_Cell.Offset(0, 2) Or ICD_Cell.Offset(, 12) = "" Then         GoTo SkipCodeBlock '<--- Row not of interest, skip to next row     Else         ICD10_Code = ICD_Cell.Offset(0, 2).Value          LOS_Group = ICD_Cell.Offset(, 12)          ICD10_Type = ICD_Cell.Value       End If  '-------Start of nested diagnosis Loops ----------       If ICD10_Type = "D" Then          For i = 1 To 5                 AgeCat = i ' <--- setting the Age category integer value                  For j = 1 To 4                      Select Case j ' <--- setting the diagnosis integer value                         Case 1                             diagProced_Cat = 0                         Case 2                             diagProced_Cat = 1                         Case 3                             diagProced_Cat = 3                         Case Else                             diagProced_Cat = 4                     End Select                     With wsDUNST15.UsedRange '<-- retrieving the row of interest                         .AutoFilter field:=4, Criteria1:=LOS_Group                         .AutoFilter field:=5, Criteria1:=diagProced_Cat                         .AutoFilter field:=6, Criteria1:=AgeCat                     End With                     AVG_Stay =  (wsDUNST15.Range(wsDUNST15.Range("H1048576").End(xlUp),  "H2").SpecialCells(xlCellTypeVisible).Value)/10                     wsDUNST15.ShowAllData ' <---Resetting filters                     With ICD10_Data ' log Results                         finalRow = .Cells(Rows.Count, 1).End(xlUp).Row + 1                             .Cells(t, 1).Value = ICD10_Type                             .Cells(t, 2).Value = AgeCat                             .Cells(t, 3).Value = diagProced_Cat                             .Cells(t, 4).Value = ICD10_Code                             .Cells(t, 5).Value = "'" & LOS_Group                             .Cells(t, 6).Value = AVG_Stay                     End With                      t = t + 1                     Next j             Next i     Else         GoTo complete     End If '-------End of nested diagnosis Loops -------     SkipCodeBlock: Next ICD_Cell '------End ICD10 Code loop ----- Application.ScreenUpdating = True  complete: endTime = Time  ICD10_Data.Range("b1") = Format(endTime, "HH:MM:SS")  MsgBox "Procedure Complete!" End Sub 

✓ Extra quality

ExtraProxies brings the best proxy quality for you with our private and reliable proxies

✓ Extra anonymity

Top level of anonymity and 100% safe proxies – this is what you get with every proxy package

✓ Extra speed

1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!

50 proxies

$19/month

50% DISCOUNT!
$0.38 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

100 proxies

$29/month

50% DISCOUNT!
$0.29 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

200 proxies

$49/month

50% DISCOUNT!
$0.25 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

500 proxies

$109/month

50% DISCOUNT!
$0.22 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

1,000 proxies

$179/month

50% DISCOUNT!
$0.18 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

2,000 proxies

$299/month

50% DISCOUNT!
$0.15 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

USA proxy location

We offer premium quality USA private proxies – the most essential proxies you can ever want from USA

100% anonymous

Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies

Unlimited bandwidth

Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!

Superfast speed

Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!

99,9% servers uptime

Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems

No usage restrictions

You have freedom to use your proxies with every software, browser or website you want without restrictions

Perfect for SEO

We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies

Big discounts

Buy more proxies and get better price – we offer various proxy packages with great deals and discounts

Premium support

We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!

Satisfaction guarantee

24/7 premium support, free proxy activation and 100% safe payments! Best reliability private proxies for your needs!

Best Proxy Packs

  • 2,000 Private Proxies $600.00 $299.00 / month
  • 1,000 Private Proxies $360.00 $179.00 / month

Quick Links

  • More information
  • Contact us
  • Privacy Policy
  • Terms and Conditions

Like And Follow Us


Copyright ExtraProxies.com | All Rights Reserved.
  • Checkout
  • Contact
  • Help
  • Home
  • My Account
  • My Cart
  • News
  • Privacy Policy
  • Proxy features
  • Proxy packs
  • Terms and Conditions
Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!
    0 items