+ Reply to Thread
Results 1 to 6 of 6

Formula - Columns vs Rows for multiple cell selection

  1. #1
    Registered User
    Join Date
    08-13-2013
    Location
    Redditch, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Formula - Columns vs Rows for multiple cell selection

    I've been reading a lot of posts about incrementing columns rather than rows, however I've not seen anything for selecting multiple cells.

    Here's what I have so far:

    =SUM(Sheet2!D4,Sheet2!D16,Sheet2!D21,Sheet2!D25,Sheet2!D34,Sheet2!D60,Sheet2!D76,Sheet2!D79,Sheet2!D80,Sheet2!D89,Sheet2!D111)

    What I want it to do is not increment the row, but the column for each....eg:

    =SUM(Sheet2!E4,Sheet2!E16,Sheet2!E21,Sheet2!E25,Sheet2!E34,Sheet2!E60,Sheet2!E76,Sheet2!E79,Sheet2!E80,Sheet2!E89,Sheet2!E111)
    =SUM(Sheet2!F4,Sheet2!F16,Sheet2!F21,Sheet2!F25,Sheet2!F34,Sheet2!F60,Sheet2!F76,Sheet2!F79,Sheet2!F80,Sheet2!F89,Sheet2!F111)
    And so on,

    Can anyone help?

    Thanks

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Formula - Columns vs Rows for multiple cell selection

    Try

    =SUMPRODUCT(--(ISNUMBER(MATCH(ROW(Sheet2!$D$1:$D$1000),{4,16,21,25,34,60,76,79,80,89,111},0))),INDEX(Sheet2!$D$1:$Z$1000,,ROW(A1)))

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    08-13-2013
    Location
    Redditch, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Formula - Columns vs Rows for multiple cell selection

    Thanks very much! Works perfectly!

  4. #4
    Registered User
    Join Date
    08-13-2013
    Location
    Redditch, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Formula - Columns vs Rows for multiple cell selection

    Forget that last comment....only works for 23 lines, then I get an 'Invalid Cell Reference Error'

  5. #5
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Formula - Columns vs Rows for multiple cell selection

    Try

    =SUMPRODUCT(--(ISNUMBER(MATCH(ROW(Sheet2!$D$1:$D$1000),{4,16,21,25,34,60,76,79,80,89,111},0))),INDEX(Sheet2!$D$1:$IV$1000,,ROW(A1)))

  6. #6
    Registered User
    Join Date
    08-13-2013
    Location
    Redditch, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Formula - Columns vs Rows for multiple cell selection

    Thanks, tried looking for that but couldn't see it for the life of me! Much appreciated

+ 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. Macro VB for Formula Fill Through Several Rows in Multiple Columns
    By sanjeevpandey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-25-2013, 11:04 AM
  2. formula to move data from multiple columns to rows
    By emexpress in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-05-2013, 02:12 PM
  3. Multiple selection criteria, which formula? .. and selection based on unique numbers
    By FalkirkJim in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2012, 05:22 PM
  4. Replies: 2
    Last Post: 11-06-2011, 06:46 PM
  5. return multiple columns/rows of data in formula?
    By darksoda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-01-2007, 09:19 AM

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