+ Reply to Thread
Results 1 to 5 of 5

Dynamic Offset by detecting blank cells in between values

  1. #1
    Registered User
    Join Date
    02-26-2021
    Location
    USA
    MS-Off Ver
    Office365
    Posts
    3

    Dynamic Offset by detecting blank cells in between values

    Hi everyone,

    I receive a report that is already formatted like a pivot table and need to create a sum value of cells based relative to the cell with the value's position.

    The formula I came up with was: =sum(offset(D2,1,14,[dynamic height],1))

    The names of individuals are in column D. The sum of the values are in column R.
    The number of blanks in between the values of column D varies because of the data that resides in columns F-P.
    See attached data sample.


    Column R's formula is =if(isblank(F4),"",min(N4,H4) because I'm trying to find out of the 2 values, which one is the lowest.

    What I'm trying to do is get a sum of values in column R that are in between Person 1 and Person 2, then Person 2 and Person 3, etc. The only reference I could think of was the blank cells in between each value to determine the height of the table sum.

    I hope that makes sense and really appreciate the time any of you spend in figuring this out!
    Attached Files Attached Files
    Last edited by mart.razal; 02-26-2021 at 06:32 PM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Dynamic Offset by detecting blank cells in between values

    With last row is row #101
    Put the formula from row #100, then copy up to row #2

    In cell S100:

    Please Login or Register  to view this content.
    Copy up to S2
    Attached Files Attached Files
    Quang PT

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Dynamic Offset by detecting blank cells in between values

    Hi mart.razal and welcome to the forum,

    It looks like you need to see the "Fill Down" trick. See it in this video:
    https://www.youtube.com/watch?v=5a9gGhRvflw

    I think you should also get rid of the merged cells in columns D and E. After you have that you can do a pivot or other trick to finish your problem.
    You need to delete column E for the above fill down to work on column D.
    Last edited by MarvinP; 02-26-2021 at 11:37 PM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    02-26-2021
    Location
    USA
    MS-Off Ver
    Office365
    Posts
    3

    Re: Dynamic Offset by detecting blank cells in between values

    Hi Bebo! That did the trick! Really appreciate that formula. Took me a while to understand how it was working but it makes sense.

  5. #5
    Registered User
    Join Date
    02-26-2021
    Location
    USA
    MS-Off Ver
    Office365
    Posts
    3

    Re: Dynamic Offset by detecting blank cells in between values

    Hi Marvin,

    Unfortunately, the report comes out with merged cells and I don't want to excessively manipulate the report to obtain the numbers. The fill trick would work as well but would require more time for me to execute.

    I was planning to create a template with the formulas on the right hand columns and paste the data in to minimize the work as it's something I need to send the team on a daily basis. But I do appreciate the tip as I'm sure I can use it later for another report in the future!

+ 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. VBA determining blank cells and using XLOOKUP with dynamic values
    By atakatam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-11-2021, 03:50 PM
  2. [SOLVED] find cells with values that fall between dynamic start and end value, color offset (-1,0)
    By ThaGonz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2014, 11:56 PM
  3. Macro not detecting blank cells
    By milanbarosh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2013, 04:43 AM
  4. Problem detecting cells with small values
    By jtzm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2011, 10:55 AM
  5. Advanced filter with blank cells / Dynamic named range with blank cells
    By Jason_2112 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-15-2010, 12:06 PM
  6. Replies: 4
    Last Post: 02-04-2010, 12:48 PM
  7. detecting the first blank row in the spreadsheet and populate the blank row with data
    By racerrunner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2006, 01:22 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