+ Reply to Thread
Results 1 to 4 of 4

How to use 'indirect' to sum a column on another sheet

  1. #1
    Forum Contributor
    Join Date
    07-16-2007
    MS-Off Ver
    Excel 2003 and Excel 2016
    Posts
    178

    How to use 'indirect' to sum a column on another sheet

    I want to place a formula in a cell on sheet 'A' that finds the column number that contains a particular value on sheet 'B' and sums that column. In other words, sheet 'B' has multiple columns with unique headers. I need a formula that I can place in a cell on sheet 'A' that matches a value to the headers on sheet 'B', uses that match value to identify the column on sheet 'B' where the match was found, and then sums that column.

    Thanks for your help.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How to use 'indirect' to sum a column on another sheet

    You don't need indirect for that..

    with the formula on Sheet A
    And cell A1 on Sheet A contains the "Value" you want to use to match in the headers of Sheet B.

    =SUM(INDEX('Sheet B'!A:Z,0,MATCH(A1,'Sheet B'!A1:Z1,0)))

    Make sure A:Z and A1:Z1 are large enough to handle all the columns on Sheet B

  3. #3
    Forum Contributor
    Join Date
    07-16-2007
    MS-Off Ver
    Excel 2003 and Excel 2016
    Posts
    178

    Re: How to use 'indirect' to sum a column on another sheet

    Thank you.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How to use 'indirect' to sum a column on another sheet

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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