+ Reply to Thread
Results 1 to 4 of 4

calculating column 1 based on colum on column 4

  1. #1
    Registered User
    Join Date
    05-08-2013
    Location
    Liverpool
    MS-Off Ver
    Excel 2010
    Posts
    9

    calculating column 1 based on colum on column 4

    Hi

    I could any one help with the following problem.

    Please see attachment

    I am trying to SUM column 1 based on the information in column 4. Basically add all the numbers in column 1 for codes B2, B3, B4 and B5

    So I would have a total for each. I can do it manually but wonder if there is a better
    Attached Images Attached Images

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: calculating column 1 based on colum on column 4

    hi leongandrew, do upload a sample excel file next time so that we do not have to re-create your data to test. assuming your data is in A2:D10, then:
    =SUM(SUMIF(D2:D10,{"B2","B3","B4","B5"},A2:A10))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    05-29-2013
    Location
    Kolkata, India
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: calculating column 1 based on colum on column 4

    You can use 4 SUMIF functions such as :
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-08-2013
    Location
    Liverpool
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: calculating column 1 based on colum on column 4

    Thank you very much.

    Very sorry about not uploading the file. I will do next time.

    Thank you again.

+ 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