+ Reply to Thread
Results 1 to 3 of 3

Compare Two Sums Every n Rows with Varying n

  1. #1
    Registered User
    Join Date
    01-27-2021
    Location
    Phoenix, AZ
    MS-Off Ver
    2020
    Posts
    4

    Compare Two Sums Every n Rows with Varying n

    I am trying to size a solar array such that it can charge batteries sufficiently enough to meet a varying residential energy load.
    I want to see if "Battery Charging Power" is greater than or equal to "Battery Discharging Power".
    It'd be incorrect to just compare the two total sums over the whole year; it needs to be done on a daily basis due to varying solar output and residential load.
    I have already summed up the "Battery Dis/Charging Power" with the help of a user on this forum a few weeks ago, so now I am trying to check on an individual, per day basis, if the solar output of the day is going to support the required battery output for the following day/night (until solar output "turns on" again).
    I attached some data - I did the whole year just in case that much is needed to check. Any help or advice would be greatly appreciated!!!
    -
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Compare Two Sums Every n Rows with Varying n

    I might try this formula in cell C28 (or whatever column you want) and drag down.
    =IF(TIMEVALUE(D28)=0,IF(SUMIF(E5:E28,"discharge",F5:F28)>SUMIF(E5:E28,"charge",F5:F28)*-1,"discharging power greater","charging power greater"),"")
    it concludes that your sum of the "negatives" for charge battery status for 1/1 which sum to -67.6kW are greater than your discharges for the same date which are 20.2kW.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    01-27-2021
    Location
    Phoenix, AZ
    MS-Off Ver
    2020
    Posts
    4

    Re: Compare Two Sums Every n Rows with Varying n

    This was great - thank you!

+ 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: 2
    Last Post: 10-25-2019, 08:00 AM
  2. Transpose Multiple (& Varying) Rows into Multiple (& Varying) Columns
    By Andrea9578 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2017, 11:46 AM
  3. Transpose Multiple (& Varying) Rows into Multiple (& Varying) Columns
    By Andrea9578 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2017, 02:05 AM
  4. [SOLVED] VBA compare sums in ranges and display delta in MsgBox
    By vio.coman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2015, 05:15 AM
  5. [SOLVED] Compare Owner Investment and Find not Equal Sums
    By ONF1554 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-05-2013, 02:14 PM
  6. Compare Varying String Against Another Row By Row and Paste
    By TBrooker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-05-2013, 05:45 AM
  7. How do I compare pie charts by varying size
    By puzzled in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-19-2006, 12:20 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