+ Reply to Thread
Results 1 to 4 of 4

Summation not working with concatenate function!

  1. #1
    Registered User
    Join Date
    06-23-2015
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    2

    Summation not working with concatenate function!

    Hello,

    I am trying to total the D columns from 4 to 99 on each worksheet in a workbook, there are over 100 worksheets with different names.

    I am able to list all the worksheet name on a new worksheet for calculation, however, when I try to use the concatenate functions to add the reference worksheets to the formula, it always return 0.

    Here is the example

    if I type in the following it works ok =sum(sheet1!d4:d99), it returns the total.

    However, if I use the concatenate function to save the value in a cell say a1 =concatenate("'" reference sheet "'" & "!D4:D99") then use = sum(a1), then it doesn't work, it returns zero.

    Any help would be appreciated!

    Thank you for your attention and kind assistance.

    kam

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Summation not working with concatenate function!

    =sum(indirect("'"&a1&"'!D4:D99")

    Try this
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Summation not working with concatenate function!

    Your CONCATENATE cell constructs a text string...not an actual reference

    You'd need to indicate to Excel that you want the text evaluated as a reference. The INDIRECT function does that.
    Try something like this:
    Please Login or Register  to view this content.
    Note: the INDIRECT function is volatile, so it recalcs whenever any cell in the workbook recalcs. Consequently, too many of them can make the workbook very sluggish.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    06-23-2015
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    2

    Re: Summation not working with concatenate function!

    Thank you! It works now. Again thanks for your professional advice!!

+ 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] CONCATENATE and IF function not working
    By codyryan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-10-2013, 04:08 PM
  2. Problems working with Nested IF and AND Functions in formulas and Summation.
    By GinglesBingo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-25-2013, 06:31 PM
  3. IF function not working with concatenate
    By rupes0610 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-09-2012, 11:50 AM
  4. Summation function
    By Daffyyd in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-12-2011, 07:24 AM
  5. Excel 2007 : Summation of a concatenate result
    By superkid in forum Excel General
    Replies: 7
    Last Post: 02-14-2009, 02:41 AM

Tags for this Thread

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