+ Reply to Thread
Results 1 to 5 of 5

Fill data series or resize range not working on large blank ranges

Hybrid View

  1. #1
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Fill data series or resize range not working on large blank ranges

    Hi Gareth

    Welcome to the Forum...

    Try this ...Output col L
    Option Explicit
    Option Compare Text
    Sub sintekJ3v16()
    Dim Data, Valu As Double, i As Long, rw As Long, x As Long
    rw = 2
    With Cells(1).CurrentRegion
        Data = .Value
        For i = 2 To UBound(Data)
            If Data(i, 4) = "s" Then
                Range("L" & i) = Data(i, 2)
                If i > 2 Then
                    x = Application.CountBlank(Range("L2:L" & i)) + 1
                    Valu = (1 / x) * -1
                    Range("L" & rw).Resize(x).DataSeries , , , Valu, Data(i, 2)
                    rw = i
                End If
            End If
        Next i
    End With
    End Sub
    Last edited by Sintek; 11-20-2020 at 06:01 AM.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

+ 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] Fill Series not working
    By pschristmas in forum Excel General
    Replies: 7
    Last Post: 01-19-2021, 09:28 AM
  2. [SOLVED] Need to fill date series (monthly) in a large document
    By raselkhl in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-15-2019, 10:23 PM
  3. [SOLVED] Multiple Dynamic Named Ranges w/ Blank Cells Auto Update on Resize
    By finkbee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2019, 05:00 AM
  4. [SOLVED] Insert blank rows in a large data series
    By bananacitizen in forum Excel General
    Replies: 6
    Last Post: 07-19-2019, 08:03 AM
  5. [SOLVED] VBA code to fill blank cells ranges
    By Nienaber in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-05-2015, 11:40 PM
  6. How to fill in Blank Cells with series?
    By floridagunner in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-21-2007, 03:32 AM
  7. Range resize not working
    By Ray Batig in forum Excel General
    Replies: 5
    Last Post: 02-26-2006, 05:10 PM

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