+ Reply to Thread
Results 1 to 2 of 2

Adding adjacent cells when value of cells is the same

Hybrid View

  1. #1
    Registered User
    Join Date
    02-14-2008
    Posts
    1

    Smile Adding adjacent cells when value of cells is the same

    I need to add adjacent cells when the value of cells in one column are the same.
    For example:
    If in cells A1-A20 have varied dates of banking deposits (02.11.08 and 02.12.08) then the amounts of the deposits entered into adjacent cells B1-B20 ($600.00, $450.00 etc.) are added into separate cells giving you the amount of the total deposit made on that day.

    Total deposit on 02.11.08 is equal to ? and total deposit on 02.12.08 is equal to ?.

    I know how to add adjacent cells with a given criteria:
    =SUMIF(A1:A10,"criteria",B1:B10)

    But how do I do the same with the formula automatically looking for like values i.e. "02.11.08" without the formula already having that value given i.e.
    =SUMIF(A1:A10,"02.11.08",B1:B10)

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Quote Originally Posted by mike d
    I need to add adjacent cells when the value of cells in one column are the same.
    For example:
    If in cells A1-A20 have varied dates of banking deposits (02.11.08 and 02.12.08) then the amounts of the deposits entered into adjacent cells B1-B20 ($600.00, $450.00 etc.) are added into separate cells giving you the amount of the total deposit made on that day.

    Total deposit on 02.11.08 is equal to ? and total deposit on 02.12.08 is equal to ?.

    I know how to add adjacent cells with a given criteria:
    =SUMIF(A1:A10,"criteria",B1:B10)

    But how do I do the same with the formula automatically looking for like values i.e. "02.11.08" without the formula already having that value given i.e.
    =SUMIF(A1:A10,"02.11.08",B1:B10)
    Do you mean that the dates in column A are non unique? i.e. you have several instances of 02.11.08, 02.12.08 etc?

    Why not just point to the date in column A? i.e.
    =SUMIF(A$1:A$10,A1,B$1:B$10)
    Rgds

+ 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.6.0 RC 1