+ Reply to Thread
Results 1 to 3 of 3

Formula to identify certain cells that should be summed

  1. #1
    Registered User
    Join Date
    12-15-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010 (and Google Docs)
    Posts
    2

    Formula to identify certain cells that should be summed

    Hi, I have a spreadsheet where I'm monitoring receipts and payments that go through a bank account (sheet 1 below).

    Sheet 1

    Col. B-------Column C--------Column D--------Column E
    Month--------Year------------Type-----------Amount

    Jan----------2013------------Receipt-----------350
    Jan----------2013------------Receipt-----------200
    March--------2013-----------Payment----------100
    July----------2013-----------Payment----------400



    I'd like this to automatically inform a separate sheet, to update the actual cash flow for each month

    Sheet 2

    --------------------------Jan---------------------------Feb--------

    Receipts-----------Expected---Actual------------Expected---Actual-

    Cash inflow--------------------Cell 4d--------------------------------

    Cash outflow--------------------------------------------------------


    Is it possible to create a formula for my January cash inflow cell (4D) that performs as follows:

    IF Column D of Sheet 1 = Receipt AND Column B of Sheet 1 = Jan, show the SUM of the corresponding cells in Column E

    So in the example above, cell 4d in sheet 2 should show 550, as there are 2 rows which match the criteria of having Column B = Jan and Column D =Receipt, and the SUM of those rows is 550.

    And to complicate matters, it needs to work in google docs as well :\

    Any help much appreciated!

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Formula to identify certain cells that should be summed

    Try this......

    On sheet 2

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Then copy both the formulas across to December.

    Please find the attachment to see if this is what you want?
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

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

    Re: Formula to identify certain cells that should be summed

    =SUMPRODUCT((A4:A11="jan")*(C4:C11="receipt"),D4:D11)+ INDEX( 0, 1 ) should work in xl and google docs
    in google docs sumproduct is an array formula
    and has to be entered as
    =arrayformula(SUMPRODUCT((A4:A11="jan")*(C4:C11="receipt"),D4:D11)) which would produce an error in excel
    but you can coerce it into an array by adding +index(0,1) to the end which =0 anyway then it will work in both quite happily
    Attached Files Attached Files
    Last edited by martindwilson; 12-15-2013 at 09:22 AM.
    "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

+ 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. Replies: 0
    Last Post: 02-03-2012, 07:26 PM
  2. Replies: 7
    Last Post: 08-01-2011, 03:13 PM
  3. Which Cells Summed = Known Target
    By Branno in forum Excel General
    Replies: 3
    Last Post: 01-02-2011, 07:27 PM
  4. [SOLVED] Formula to identify a keyword in all cells of a column
    By HTC in forum Excel General
    Replies: 3
    Last Post: 07-28-2005, 11:05 AM
  5. [SOLVED] How do I create formula to identify duplicate cells?
    By Kelly Lacey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-12-2005, 02: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