+ Reply to Thread
Results 1 to 8 of 8

A formula that sums & indexes multiple arrays based on identifier?

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    4

    A formula that sums & indexes multiple arrays based on identifier?

    Hi Everyone,

    I am trying to do some YTD formulas for a monthly reporting package off our main forecast model involving actual, plan, and forecast.

    One of the tasks is to sum expenses from our main P&L model. For example Salary is found within different groups (Marketing, G&A, etc.) on the P&L. In column C I have this marked. Within the same model the Actual, Plan, Fcst, and LY month arrays are laid out across by month. If it's August, I would like to sum up all the cells through August if column C is marked "Salary", so I can get to the correct total Salary figure.

    How do I go about getting a YTD sum for each of these arrays while essentially doing a sumif on "Salary".

    Thanks,

    Rakib

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: A formula that sums & indexes multiple arrays based on identifier?

    Hi
    perhaps post a small sample sheet so we can see the layout of your data

  3. #3
    Registered User
    Join Date
    07-31-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: A formula that sums & indexes multiple arrays based on identifier?

    So you can see below there are different areas in the P&L with salaries that I would like to sum together. Say the identifier is column B, while the 2012 months are found somewhere along the way in the sheet. What I want to do is get a total Salaries ytd through March (based on a numerical cell input that would indicate the month, e.g 3 for march), this formula would return 120 since it sums all the salaries through March.

    Does that make sense?



    Description Identifier Jan-12 Feb-12 Mar-12
    Network operations - salaries Salaries 5 10 15
    Customer Service - salaries Salaries 15 20 25
    Sales/Account Managers - salaries Salaries 5 10 15

    Rakib

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: A formula that sums & indexes multiple arrays based on identifier?

    Try

    =SUM(OFFSET(B2:B4,0,0,3,3)) and change the highlighted cell for required month no.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Registered User
    Join Date
    07-31-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: A formula that sums & indexes multiple arrays based on identifier?

    Hi,

    I think I simplified data too much, the salaries are found throughout column B, not sequentially, so the formula would need to involve some type of sumif locating all those marked salaries and then returning the YTD sum for salaries.

    Rakib

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: A formula that sums & indexes multiple arrays based on identifier?

    locating all those marked salaries and then returning the YTD sum for salaries
    what are these marked salaries? Is this based on the description field and can there be dupliacte descriptions?

  7. #7
    Registered User
    Join Date
    07-31-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: A formula that sums & indexes multiple arrays based on identifier?

    Yes, column B will contain the word "Salaries" as a identifier corresponding to the different areas that have a salary line within a detailed P&L, so there are duplicate lines marked as "Salaries" within column B. My goal is to grab those lines and then sum the array based on what month it is.

  8. #8
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: A formula that sums & indexes multiple arrays based on identifier?

    Something like this..

    =SUMIF(A:A,A2,OFFSET(B:B,0,0,3,3))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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