+ Reply to Thread
Results 1 to 2 of 2

Thread: Sum data based on data in neighboring cell

  1. #1
    Registered User
    Join Date
    01-06-2010
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    1

    Sum data based on data in neighboring cell

    I'm trying to create a spreadsheet to manage my finances. i've seen some online and I'd think they are overly complicated. My sheet works well but I'd like to automate it just a bit more. I have a column (column C)which has all my expenditures and credits. Column D has been set for data validation and the values are description of the expenditure or credit:
    IE
    C-------D---------------G
    100----income--------Income total
    -25----gas
    -50----groceries
    25-----income

    is it possible to formulate the sum of data in column C based on the criteria in colume D? Meaning if I wanted excel to calculate the total of each cell in column C which has the reference "income" in the cell _next_ to , it and put the output in a cell in column G?

    Thanks in advance!

  2. #2
    Forum Guru ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    traded up
    MS-Off Ver
    2003 & 2010
    Posts
    1,905

    Re: Sum data based on data in neighboring cell

    Hi shaider,

    Welcome to the forum!

    Try this:

    
    =SUMIF(D2:D5,"income",C2:C5)
    Adjust ranges to suit; just ensure the two ranges are equal in size.

    Cheers,
    “To sin by silence when they should protest makes cowards of men.” ~ Abraham Lincoln

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0