+ Reply to Thread
Results 1 to 13 of 13

How to sum only numbers in column B that have a corresponding "ü"/Checkmark in Column A

  1. #1
    Registered User
    Join Date
    08-09-2012
    Location
    Santa Barbara, CA
    MS-Off Ver
    Excel 2010
    Posts
    5

    How to sum only numbers in column B that have a corresponding "ü"/Checkmark in Column A

    New to the community, and seeking answers if they can be found. Hello all! I understand some basics of formulas, but not enough to create my own routinely. I am trying to select from a column of numbers "B" ONLY the numbers that have a corresponding check mark "ü" in the adjacent cell in column "A" then sum only those numbers. I apologize, about the format of the following example, as I am not sure how to make the table work in this forum just yet.

    Example:
    Column A
    ü
    Blank
    ü
    ü
    Blank

    Column B
    10
    12
    22
    05
    16

    Total: 37

    I've tried the SUMIF function:
    =SUMIF(A3:A15), "ü", (B3:B15)
    which only yeilds: ü ??

    Will it work to use some version of an IF/AND/Then statement? Something like?
    =if(A3:A25),<>,AND(B3:B25)="ü",SUM(B3:B25)

    Neither of these ideas seem to address my need to select only those numbers which have a check mark next to them and give a total of only those numbers. There might also be a way to copy those numbers into a separate list, sum that list, and return the value I need. I appreciate the help of anyone who can crack this simple task. Thanks!
    Last edited by irnwil; 08-09-2012 at 02:41 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,943

    Re: How to sum only numbers in column B that have a corresponding "ü"/Checkmark in Column

    =SUMIF(A3:A15, "ü", B3:B15)


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-09-2012
    Location
    Santa Barbara, CA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: How to sum only numbers in column B that have a corresponding "ü"/Checkmark in Column

    Thanks TMS, but this doesn't seem to work. I just revised my parenthesis to resemble yours and the output is: ü instead of a numerical value.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to sum only numbers in column B that have a corresponding "ü"/Checkmark in Column

    TMS's formula should work.
    =SUMIF(A3:A15, "ü", B3:B15)

    Can you upload the spreadsheet? (Go Advanced>Manage Attachments)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    08-09-2012
    Location
    Santa Barbara, CA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: How to sum only numbers in column B that have a corresponding "ü"/Checkmark in Column

    Thank You ChemistB.

    I have attached the portion of my spreadsheet that includes the formula:

    =SUMIF(E2:E24,"ü",F2:F24)

    Essentially, I am trying to add up only those values associated with the check marks in column E.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-09-2012
    Location
    Hayes, VA
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: How to sum only numbers in column B that have a corresponding "ü"/Checkmark in Column

    Try =SUMIF(E2:E24,"<>",F2:F24)

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,943

    Re: How to sum only numbers in column B that have a corresponding "ü"/Checkmark in Column

    Well, two things: you have a custom format which will probably just show the "ü". Change the format to General ... wherever you want to use the Wingding format.

    Then the result is 10 ... which doesn't look right, but is. Only the cell E2 has the "ü" in it. Others are displayed as "ü" but actually have an "X" in them. Or the corresponding values in column F have question marks in them.

    So, nothing wrong with my formula ... it's mainly down to the cell format or the cell content, which you can't see because of the cell format.

    Regards, TMS

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to sum only numbers in column B that have a corresponding "ü"/Checkmark in Column

    Tridom's solution is a good one.
    Here's what's happening. The spreadsheet is set up such that no matter what is entered in B2:H24, a ü is displayed (in wingding font, shows as a check mark). However, if you entered an x, it's still an x even though it looks like a checkmark. Tridom's solution works if there's anything in column E range, sum the col F range.
    You could also modify your spreadsheet so that you have to enter an ü. Hope that helps.

    Oh, and lastly, you have the format in cell E25 set up the same way so that no matter what the result, it will show up as ü You want to change that to General.

    Lastly, again , this is definitely one we wouldn't have been able to figure out without you attaching your workbook.
    Last edited by ChemistB; 08-09-2012 at 03:53 PM.

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,943

    Re: How to sum only numbers in column B that have a corresponding "ü"/Checkmark in Column

    Note: most of the cells have little "iron crosses" in them, not ticks. Copy the tick to all the cells, remove the custom formatting.

    And, if you use the formula: =SUMIF(E2:E24, "ü",$F$2:$F$24), you can copy it left to the other columns.

  10. #10
    Registered User
    Join Date
    08-09-2012
    Location
    Santa Barbara, CA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: How to sum only numbers in column B that have a corresponding "ü"/Checkmark in Column

    Thanks to all for the support! I have updated the custom format on E25 to be "General" as it should be, and used Tridom's solution, and it seems to work now! As a side note, the custom format was designed to make it very easy for an end user to enter any key stroke and get a checkmark. It was precisely this that I got hung up on. I should not have used "ü" but rather "<>" in the SUMIF statement in order to capture any value even though it shows as a WingDing checkmark symbol.

  11. #11
    Registered User
    Join Date
    08-09-2012
    Location
    Hayes, VA
    MS-Off Ver
    Excel 2010
    Posts
    31

    Red face Re: How to sum only numbers in column B that have a corresponding "ü"/Checkmark in Column

    Quote Originally Posted by irnwil View Post
    Thanks to all for the support! I have updated the custom format on E25 to be "General" as it should be, and used Tridom's solution, and it seems to work now! As a side note, the custom format was designed to make it very easy for an end user to enter any key stroke and get a checkmark. It was precisely this that I got hung up on. I should not have used "ü" but rather "<>" in the SUMIF statement in order to capture any value even though it shows as a WingDing checkmark symbol.
    You are quite welcome. Sometimes the simplest of solutions works.

    ChemistB and TMShucks are quite right about the formatting also. And the only reason I caught it WAS because you posted the spreadsheet. I, myself, learned something here too. I wasn't even paying attention to the formatting because I never used the symbols (or wingdings). I didn't know HOW you got the checkmarks in there....I just knew something was there. (:->) I'll need to file that info for future reference and use.

    Glad to be of assistance.

  12. #12
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: How to sum only numbers in column B that have a corresponding "ü"/Checkmark in Column

    @ irnwil

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  13. #13
    Registered User
    Join Date
    08-09-2012
    Location
    Santa Barbara, CA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: How to sum only numbers in column B that have a corresponding "ü"/Checkmark in Column

    Thanks for those pointers. I will read up on the rules so I don't miss them in the future. I definetly thanked those who helped me.

+ 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