+ Reply to Thread
Results 1 to 9 of 9

fill in blank cells after Grouping Subtotal

  1. #1
    Registered User
    Join Date
    08-31-2009
    Location
    Vista, CA
    MS-Off Ver
    Excel 2007
    Posts
    4

    fill in blank cells after Grouping Subtotal

    I just did a Group Subtotal. How do I fill all the blank cells in a column with the information in the cell above it without going to every individual cell?
    Last edited by sj2487; 08-31-2009 at 05:04 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: fill in blank cells after Grouping Subtotal

    1) Select the full range of cells with blanks
    2) Press F5 and click on Special
    3) Select Blanks and click on OK
    4) Press the equal key: =
    5) Press the Up Arrow once
    6) Press CTRL-ENTER

    You have the values but they are formulas. To remove the formulas
    7) Select the full range again
    8) Press CTRL-C to copy
    9) Select Edit > Paste Special > Values
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: fill in blank cells after Grouping Subtotal

    Here's one approach...

    With A2:A10 containing a mix of text and blanks
    Try this:

    Please Login or Register  to view this content.
    While only the blank cells are selected:
    Please Login or Register  to view this content.

    Now each (formerly) blank cell displays that previous value from above.

    To hardcode them:
    Please Login or Register  to view this content.
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    08-31-2009
    Location
    Vista, CA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: fill in blank cells after Grouping Subtotal

    Quote Originally Posted by JBeaucaire View Post
    1) Select the full range of cells with blanks
    2) Press F5 and click on Special
    3) Select Blanks and click on OK
    4) Press the equal key: =
    5) Press the Up Arrow once
    6) Press CTRL-ENTER

    You have the values but they are formulas. To remove the formulas
    7) Select the full range again
    8) Press CTRL-C to copy
    9) Select Edit > Paste Special > Values
    thank you but when I push the arrow up key it puts the cell above the first cell ie c25 into all of the blank cells not the cell relative to the each blank cell. Is there a way to do that?
    Thanks
    Stan

  5. #5
    Registered User
    Join Date
    08-31-2009
    Location
    Vista, CA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: fill in blank cells after Grouping Subtotal

    Quote Originally Posted by Ron Coderre View Post
    Here's one approach...

    With A2:A10 containing a mix of text and blanks
    Try this:

    Please Login or Register  to view this content.
    While only the blank cells are selected:
    Please Login or Register  to view this content.

    Now each (formerly) blank cell displays that previous value from above.

    To hardcode them:
    Please Login or Register  to view this content.
    Does that help?
    thank you but when I push the arrow up key it puts the cell above the first cell ie c25 into all of the blank cells not the cell relative to the each blank cell. Is there a way to do that?
    Thanks
    Stan

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: fill in blank cells after Grouping Subtotal

    Can you post a sample workbook that exhibits your scenario?

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: fill in blank cells after Grouping Subtotal

    It should read
    ...Type: =
    ...Hold down the CTRL and Press the UP ARROW one time
    ...Hold down CTRL and Press ENTER

    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  8. #8
    Registered User
    Join Date
    08-31-2009
    Location
    Vista, CA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Thumbs up Re: fill in blank cells after Grouping Subtotal

    Thank you. I discovered that the workbook I am using has something that is preventing it because when used in another workbook it works.
    Thank you.

  9. #9
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: fill in blank cells after Grouping Subtotal

    Quote Originally Posted by ChemistB View Post
    It should read
    ...Type: =
    ...Hold down the CTRL and Press the UP ARROW one time
    ...Hold down CTRL and Press ENTER
    Actually, no....
    Typing: = begins a formula
    Pressing the UP arrow references the cell directly above the current cell.
    CTRL-ENTER puts that formula into every selected blank cell.

    Holding down CTRL when pressing the UP arrow would reference the first non-blank cell above the current cell. If that cell was 10 cells up from the current cell...every selected blank cell would reference a cell 10 cells up.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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