+ Reply to Thread
Results 1 to 6 of 6

A question about the SUMIF worksheet function.

  1. #1
    Registered User
    Join Date
    01-29-2008
    Posts
    10

    A question about the SUMIF worksheet function.

    Hi,

    I have two columns, A and B respectively, that contain the following values:
    Please Login or Register  to view this content.
    How can I write the SUMIF worksheet function to search for everything in column B that contains the letter "E" and if it contains that letter, it will sum the value in column A?

    Thanks...

    Mike
    Last edited by mbu; 01-30-2008 at 09:53 PM.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527
    Hi Mike,

    See if the following formula =SUMIF(B1:B6,"*E*",A1:A6) does the trick.

    HTH

    Robert

  3. #3
    Registered User
    Join Date
    01-29-2008
    Posts
    10
    Quote Originally Posted by Trebor76
    Hi Mike,

    See if the following formula =SUMIF(B1:B6,"*E*",A1:A6) does the trick.

    HTH

    Robert
    Robert,

    Thanks for the response!

    No, that won't work since SUMIF is looking for the exact match of "E". Somehow I need to strip off everything but the first letter and then check if what is remaining is an "E". Is there a way I can incorporate the LEFT function into the SUMIF function?
    Last edited by mbu; 01-30-2008 at 09:54 PM.

  4. #4
    Registered User
    Join Date
    01-29-2008
    Posts
    10
    Robert,

    Oops! I didn't see your wildcard characters in there!

    Okay, that'll work! Thanks!

    Just curious...will that match any E in the cell or will it just match the first one?

    I just want it to match if the E is the first letter.

  5. #5
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527
    Hi there,

    =SUMIF(B1:B6,"E*",A1:A6) will only sum values in the range A1:A6 where the text in the range B1:B6 starts with an E. The previous formula sums the same column A range whenever there is an E anywhere within the text entry from column B.

    HTH

    Robert

  6. #6
    Registered User
    Join Date
    01-29-2008
    Posts
    10
    Robert,

    Thanks, that works!

    Mike

+ 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