+ Reply to Thread
Results 1 to 7 of 7

Sum column dynamic range

  1. #1
    Registered User
    Join Date
    04-05-2012
    Location
    chennai
    MS-Off Ver
    Excel 2010
    Posts
    49

    Sum column dynamic range

    Hi al.. I need to sum the column in sheet2 and put it on a cell in sheet 1, i want to sum values in Column D, I gave =sum(sheet2!D2:D18) it dint work, i need to give dynamic range like D2:D lastrow. the samw i have to do for count function too. any help would be much appreciated..thansks

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sum column dynamic range

    Hi Plk,

    you can use a dynamic name which can then be used with sum function to obtain the desired result. Upload a sample workbook in case of any issues. thanks.


    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    04-05-2012
    Location
    chennai
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Sum column dynamic range

    Hi Please check if it is fine. i just uploaded a sample workbook
    Attached Files Attached Files

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sum column dynamic range

    Hi Plk,

    See the attached file where I have used a dynamic name "data"... press Alt + I + N + D to see the name manager window and watch out for the name "data" to understand more.. thanks.

    sample_forum.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: Sum column dynamic range

    Something like this.

    =SUM(INDIRECT("Sheet2!D2:D"&COUNTA(Sheet2!D2:D1000)+1))
    Kind regards, Harry.

  6. #6
    Registered User
    Join Date
    04-05-2012
    Location
    chennai
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Sum column dynamic range

    Hi..Thanks to all it did work :-)

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sum column dynamic range

    Cheers

    Request you to mark this thread as [SOLVED].. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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