+ Reply to Thread
Results 1 to 10 of 10

Don't know how to create formula

  1. #1
    Forum Contributor
    Join Date
    05-03-2013
    Location
    Costa Rica
    MS-Off Ver
    MS Excel 365
    Posts
    120

    Don't know how to create formula

    hello,

    If anyone can help me do this.

    I have this file enclosed. It has 2 spreadsheets.

    One is named "Forecast". It contains a list of people assigned to 10 different projects with their forecasted % utilzation or allocation.

    The other spreadsheet is named "Actual". It contains the actual time booked by each person on a given project. I need a formula (maybe using INDEX and MATCH) that could "import" the % Actual Utilization onto the "Forecast" spreadsheet from the "Actual" spreadsheet, and I don't know how to do it.

    [attach]Book2.xlsx[/attach]

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,864

    Re: Don't know how to create formula

    The workbook is not attached.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Ali


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

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    05-03-2013
    Location
    Costa Rica
    MS-Off Ver
    MS Excel 365
    Posts
    120

    Re: Don't know how to create formula

    sorry. I missed to add the attachment. Here you go.
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,864

    Re: Don't know how to create formula

    In D2 copied down:

    =INDEX(Table1[% Actual Utilization],MATCH([@Resource],Table1[Resource],0),0)

  5. #5
    Forum Contributor
    Join Date
    05-03-2013
    Location
    Costa Rica
    MS-Off Ver
    MS Excel 365
    Posts
    120

    Re: Don't know how to create formula

    Thank you, AliGW, but there's a problem with your formula: it is replicating the % of Actual Utilization across of all projects for a same person, but each person ended up working in only one project according to Spreadhseet "Actual". So I need the formula to return a "0" in column D if the person in column A didn't book time against a given project. See on column F an example on how results should be.
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,864

    Re: Don't know how to create formula

    OK. Try this instead:

    =IFNA(INDEX(Table1[% Actual Utilization],MATCH(1,([@Resource]=Table1[Resource])*([@Project]=Table1[Project]),0)),0)

    confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Don't know how to create formula

    Use this then:

    =IFERROR(INDEX(Table1[% Actual Utilization], MATCH($A2&"-"&$B2, INDEX(Table1[Resource]&"-"&Table1[Project],0),0)),0)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Don't know how to create formula

    How about this:

    Please Login or Register  to view this content.
    for Excel 2003:

    Please Login or Register  to view this content.
    Last edited by bebo021999; 02-14-2017 at 12:17 PM.
    Quang PT

  9. #9
    Forum Contributor
    Join Date
    05-03-2013
    Location
    Costa Rica
    MS-Off Ver
    MS Excel 365
    Posts
    120

    Re: Don't know how to create formula

    Thank both. I worked.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,864

    Re: Don't know how to create formula

    There were three solutions offered: mine, Jerry's and Bebo's. So you have three ways to skin this cat.

    Please mark the thread as solved using the thread tools at the top.

+ 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] Can I create a formula and drag the cell and duplicate the formula?
    By attroll in forum Excel General
    Replies: 10
    Last Post: 11-28-2016, 01:14 PM
  2. [SOLVED] VBA to create a relative formula in a conditional format (rather than an absolute formula)
    By The_Snook in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2016, 08:00 AM
  3. create upper formula in vlookup formula
    By ammartino44 in forum Excel General
    Replies: 1
    Last Post: 05-22-2015, 01:56 PM
  4. Replies: 4
    Last Post: 07-16-2013, 10:32 AM
  5. [SOLVED] I want to create a formula in one sheet, that will function as a formula in other sheets
    By johnw993 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2013, 07:07 PM
  6. Replies: 7
    Last Post: 08-22-2005, 08:05 AM
  7. Replies: 2
    Last Post: 07-01-2005, 02:05 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