+ Reply to Thread
Results 1 to 6 of 6

Matching Row and Adding Colomn with Matching Header

  1. #1
    Registered User
    Join Date
    08-17-2021
    Location
    Singapore
    MS-Off Ver
    Office 365
    Posts
    17

    Matching Row and Adding Colomn with Matching Header

    Hi,
    I have a problem trying to add up value that match both the column and the header. I tried Match and Index and Sum if with no result. I believe i might have done it wrongly on the index or array section.

    Can expert here help out this function.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    498

    Re: Matching Row and Adding Colomn with Matching Header

    Try this in C8 and drag down and right:

    =SUMIFS('Progress (2)'!$C8:$AK8,'Progress (2)'!$C$5:$AK$5,"<="&C$5+6,'Progress (2)'!$C$5:$AK$5,">="&C$5)

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Matching Row and Adding Colomn with Matching Header

    You can use this formula in C8:

    =SUMIFS(INDEX('Progress (2)'!$C$8:$AK$12,MATCH($B8,'Progress (2)'!$B$8:$B$12,0),0),'Progress (2)'!$C$5:$AK$5,">="&C$5,'Progress (2)'!$C$5:$AK$5,"<"&C$5+7)

    then copy across and down as required.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    08-17-2021
    Location
    Singapore
    MS-Off Ver
    Office 365
    Posts
    17

    Re: Matching Row and Adding Colomn with Matching Header

    Thanks. This works. But if we change the order of the row or change the description of the row. It will not work
    Last edited by Ronnieooi; 11-09-2021 at 12:37 PM.

  5. #5
    Registered User
    Join Date
    08-17-2021
    Location
    Singapore
    MS-Off Ver
    Office 365
    Posts
    17

    Re: Matching Row and Adding Colomn with Matching Header

    thanks. This work. Index of the row is taken into consideration.
    Last edited by Ronnieooi; 11-09-2021 at 12:38 PM.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Matching Row and Adding Colomn with Matching Header

    Quote Originally Posted by Ronnieooi View Post
    ... Index of the row is taken into consideration ...
    Glad to help.



    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    You might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. Auto Filter for Matching Header
    By wherdzik in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2020, 07:30 PM
  2. Matching row criteria with header
    By fusion5151 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2017, 05:30 PM
  3. [SOLVED] Alter Matching Sub From matching two Ranges to matching one range and list
    By capson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2015, 10:48 PM
  4. Getting value by matching value with col header
    By ramjeechandran in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-05-2013, 10:43 AM
  5. Finding Matching Data in one Column/Adding corresponding matching string value.
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2013, 07:23 PM
  6. [SOLVED] Matching more that one header
    By akq125 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2012, 12:04 AM
  7. matching data with header and place it below its header
    By bujji1305 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2012, 02:51 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