+ Reply to Thread
Results 1 to 2 of 2

Formual help needed

  1. #1
    Jan
    Guest

    Formual help needed

    I'm using Excel 2003.

    How would I write a formula to accomplish the following:

    If column A = "Me" and
    column B does not equal "grapes", "oranges", "apples", "green bean" or
    "corn" then
    Sum column D.


  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good evening Jan

    Hope you're ready for this one! First of all, in testing the formula I only used the range from row 6 to 12 using column B for the value of "me" and using column C for the assorted fruit and veg and D for the values, so you will have to alter your ranges accordingly. Secondly, this is an array formula, which means you do not press enter to commit the formula, but ctrl + shift + enter. This will put the formula into a set of curly braces which are not shown here.

    =SUM(IF($B$6:$B$12="me",IF($C$6:$C$12<>"apples",IF($C$6:$C$12<>"corn",IF($C$6:$C$12<>"grapes",IF($C$6:$C$12<>"green bean",IF($C$6:$C$12<>"oranges",$D$6:$D$12,0),0),0),0),0),0))

    HTH

    DominicB

+ 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