+ Reply to Thread
Results 1 to 2 of 2

Thread: Subtract last column from column B

  1. #1
    Registered User
    Join Date
    12-14-2010
    Location
    Texas,United Stated
    MS-Off Ver
    Excel 2007
    Posts
    51

    Subtract last column from column B

    Hello All,
    I need a formula or macro that will go to sheet 2 and:

    1. Find the last column of the page
    2. Total that column
    3. Subtract that total from the total of Column B
    4. Output the answer on Sheet 3 (Does not matter which cell)

    Thanks!!

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Subtract last column from column B

    Maybe this?

    =SUM(OFFSET(Sheet2!$A$1,,COUNTA(Sheet2!1:1)-1,65536,)) - SUM(Sheet2!$B:$B)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

+ 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.2.0