+ Reply to Thread
Results 1 to 3 of 3

Summing rows based on number of columns chosen

  1. #1
    Registered User
    Join Date
    07-14-2017
    Location
    Glasgow
    MS-Off Ver
    2016
    Posts
    3

    Summing rows based on number of columns chosen

    Hello,

    Does anyone know a formulae that would allow you sum rows by the number of columns chosen.

    E.g. Jan - Dec = 12 months/Columns.

    I want to tell it to sum 7 month (For Jan-Jul)
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Summing rows based on number of columns chosen

    B7=sumproduct((month(b1:m1)<=right(b6,2)+0)*(a2:a3=a7)*(b2:m3))

  3. #3
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Summing rows based on number of columns chosen

    another way is to utilize offset function:

    =SUM(B2:OFFSET(B2,,VALUE(RIGHT($B$6,1))-1))
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say 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. Getting a sum from specific rows based on chosen columns
    By shandalope in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-29-2020, 06:54 PM
  2. [SOLVED] Summing Data Based on Criteria in both Columns and Rows
    By Ter123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-02-2019, 12:04 PM
  3. Dropdown to Filter Rows Based on Value in Chosen Column
    By snapfade in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-11-2017, 06:48 PM
  4. summing data based on criteria on multiple rows and columns
    By Andy N in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2017, 03:07 PM
  5. [SOLVED] Filter and Copy Rows based on chosen Criteria
    By Excel_Learner_08 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-29-2016, 11:40 AM
  6. [SOLVED] Dynamic summing of columns based on variable rows and dates
    By Swept in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-15-2013, 01:33 PM
  7. Summing Rows based on Account Number
    By chalaki in forum Excel General
    Replies: 1
    Last Post: 06-21-2011, 02:12 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