We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide

Excel help?

I have a spreadsheet of my electricity usage from ngr3y and want to compare usage between certain times of the day such as 19:00 to 00:00.

I want to sum cells B40:B50 then B88:B98 B146:B156 all the way down to B2008:B2018.

The only way I can think of doing this at present is to put =sum(b40:B50) in cell C50 then manually copying this down to cell C98 then C146 all the way down.

This is laborious, there must be an easier way to do this.


Comments

  • seanfos
    seanfos Posts: 108 Forumite
    Part of the Furniture 10 Posts Name Dropper
    A Pivot Table (https://support.microsoft.com/en-us/office/create-a-pivottable-to-analyze-worksheet-data-a9a84538-bfe9-40a9-a8e9-f99134456576) will allow you to analyse and filter your data in many powerful ways

    Sean :)
  • Cornucopia
    Cornucopia Posts: 16,641 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Photogenic
    edited 13 February 2022 at 5:09PM
    How are you going to display the results?   

    You could just number the rows starting with 0 at row 40, and then use something like this

    =if(mod(C40,48)=0,sum(D40,D50),"")

    And then copy that all the way down.   Column C would be your index, and column D your data.  
  • hi tallmansix I've managed to make pivot tables and can get totals for days but how do I make a pivot table that will show me the totals of a partial day like between 19:00 and 23:30.

    the reason for this is because when I go out in  the evening I turn the heating off so I want to compare the usage as against the evenings when I don't turn the heating off.
  • How are you going to display the results?   

    You could just number the rows starting with 0 at row 40, and then use something like this

    =if(mod(C40,48)=0,sum(D40,D50),"")

    And then copy that all the way down.   Column C would be your index, and column D your data.  
    It might be me but I can't get this formula to show what I need.
  • Cornucopia
    Cornucopia Posts: 16,641 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Photogenic
    edited 14 February 2022 at 5:42PM
    david1946 said:
    How are you going to display the results?   

    You could just number the rows starting with 0 at row 40, and then use something like this

    =if(mod(C40,48)=0,sum(D40,D50),"")

    And then copy that all the way down.   Column C would be your index, and column D your data.  
    It might be me but I can't get this formula to show what I need.
    It's only a suggestion.   If you post some sample data, someone might be able to do it for you.

    There's was an almost identical thread, but I can't find it.

  • david1946 said:
    hi tallmansix I've managed to make pivot tables and can get totals for days but how do I make a pivot table that will show me the totals of a partial day like between 19:00 and 23:30.

    the reason for this is because when I go out in  the evening I turn the heating off so I want to compare the usage as against the evenings when I don't turn the heating off.
    Step 12 in the comment I linked to showed you how to break in down by hour, just filter using the drop down at the top of the column for the hours you want.

    Also I'd put months in the columns on step 12 so just change that to days instead.
  • Thank You for the answers. 
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 353.6K Banking & Borrowing
  • 254.2K Reduce Debt & Boost Income
  • 455.1K Spending & Discounts
  • 246.6K Work, Benefits & Business
  • 603K Mortgages, Homes & Bills
  • 178.1K Life & Family
  • 260.6K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.