+ Reply to Thread
Results 1 to 2 of 2

sum rows that meet a specific criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    09-04-2008
    Location
    houston
    Posts
    1

    sum rows that meet a specific criteria

    for some reason I am drawing a blank and need to sum rows that meet a specific criteria.


    Apples 2
    Oranges 2
    Bananas 1
    Oranges 2

    For example, I want a code that will search the columns and sum only the values that correspond to "oranges"

    any help would be greatly appreciated.

    Thanks in advance

  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
    mase062006,

    Welcome to the forum

    Try

    =SUMIF(A:A,"Oranges",B:B)
    PS. Please read forum rules below and then use a more descriptive title next time.

    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 !!!

+ 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. macro that deletes rows that dont meet criteria
    By jchambers00 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2008, 07:51 PM
  2. delete entire rows based on a criteria
    By acekargo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2008, 11:15 PM
  3. Delete specific rows, creating range and criteria using inputbox
    By gmccray in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2008, 02:00 PM
  4. Count rows which meet criteria
    By JonPugh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-18-2007, 04:02 PM
  5. Delete rows based on specific criteria
    By Archana in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2007, 05:00 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