+ Reply to Thread
Results 1 to 4 of 4

Sum range where column heading contains specific text

  1. #1
    Forum Contributor heytherejem's Avatar
    Join Date
    07-06-2017
    Location
    Hampshire, England
    MS-Off Ver
    2016
    Posts
    152

    Sum range where column heading contains specific text

    Hi all,

    I'm trying to do a SUMIF, add up a range if the column heading contains 'Forecast Volume'
    The range is H1:BC69 with row 1 being the column heading.
    The column heading can be Forecast Expense or Forecast Volume for each month of the year.

    I am summing the Forecast Volume only at the end of the table. Instead of doing = H1+J1+L1 etc I want to do a SUMIF which looks at if the volume contains 'Forecast Volume' and only adds those cells.

    I tried the below code but it's calculating the range at zero.

    =SUMIF(H69:BC69,"**Forecast Volume",H1:BC1)

    Help!

    Thanks,
    Jemma

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

    Re: Sum range where column heading contains specific text

    Why are you using the wildcards?

    What do you get with this?

    =SUMIF(H$1:BC$1,"Forecast Volume",H69:BC69)+SUMIF(H$1:BC$1,"Forecast Expense",H69:BC69)

    =SUMIF(range,criterion,sum_range)
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor heytherejem's Avatar
    Join Date
    07-06-2017
    Location
    Hampshire, England
    MS-Off Ver
    2016
    Posts
    152

    Re: Sum range where column heading contains specific text

    I need the Wildcard as there is a date for each expense.

    Your solution solves it if I include the wildcard so

    =SUMIF(H$1:BC$1,"*Forecast Volume",H69:BC69)

    Thanks!
    Last edited by heytherejem; 11-05-2019 at 09:29 AM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2509 (Windows 11 Home 24H2 64-bit)
    Posts
    92,745

    Re: Sum range where column heading contains specific text

    Yes - you just needed to get the correct order for the statements.

+ 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] Populate a specific cell with column heading name.
    By redoscar in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-10-2017, 04:11 PM
  2. Count specific wording in column heading
    By morerockin in forum Excel General
    Replies: 5
    Last Post: 09-24-2016, 10:40 AM
  3. [SOLVED] Cond. formatting a column/Range, highlight cell in column/range if equal to specific text
    By DFrank231 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2013, 03:35 PM
  4. Replies: 1
    Last Post: 01-09-2013, 01:47 PM
  5. [SOLVED] Copy and Paste a specific Column to a Column that's heading matches a particular cell
    By Rexmond in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-17-2012, 12:29 AM
  6. Replies: 1
    Last Post: 04-03-2012, 05:07 AM
  7. Replies: 8
    Last Post: 03-16-2012, 01:38 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