+ Reply to Thread
Results 1 to 5 of 5

Calculate the total of a unique item and place in column G and make remaining items 0

  1. #1
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Calculate the total of a unique item and place in column G and make remaining items 0

    Hi,

    I have to calculate the total of a unique item listed in column E and display its total in column G for the first unique item and then make the remaining unique items with a 0 in column G

    I have attached an example showing the data before runnning VBA and after VBA is applied.

    Excel 2003 is being used.

    Thanks for any help,

    David
    Attached Files Attached Files

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Calculate the total of a unique item and place in column G and make remaining items 0

    You can use a worksheet function to get those values

    Put this in G3 and copy down as needed.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Re: Calculate the total of a unique item and place in column G and make remaining items 0

    Thanks for your help GeneralDisarray, Do you know how to put it in VBA as its part of a larger project?.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Calculate the total of a unique item and place in column G and make remaining items 0

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  5. #5
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Re: Calculate the total of a unique item and place in column G and make remaining items 0

    Thanks AlphaFrog that's great.

    Again thank you both for your help.

+ 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. Replies: 1
    Last Post: 11-05-2015, 03:18 PM
  2. [SOLVED] Count Unique Items in a Column Based on Unique Items in Two Other Columns
    By HangMan in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-31-2015, 04:48 PM
  3. [SOLVED] Count the number of Unique Items in a Column for each Unique Item in another Column
    By HangMan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-27-2015, 01:18 PM
  4. [SOLVED] Formula to calculate remaining vacation days from total
    By Tricia0923 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-09-2015, 10:17 PM
  5. Replies: 9
    Last Post: 11-24-2013, 08:30 AM
  6. Remove specific item from array while preserving order of remaining items
    By g8r777 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2012, 01:57 AM
  7. Extract unique items from a Table and place in a column
    By Evilshrew in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-28-2007, 02:36 AM

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