Consulting

Results 1 to 5 of 5

Thread: Solved: Percentage Total

  1. #1
    VBAX Regular spartacus132's Avatar
    Joined
    Aug 2006
    Location
    Columbus, Ohio
    Posts
    24
    Location

    Question Solved: Percentage Total

    Hello Helpers!
    If i have a column, say column A, with 100 rows populated with numbers and my 104th row contains the total(sum) of all the numbers in the above 100 rows. is there a way, that i can automatically populate the adjacent column with a percentage value in regards to the total.

    Cheers,
    Anupam

    Something that has always puzzled me all my life is why, when I am in special need of help, the good deed is usually done by somebody on whom I have no claim. ~William Feather

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by spartacus132
    Hello Helpers!
    If i have a column, say column A, with 100 rows populated with numbers and my 104th row contains the total(sum) of all the numbers in the above 100 rows. is there a way, that i can automatically populate the adjacent column with a percentage value in regards to the total.

    Cheers,
    Anupam
    =A2/$A$104

    and format as a percentage.

  3. #3
    VBAX Regular spartacus132's Avatar
    Joined
    Aug 2006
    Location
    Columbus, Ohio
    Posts
    24
    Location
    xld, your suggestion was the quick and dirty method. my example had just 100 rows but there are cases where i have about 4000 rows...and i was wondering if there is a better way than sticking a cell formula in all of those adjacent 4000 rows.

    Thanks for the prompt attn. though!
    Last edited by spartacus132; 08-18-2006 at 08:32 AM.

    Something that has always puzzled me all my life is why, when I am in special need of help, the good deed is usually done by somebody on whom I have no claim. ~William Feather

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by spartacus132
    xld, your suggestion was the quick and dirty method. my example had just 100 rows but there are cases where i have about 4000 rows...and i was wondering if there is a better way than sticking a cell formula in all of those adjacent 4000 rows.

    Thanks for the prompt attn. though!
    Better in what way? If you want the percentage of every row, there is no other way that I can see.

  5. #5
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Not better, just different
    =A1:A4000/A4001 and enter as an array formula.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •