+ Reply to Thread
Results 1 to 5 of 5

Allocating amount across several lines based on 2 criteria

  1. #1
    Registered User
    Join Date
    01-08-2020
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    67

    Allocating amount across several lines based on 2 criteria

    Hi,

    I am looking to find away to evenly spread costs over multiple lines based on 2 pieces of criteria.

    In the attached example I have $1m and want to look up the project number in a list and find all IDs associated then look up the status' and spread the $1m over all Ids which are noted as Active, not allocating the costs to any cancelled.

    Any advice or help with this is appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    Microsoft Office 365
    Posts
    1,083

    Re: Allocating amount across several lines based on 2 criteria

    Are you still only using EXCEL version 2010?
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    60,735

    Re: Allocating amount across several lines based on 2 criteria

    This thread has been marked as solved - is it?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" to anyone who has offered you help in your thread. You can reward them by clicking on * Add Reputation below theur user name on the left, if you wish.


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

  4. #4
    Valued Forum Contributor dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    Microsoft Office 365
    Posts
    1,083

    Re: Allocating amount across several lines based on 2 criteria

    Try in J4:
    Not sure if TRIM is a 2010 formula

    =IF(TRIM(I4)="Closed",0,INDEX($B$4:$B$8,MATCH(G4,$C$4:$C$8,0))/COUNTIFS($G$4:$G$8,$C$4,$I$4:$I$8,"Active"))

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    60,735

    Re: Allocating amount across several lines based on 2 criteria

    TRIM goes back to Excel 2007, according to the MS support page on it: https://support.microsoft.com/en-us/...c-9e5630b479f9

+ 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. [SOLVED] Allocating amount with invoices based on fifo method
    By yogyata26 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-09-2021, 03:12 AM
  2. Allocating amount with invoices customer wise
    By abdul.wasif in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2019, 11:16 AM
  3. [SOLVED] Allocating $ amount based on ranked items
    By riordanandy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-14-2017, 05:23 AM
  4. [SOLVED] Allocating An Amount to Different Percentages According to an ID Number
    By smonzon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2016, 08:15 PM
  5. allocating a total amount based on conditions
    By Jules Pop in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-11-2015, 01:25 AM
  6. [SOLVED] macro needed for allocating works to users based on criteria
    By excelhelpseeker in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-21-2015, 02:29 PM
  7. HELP! Allocating values based on criteria
    By massimop in forum Excel General
    Replies: 4
    Last Post: 10-07-2010, 03:07 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