Closed Thread
Results 1 to 4 of 4

Formula to count/total items in non-adjacent cells

Hybrid View

  1. #1
    Registered User
    Join Date
    09-23-2013
    Location
    Vancouver
    MS-Off Ver
    Office 365
    Posts
    12

    Formula to count/total items in non-adjacent cells

    Cell A2 is a product description. Cell B3:B5 contain the individual transactions, B6 is the total of B3:B5. I would like the totals (B6) to calculate in a cell adjacent to A2 (description). The problem is the data extracted is an inconsistent number of rows; sometimes it is 2 rows with a total and sometimes it is a single row without a total. My file is extracted from another program.
    I've attached a sample workbook. The cells referenced above do not refer to the cells in the workbook.
    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
    53,044

    Re: Formula to count/total items in non-adjacent cells

    Hi, welcome to the forum

    The cells referenced above do not refer to the cells in the workbook.
    OK then sorry, but I just have to ask...if they dont refer to your sample, why even include them? Why not make the references match what is in the file - because from your file, I have no clue what you are trying to achieve

    Have you looked at using Subtotals...Data/Outline/Subtotals
    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
    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
    53,044

    Re: Formula to count/total items in non-adjacent cells

    Hi, welcome to the forum

    The cells referenced above do not refer to the cells in the workbook.
    OK then sorry, but I just have to ask...if they dont refer to your sample, why even include them? Why not make the references match what is in the file - because from your file, I have no clue what you are trying to achieve

    Have you looked at using Subtotals...Data/Outline/Subtotals

  4. #4
    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
    53,044

    Re: Formula to count/total items in non-adjacent cells

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

    http://www.excelforum.com/excel-form...ent-cells.html

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Formula to count/total items in non-adjacent cells
    By mpatsis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-24-2014, 01:42 AM
  2. how to count total no.of items in the column
    By Kaleemuddin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-19-2013, 04:41 AM
  3. [SOLVED] Formula needed to only count total cells entered and not count adjacent text entered cells
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-07-2013, 06:22 PM
  4. Replies: 0
    Last Post: 05-08-2013, 05:41 AM
  5. Count the total items in a column
    By aleben in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-05-2013, 10:54 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