+ Reply to Thread
Results 1 to 5 of 5

Determine the last column

  1. #1
    Registered User
    Join Date
    08-29-2014
    Location
    Abu Dhabi
    MS-Off Ver
    2003
    Posts
    303

    Determine the last column

    All you want to calculate the sum of the first cell of the column to a specific cell number be the last column
    The sense that if you select the first cell of the collection is determined based on the last column number, which is placed in the cell "K2"
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Determine the last column

    Not sure I understand your request completely, but try this...
    =SUM(OFFSET(D5,0,0,1,K2))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-29-2014
    Location
    Abu Dhabi
    MS-Off Ver
    2003
    Posts
    303

    Re: Determine the last column

    Genius solution and wonderful
    Thank you very much, Mr. "Ford"
    God bless you
    Last edited by shimaa01234; 01-07-2015 at 11:08 AM.

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Determine the last column

    or this

    =SUM(D5:INDEX(D5:O5,$K$2))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Registered User
    Join Date
    08-29-2014
    Location
    Abu Dhabi
    MS-Off Ver
    2003
    Posts
    303

    Re: Determine the last column

    Mister "Alekay"
    You always wonderful your solutions wonderful and distinctive
    Thank you very much sir

+ 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] Dynamic search; using column # result to determine column used for column/row match.
    By David Brunk in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-18-2014, 09:57 PM
  2. Determine largest value in column 2 for index in column 1
    By anakaine in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-19-2013, 11:26 PM
  3. Replies: 2
    Last Post: 01-31-2013, 07:04 PM
  4. [SOLVED] determine which column has a value
    By [email protected] in forum Excel General
    Replies: 6
    Last Post: 10-08-2005, 03:05 AM
  5. Determine Column
    By csbennett in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2005, 03:05 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