+ Reply to Thread
Results 1 to 10 of 10

Which Lookup, Sumproduct or Index Formula to find several info and add them up in 1 cell?

  1. #1
    Registered User
    Join Date
    03-08-2014
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007 MAC OSX
    Posts
    4

    Angry Which Lookup, Sumproduct or Index Formula to find several info and add them up in 1 cell?

    Example.xlsxI'm getting frustrated with my Excel, I thought I remembered how to use since I graduated from college several years ago. I am doing a freelance working lately and my tax accountant suggested me to set up an excel file to store all ** income and expense information to use. So, I tried to set up one sheet as general balance and other sheet to be detailed balance sheet.

    What formula I need is to look up the "Month" and "Category" in the second sheet and pull that information to the first sheet. Sometime I will have two numbers that I need to be pulled and sum together for the month ** "January" I tried to use vlookup and index, it didn't work for me.
    Last edited by adh8670; 03-08-2014 at 06:46 PM. Reason: Uploaded the example file

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Which Formula to use?

    Thanks for the title change

    If you intend adding data, then uyou probably need to use =SUMIF(). If you are using 2003 (as your pr**ile says), you may need to add a helper column to combine multiple critera.

    I suggest you upload a (clean) sample workbook, showing what you are working with and what you want
    Last edited by FDibbins; 03-08-2014 at 06:31 PM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-08-2014
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007 MAC OSX
    Posts
    4

    Re: Which Formula to use?

    No problem, I just uploaded the example file to my original post. Thanks again

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Which Lookup, Sumproduct or Index Formula to find several info and add them up in 1 ce

    I notice that the file you uploaded indicates 2007 or later (.xlsx), but your pr**ile says 2003. Please update your pr**ile as necessary, members tailor questions based on your excel version

    1st, change the dates in "balance B2:M2 to actual dates...
    1/1/14, 2/1/14 etc format custom mmm

    Then try this, copied down and across....
    =SUMIFS('Detailed Balance Sheet'!$D:$D,'Detailed Balance Sheet'!$B:$B,'Balance Sheet'!$A4&"*",'Detailed Balance Sheet'!$A:$A,">="&'Balance Sheet'!B$2,'Detailed Balance Sheet'!$A:$A,"<"&EDATE(B$2,1))

  5. #5
    Registered User
    Join Date
    03-08-2014
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007 MAC OSX
    Posts
    4

    Re: Which Formula to use?

    Thanks, I just updated my pr**ile. I didn't realized I had newer Excel.

    The formula still doesn't work, it shows $ - .

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Which Lookup, Sumproduct or Index Formula to find several info and add them up in 1 ce

    Did you change your "dates" to real dates?
    1st, change the dates in "balance B2:M2 to actual dates...
    1/1/14, 2/1/14 etc format custom mmm
    A
    B
    C
    2
    Jan
    Feb
    3
    Income
    4
    Interpreting
    $ 1,600.00
    $ 1,600.00
    5
    Miles
    $ -
    $ -
    6
    Mileage
    $ -
    $ -
    7
    Parking
    $ -
    $ -
    8
    Taxi
    $ 234.00
    $ 234.00
    9
    Parking
    $ -
    $ -
    10
    Web Design
    $ 500.00
    $ 500.00
    11
    Fidelity
    $ -
    $ -
    12
    $ 2,849.00
    $ 2,849.00
    13
    $ 2,849.00
    $ 2,849.00
    14
    Work Expenses
    $ -
    $ -
    15
    Liability Ins.
    $ -
    $ -
    16
    Pr**essional Dues
    $ -
    $ -
    17
    Pr**essional Develop
    $ -
    $ -
    18
    Supplies
    $ -
    $ -
    19
    Travel
    $ -
    $ -
    20
    Lodging
    $ -
    $ -
    21
    Meals
    $ -
    $ -
    22
    $ 2,849.00
    $ 2,849.00
    23
    Expenses
    $ -
    $ -
    24
    Cell Phone
    $ 50.00
    $ 50.00
    25
    Internet
    $ -
    $ -
    26
    Health Insurance
    $ -
    $ -
    27
    Medical
    $ -
    $ -
    28
    Tags
    $ -
    $ -
    29
    Propert Tax
    $ -
    $ -
    30
    Miscellaneous
    $ -
    $ -


    I copied the data and changed the dates to 2/1 to test

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Which Lookup, Sumproduct or Index Formula to find several info and add them up in 1 ce

    you are matching on the wrong column frank
    ,'Detailed Balance Sheet'!$B:$B,'Balance Sheet'!$A4&"*" should just be ,'Detailed Balance Sheet'!$c:$c,$A4 as there is a list 0f catagories in col c
    =IF(A4="","",SUMIFS('Detailed Balance Sheet'!$D:$D,'Detailed Balance Sheet'!$C:$C,$A4&"*",'Detailed Balance Sheet'!$A:$A,">="&B$2,'Detailed Balance Sheet'!$A:$A,"<"&EDATE(B$2,1))) gives a total 0f $2,849.00
    which matches the sum on detailed balance sheet
    A
    B
    4
    Interpreting
    $ 1,600.00
    5
    Miles
    $ -
    6
    Mileage
    $ -
    7
    Parking
    $ -
    8
    Taxi
    $ 234.00
    9
    Parking
    $ -
    10
    Web Design
    $ 500.00
    11
    Fidelity
    $ -
    12
    13
    14
    Work Expenses
    $ -
    15
    Liability Ins.
    $ -
    16
    Pr0fessional Dues
    $ -
    17
    Pr0fessional Develop
    $ -
    18
    Supplies
    $ -
    19
    Travel
    $ -
    20
    Lodging
    $ 345.00
    21
    Meals
    $ 120.00
    22
    23
    Expenses
    $ -
    24
    Cell Phone
    $ 50.00
    25
    Internet
    $ -
    26
    Health Insurance
    $ -
    27
    Medical
    $ -
    28
    Tags
    $ -
    29
    Propert Tax
    $ -
    30
    Miscellaneous
    $ -
    Last edited by martindwilson; 03-08-2014 at 08:17 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  8. #8
    Registered User
    Join Date
    03-08-2014
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007 MAC OSX
    Posts
    4

    Re: Which Lookup, Sumproduct or Index Formula to find several info and add them up in 1 ce

    FDibbins, Yes, I changed the dates to actual formatted dates in the Excel as 01/15/14 etc. It still won't work? And can you upload the excel file you used so I can look at what I did incorrectly. Thanks!

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Which Lookup, Sumproduct or Index Formula to find several info and add them up in 1 ce

    01/15/14? you need the first 0f each month in cells b2 to n2 0f balance sheet
    here is what frank posted amended slightly
    Attached Files Attached Files

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Which Lookup, Sumproduct or Index Formula to find several info and add them up in 1 ce

    @ Martin, thanks for that catch, dont know why I used B instead ** C, should be...
    =IF(A4="","",SUMIFS('Detailed Balance Sheet'!$D:$D,'Detailed Balance Sheet'!$C:$C,'Balance Sheet'!$A4,'Detailed Balance Sheet'!$A:$A,">="&'Balance Sheet'!B$2,'Detailed Balance Sheet'!$A:$A,"<"&EDATE(B$2,1)))
    Attached Files Attached Files

+ 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. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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