+ Reply to Thread
Results 1 to 8 of 8

Sum salaries of people whose name starts with "A"

  1. #1
    Registered User
    Join Date
    04-03-2014
    Location
    New York, NY
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    2

    Question Sum salaries of people whose name starts with "A"

    Screen Shot 2014-04-03 at 7.41.35 PM.jpg

    I have a list of names and each person's salary here. I want to add the salary of the people whose name starts with "A" (Alex and Andrew in this case). How do I do that?

    I thought about LEFT(cell), which returns the first letter, but this applies to one cell only. How do I do this for multiple cells?

    Thanks!
    Last edited by hoopeht; 04-04-2014 at 01:16 PM.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Sum salaries of people whose name starts with "A"

    Here it is

    =SUMIF($A$1:$A$5,"A*",$B$1:$B$5)


    A
    B
    C
    1
    Alex
    3200
    6969
    2
    John
    2500
    3
    Andrew
    1257
    4
    Aaron
    2512
    5
    Fred
    1254
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Sum salaries of people whose name starts with "A"

    Hi and welcome to the forum

    1st...please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you Also, not all members can upload picture files (Company firewalls and stuff)

    2nd try this...
    =SUMIF(A1:A8,"a*",B1:B8)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum salaries of people whose name starts with "A"

    Like this...

    =SUMIF(A1:A8,"A*",B1:B8)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum salaries of people whose name starts with "A"

    Or, if you want to use a cell to hold the criteria...

    D1 = A

    =SUMIF(A1:A8,D1&"*",B1:B8)

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Sum salaries of people whose name starts with "A"

    Try this........

    Please Login or Register  to view this content.
    OR

    Please Login or Register  to view this content.
    Hope that helps.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  7. #7
    Registered User
    Join Date
    04-03-2014
    Location
    New York, NY
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    2

    Wink Re: Sum salaries of people whose name starts with "A"

    Problem solved. Thanks for all the responses!

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum salaries of people whose name starts with "A"

    You're welcome. We appreciate the feedback!

+ 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. [SOLVED] vba code to replace the column names for those column name "Proposal that starts with "1."
    By mvneema in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-31-2014, 01:21 PM
  2. Replies: 7
    Last Post: 07-10-2013, 11:12 AM
  3. Replies: 4
    Last Post: 11-25-2011, 06:59 AM
  4. [SOLVED] Query starts a "read only" copy of the source sheet
    By GorKoUSA@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2006, 08:10 AM
  5. How do I get "file" tab to click on, it starts with "edit"
    By JMD_Phoenix in forum Excel General
    Replies: 1
    Last Post: 01-22-2006, 10:50 PM

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