Results 1 to 3 of 3

Dividing values across cells based on states

Threaded View

  1. #1
    Registered User
    Join Date
    11-18-2020
    Location
    Manchester, England
    MS-Off Ver
    365
    Posts
    2

    Dividing values across cells based on states

    Hi everyone,

    I'm trying to calculate how much resource is required across multiple teams based on billed hours.

    For this example I have 3 teams that work on 3 clients. I'm using estimates to determine what hours are required for each client/team. So Team A would typically action 44% of the hours, Team B 25% and Team C 31%.

    However some clients might not need every team, Team C might not actually work on client C. Those hours would then need to be allocated to the other teams, as the client is still paying for those hours so they need actioning. I've got a column to basically say whether a team is required and have "yes" or "no" states. The idea would be that if a team has a "no" state, then it's hours are split across the other team. The tricky bit is I would need those hours split based on the ratios I have above, so Team A would get more of those hours than Team C as Team A.

    I've tried to use IF statements to get this working, by multiplying Team C's percentage by Team A's percentage to get Team A's share of the hours, which are then added to Team A's hours.
    =IF(C2="no",0,(IF(C2="yes",0.44,0%)+IF(F2="no",0.44*0.25,0))+IF(I2="no",0.44*0.31,0))

    The issue I've run into is when two teams (Team B and C) are not required the hours are still being shared across two teams (Team A and Team B) rather than the 1 remaining team with "Yes" (Team A) whereas I want the other team to affectively have 100% of the hours, however what I have currently is not doing this. I could get this working using a long list of IF statements but I can't imagine this is the most efficient way of doing it and doesn't upscale well if I want to add more teams in the future.

    Is there a better way to do this?

    Thanks

    Chris
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. i have to copy the data based on states
    By siruverujyothi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2018, 09:00 AM
  2. VBA Macro Dividing Values Based upon Matching Criteria and Description Criteria
    By pvsvprasad in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 09-18-2016, 12:39 PM
  3. Need to take average for all the score values of all the states
    By mastermind1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-01-2015, 10:58 AM
  4. [SOLVED] Ordering states in a pivot table so that United States appears at the bottom
    By cmcgath in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-30-2014, 05:29 PM
  5. Matching states to values
    By Armored Wing in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-09-2011, 01:02 AM
  6. color code states based on different values in the dropdown list
    By blyzzard in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2010, 08:11 AM
  7. Sheets based on States.
    By excelkeechak in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-16-2010, 09:07 PM

Tags for this Thread

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