+ Reply to Thread
Results 1 to 7 of 7

adding numbers for multiple text lines

  1. #1
    Registered User
    Join Date
    10-30-2007
    Posts
    4

    adding numbers for multiple text lines

    i'm definitely new to functions, but am trying to give it a whirl. COUNTIF did not work, neither did SUMPRODUCT (but I could be wrong).

    i need to find and extract all line items from column X (e.g., containing the same text in multiple spots), locate all of the numbers/dollars corresponding to each in column Y, and provide the total count for the specified line item (identified in column X) in column Z. pls. help. thks.

  2. #2
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    Can you post a sample of your data and explain what the desired result should be?
    Last edited by Excelenator; 10-31-2007 at 06:04 PM.
    ---------------------------------------------------
    ONLY APPLIES TO VBA RESPONSES WHERE APPROPRIATE
    To insert code into the VBE (Visual Basic Editor)
    1. Copy the code.
    2. Open workbook to paste code into.
    3. Right click any worksheet tab, select View Code
    4. VBE (Visual Basic Editor) opens to that sheets object
    5. You may change to another sheets object or the This Workbook object by double clicking it in the Project window
    6. In the blank space below the word "General" paste the copied code.

  3. #3
    Registered User
    Join Date
    10-30-2007
    Posts
    4

    adding numbers for multiple text lines sample

    Sample data (in 4 columns, separated by | ) below:

    Project | Scale | Division | Cost in 000's
    X | Large | PTS | 1.5
    Y | Large | TP&S | 1.5
    A | Medium | PAS | .25
    B | Large | PAS | 1.5
    C | Large | PAS | 1.5
    D | Medium | TP&S | .25
    E | Large | GSS | 1.5
    F | Small | TP&S | .07
    G | Small | PTS | .07
    H | Large | TP&S | 1.5

    I need to itemize the total cost of each project scale (small, medium, large) in each division (without using a pivot table-yikes!). So, for example, if PTS has six Large scaled projects, the total cost for that division is 9.

    any ideas?

  4. #4
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    Quote Originally Posted by nylarising
    (without using a pivot table-yikes!)
    Pivot tables are EXACTLY what you need here!!! Why so afraid?

    Well what you could do is Sort your data by Division then by Scale and then do subtotals on the Scale column.

  5. #5
    Registered User
    Join Date
    10-30-2007
    Posts
    4

    Thumbs up not afraid...

    that's the only way i know how to do it. BUT i've also got to extract three separate pie charts showing the grand total for each project scale (small, medium and large) in each division. and, unfortunately, after using pivot tables, the pie chart wizard only wants to create for all large scale projects, even though it's told to do it for all. any clues on this?

    and, btw, thanks for your help.
    Last edited by nylarising; 11-01-2007 at 01:34 PM.

  6. #6
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    Have a look at this file.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-30-2007
    Posts
    4

    oh wow

    way cool. thanks for showing me the way.

+ 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