+ Reply to Thread
Results 1 to 6 of 6

Formula for % of ingredients in a list?

  1. #1
    Registered User
    Join Date
    12-14-2009
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    5

    Formula for % of ingredients in a list?

    First forgive me if this is not worded correctly......

    Trying to work out a formula for the percentage of each ingredient in a list where the total will always equal 100%

    Where the first ingredient will be the highest percentage and drop as you add to the list, but not equal each other (one ingredient=100%, 2=80% and 20%, 3=60%, 25% and 15%)?

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Formula for % of ingredients in a list?

    Please upload a sample of your workbook to the forum, Make sure you have removed any private information, remember this is a public forum and so available to anyone
    Would like to see an example of your data and also a manual mock up of the expected results you want to achieve.

    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    12-14-2009
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Formula for % of ingredients in a list?

    Attached is what I've come up with.....Help!!
    Attached Files Attached Files

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Formula for % of ingredients in a list?

    i would use the triangler number
    =COUNTIF(B4:B23,"*")*(COUNTIF(B4:B23,"*")+1)/2

    SO instead of the factorial which would be 13x12x11... you use 13+12+11+10... etc

    on your example we work out the count and then the triangler number
    so 13
    is 91
    and uses the formula above

    then we use that as the value to find the % of
    13/91
    12/91
    11/91

    etc
    so each count goes down a factor

    And to add that all into 1 formula
    =IF(B4="",0,COUNTIF(B4:$B$23,"*")/(COUNTIF($B$4:$B$23,"*")*(COUNTIF($B$4:$B$23,"*")+1)/2))

    we count B4 to $B$23 which is 13 and divide it by that triangle mumber 91
    next we only want to count to 12 so by having B4:$B$23
    when we copy down - it will be B5:$B$23
    and so count 12
    divided by 91
    and so on

    now you have your proportional % dropping down for each entry
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-14-2009
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Formula for % of ingredients in a list?

    Thank You etaf, that works for me!

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Formula for % of ingredients in a list?

    excellent thanks for letting us know
    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here

+ 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: 9
    Last Post: 10-16-2014, 07:46 AM
  2. Find populated cells in list of products and their ingredients and weights
    By mreuphorium in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-05-2013, 12:56 PM
  3. [SOLVED] Want to know the ingredients of sumif formula
    By Sarangsood in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-05-2013, 05:21 AM
  4. Replies: 1
    Last Post: 04-19-2013, 07:21 AM
  5. Return only non-blank list of ingredients from master list
    By excel princess in forum Excel General
    Replies: 3
    Last Post: 02-07-2013, 01:20 PM

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