+ Reply to Thread
Results 1 to 2 of 2

Adding values based on value of adjacent cell...

  1. #1
    Forum Contributor
    Join Date
    03-24-2010
    Location
    North West UK
    MS-Off Ver
    2013
    Posts
    112

    Adding values based on value of adjacent cell...

    Hi,

    I have attached my sheet to this question to help explain what I am trying to do.

    In this spreadsheet I have to keep a track of some figures based on a depot I send items to.

    What I want to do is have a formula so that if the values in Column H is equal to G then add up all the adjacent values in Column F that relate to value G. The same if a cell contains M then add up all the adjacent values in Column F.

    Thanks,
    Lewis
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Adding values based on value of adjacent cell...

    Hi,

    If you change your entries in cells A22:A25 to simply G, P, S and M (i.e. remove the "Total " part) then this formula in B22 and copied down will give you your desired results:

    =SUMIF($H$5:$H$18,A22,$F$5:$F$18)

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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. Function to return different values based on adjacent cell
    By KMB_85 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-15-2012, 12:44 AM
  2. adding values as 1 string, based on adjacent column
    By TCountryman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2010, 10:51 AM
  3. Adding values together based on the result of an adjacent drop-down box
    By adamf1987 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 05-19-2010, 09:06 AM
  4. Adding cell values that are dependent on adjacent cell values
    By globulous in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-27-2009, 10:37 AM
  5. Calculations based on adjacent cell values
    By Jack in forum Excel General
    Replies: 4
    Last Post: 06-10-2006, 09:45 AM

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