+ Reply to Thread
Results 1 to 6 of 6

Use index in table header with sumifs

  1. #1
    Forum Contributor
    Join Date
    10-06-2017
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    123

    Use index in table header with sumifs

    Hello all,

    So I have this formula:

    =SUMIFS(PLAN_LAB!$K:$K;PLAN_LAB!$B:$B;">="&DATE($C1;C$2;1);PLAN_LAB!$B:$B;"<="&DATE($C$1;C$2+1)

    Considering the fact that on sheet Plan_lab I have one table (Table1), i would like to use index in table header in order to find the column instead of writing the range (PLAN_LAB!$K:$K).

    Any chance you could help me?
    Attached Files Attached Files
    Last edited by lofgren; 01-22-2021 at 02:54 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,438

    Re: Use match in table header with sumifs

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    10-06-2017
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    123

    Re: Use match in table header with sumifs

    Sorry about that, i forgot to attach the file
    First post updated

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Use index in table header with sumifs

    Try pasting the following into cell C4 and then drag the fill handle over and down to cell N6:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Use index in table header with sumifs

    Please Login or Register  to view this content.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Use index in table header with sumifs

    Another option
    =SUMIFS(INDEX(Table1,,MATCH($B4,Table1[#Headers],0)),Table1[[date]:[date]],">="&DATE($C$1,C$2,1),Table1[[date]:[date]],"<"&DATE($C$1,C$2+1,1))

+ 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. [SOLVED] find row header based on table and column headers reverse lookup index & match
    By jnsorrera in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-18-2020, 02:08 AM
  2. Replies: 4
    Last Post: 09-06-2020, 11:46 PM
  3. Why cant i refer with INDEX and MATCH to a table header
    By esahakos in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-07-2016, 06:21 AM
  4. Helped needed to index match row header, column header, and sheet
    By vw103604 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-15-2016, 12:37 PM
  5. Replies: 2
    Last Post: 07-18-2015, 05:19 PM
  6. [SOLVED] Match a value in a table and print the header of that column if value exists
    By norms in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-25-2013, 06:48 PM
  7. Replies: 4
    Last Post: 07-15-2012, 02:13 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