+ Reply to Thread
Results 1 to 8 of 8

Removing empty cells from column

  1. #1
    Registered User
    Join Date
    04-18-2019
    Location
    Brussels, Belgium
    MS-Off Ver
    2010
    Posts
    10

    Removing empty cells from column

    Hello,

    I fail to figure out how I can group the values of column Q ("kWh/uur") to the format of column L.
    I want the empty cells to be removed automatically and only cells with a value to display like they do in column L.
    Right now it's just a copy paste but these values should adapt automatically when I change the yearly consumption in R2.

    Kind Regards
    Attached Images Attached Images

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Removing empty cells from column

    It's not very easy to read your picture, but you seem to be using SUMIFS only when there is a change of HOUR in column A. If you want the cells bunched up, then will you have another column to record the hour (otherwise, it wouldn't make much sense)?

    It would help if you attached a sample Excel workbook.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Do not try to use the Paperclip icon for attachments, as it doesn't work on this forum.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    04-18-2019
    Location
    Brussels, Belgium
    MS-Off Ver
    2010
    Posts
    10

    Re: Removing empty cells from column

    Can you use this file?
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Removing empty cells from column

    What does your solution want to look like? It is not clear from the attachment, as you do what Pete has suggested as the solution!

  5. #5
    Registered User
    Join Date
    04-18-2019
    Location
    Brussels, Belgium
    MS-Off Ver
    2010
    Posts
    10

    Re: Removing empty cells from column

    In column L I would like the Hourly summations to be bunched up without empty cells.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Removing empty cells from column

    I've used columns T for the date, U for the time, and V for the kWh/hr, using these formulae in the cells stated:

    T2: =INT(MIN(A:A))
    U2: =MROUND(MOD(MIN(A:A),1),1/24)

    These get the starting points, and then:

    T3: =T2+(U3=TIME(0,0,0))
    U3: =IF(U2=TIME(23,0,0),0,U2+TIME(1,0,0))

    Column T is formatted as a date, and column U as a time. Note that the time gets reset to zero at each change of day, in order to reduce errors from the increasing TIME function. The formulae in T3 and U3 can be copied down as far as you need them, though I have only copied them down a few rows in the example file attached.

    Then you can use this formula in V2:

    =SUMIFS(K:K,A:A,">="&T2+U2,A:A,"<"&T2+U2+TIME(1,0,0))

    Copy down as required.

    I'm not sure what all your other columns are for, but you can delete some of them if they just relate to getting the consumption at hourly intervals, as you can see that these formulae only need data from columns A and K.

    Hope this helps.

    Pete
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-18-2019
    Location
    Brussels, Belgium
    MS-Off Ver
    2010
    Posts
    10

    Re: Removing empty cells from column

    This worked! Thank you very much!!

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Removing empty cells from column

    You're welcome - glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. Replies: 3
    Last Post: 09-21-2015, 08:43 AM
  2. [SOLVED] Macro for removing rows of empty cells within a spreadsheet
    By MrV4Victory in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-30-2013, 09:42 PM
  3. [SOLVED] Linking to column in another Excel file + removing empty cells
    By LmdL in forum Excel General
    Replies: 2
    Last Post: 07-15-2013, 03:13 PM
  4. Removing Colour From Empty Cells
    By jpowell in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-29-2011, 03:12 PM
  5. Removing empty cells
    By crania in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2007, 08:47 PM
  6. Removing a Row if a Column is empty???
    By FSGDAG in forum Excel General
    Replies: 3
    Last Post: 07-22-2007, 12:47 AM
  7. [SOLVED] Removing '0's' in cells-What is the easiest way to empty these cells?
    By pewe in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-31-2005, 03:05 PM

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