+ Reply to Thread
Results 1 to 3 of 3

Formula to allocate figures from one table to another based on percentages

  1. #1
    Registered User
    Join Date
    02-23-2020
    Location
    Perth, Western Australia
    MS-Off Ver
    2016
    Posts
    24

    Formula to allocate figures from one table to another based on percentages

    Hi all,

    I would like to allocate figures from one table (data table) to another table (results table) based on another table with percentages. I've attached the workbook and will attempt to explain what I'm trying to do.

    Table1 is the data table and has figures against Row A, B and C.

    Table2 determines how these percentages are distributed. For example, the Row A figures of 12 (Column A) and 10 (Column B) are allocated 100% to Text A. The Row B figures are allocated 100% to Text B. The Row C figures are allocated 50% to Text A and 50% to Text B.

    Table3 is the results table (formula will be in columns J and K) which will have the figures allocated to it from Table1 based on the percentages in Table2. The value for Column A will equal 27 for Text A as it is allocated figures 12 from Row A and 15 (30 * 50%) from Row C.

    Thanks in advance for anyone that can help.
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Formula to allocate figures from one table to another based on percentages

    one possibility

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-23-2020
    Location
    Perth, Western Australia
    MS-Off Ver
    2016
    Posts
    24

    Re: Formula to allocate figures from one table to another based on percentages

    Quote Originally Posted by XLent View Post
    one possibility

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thanks, really really close. The only addition I want to make is for the headers of Column A and Column B to be part of the formula. So instead of B2:B4 it's B2:C4 and the column is decided based on the header (e.g. B2:B4 when Column A and C2:C4 when Column B).

    Edit:
    I think I've got it now, just updated the first bit of the formula and seems to be working perfectly! I prefer using field names in formulas so updated as such.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cheers for the help! Tested in my main workbook too and all working perfect. I'll mark as solved.
    Last edited by jkerrigan93; 07-29-2020 at 08:00 AM.

+ 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: 04-26-2020, 09:29 AM
  2. [SOLVED] Allocate a quantity across a grid based on column/row percentages
    By scottiex in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-18-2017, 07:06 PM
  3. [SOLVED] Lookup formla to allocate a calendar date to a week based on a table
    By shrijan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-08-2016, 02:42 AM
  4. Replies: 3
    Last Post: 02-17-2016, 03:29 AM
  5. Table that shows percentages for each person based on table
    By thejoed82 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-28-2013, 11:36 AM
  6. Adding 2 different percentages to figures
    By claireinlincoln in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2006, 06:21 AM
  7. Figures in data box and percentages in graph
    By andreww in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-20-2005, 08:05 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