+ Reply to Thread
Results 1 to 9 of 9

Sumif

  1. #1
    Registered User
    Join Date
    11-16-2007
    Posts
    13

    Sumif

    I am trying to retrieve some information from a sheet.

    column d row 6 to 46 has a text value (Type) eg apples, peaches, nectarines.
    column e row 6 to 46 has the number of apples, peaches, nectarines.

    I want to make a formula that will search column d row 6 to 46 for apples then go to column e row 6 to 46 and add all the number of apples in these rows to give me a total for the number of apples from row 6 to 46 column e.

    I then want to repeat the formula for peaches and nectarines.

    Any help with this would be greatly appreciated.

    Thanks Chris

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try

    =SUMIF(D6:D46,"apples",E6:E46)
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    11-16-2007
    Posts
    13

    Sumif

    Awesome so simple but effective, works a treat!
    Thanks very much.
    Chris

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Your welcome

    VBA Noob

  5. #5
    Registered User
    Join Date
    11-16-2007
    Posts
    13

    sumif

    Need your help again<

    can the formula also include another apple column and no of apples column
    eg x6:57 Apples & z6:57.

    Cheers Chris

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =SUMIF(D6:D46,"apples",E6:E46)+SUMIF(X6:X46,"apples",Z6:Z46)
    VBA Noob

  7. #7
    Registered User
    Join Date
    11-16-2007
    Posts
    13

    SUMIF again

    Hi Again
    I need help again with this SUMIF formula if possible.
    I would like the formula to add another set of data to it.
    Tried this but doesnt work

    =SUMIF((D6:D46,"Apples",E6:E46) + (X6:X57,"Apples",Z6:Z57))
    Any help would be greatly appreciated

    Cheers Chris

  8. #8
    Registered User
    Join Date
    11-16-2007
    Posts
    13

    Sumif

    Hi again
    Sorry I posted another reply before reading your answer.
    Again it works well your help is much appreciated.

    Cheers Chris

  9. #9
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Your welcome

    VBA Noob

+ 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